Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
yad
Commits
19dea7ae
Commit
19dea7ae
authored
Jan 12, 2023
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the fixed. keep user defined window size when --fixed option is used
parent
ff817786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
main.c
src/main.c
+17
-10
No files found.
src/main.c
View file @
19dea7ae
...
...
@@ -350,16 +350,23 @@ create_layout (GtkWidget *dlg)
static
void
realize_cb
(
GtkWidget
*
dlg
,
gpointer
d
)
{
gint
cw
,
ch
;
/* get current window size for gtk_window_resize */
gtk_window_get_size
(
GTK_WINDOW
(
dlg
),
&
cw
,
&
ch
);
if
(
options
.
data
.
width
==
-
1
)
options
.
data
.
width
=
cw
;
if
(
options
.
data
.
height
==
-
1
)
options
.
data
.
height
=
ch
;
gtk_window_resize
(
GTK_WINDOW
(
dlg
),
options
.
data
.
width
,
options
.
data
.
height
);
gtk_window_set_resizable
(
GTK_WINDOW
(
dlg
),
!
options
.
data
.
fixed
);
if
(
options
.
data
.
fixed
)
{
gtk_widget_set_size_request
(
dlg
,
options
.
data
.
width
,
options
.
data
.
height
);
gtk_window_set_resizable
(
GTK_WINDOW
(
dlg
),
!
options
.
data
.
fixed
);
}
else
{
gint
cw
,
ch
;
/* get current window size for gtk_window_resize */
gtk_window_get_size
(
GTK_WINDOW
(
dlg
),
&
cw
,
&
ch
);
if
(
options
.
data
.
width
==
-
1
)
options
.
data
.
width
=
cw
;
if
(
options
.
data
.
height
==
-
1
)
options
.
data
.
height
=
ch
;
gtk_window_resize
(
GTK_WINDOW
(
dlg
),
options
.
data
.
width
,
options
.
data
.
height
);
}
if
(
options
.
data
.
use_posx
||
options
.
data
.
use_posy
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment