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
2 years ago
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
main.c
src/main.c
+9
-2
No files found.
src/main.c
View file @
19dea7ae
...
...
@@ -350,6 +350,14 @@ create_layout (GtkWidget *dlg)
static
void
realize_cb
(
GtkWidget
*
dlg
,
gpointer
d
)
{
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
);
...
...
@@ -357,9 +365,8 @@ realize_cb (GtkWidget *dlg, gpointer d)
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
.
use_posx
||
options
.
data
.
use_posy
)
{
...
...
This diff is collapsed.
Click to expand it.
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