Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
f8b668c1
Commit
f8b668c1
authored
Jun 24, 2019
by
Adrien Plazas
Browse files
GtkMessageDialog: Pack the buttons vertically
This makes the dialog work better with horizontally constrained screens.
parent
8c34c1aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkmessagedialog.c
View file @
f8b668c1
...
...
@@ -36,6 +36,7 @@
#include
"gtkimage.h"
#include
"gtkintl.h"
#include
"gtkprivate.h"
#include
"gtkorientable.h"
#include
"gtktypebuiltins.h"
/**
...
...
@@ -327,6 +328,7 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
action_area
=
gtk_dialog_get_action_area
(
GTK_DIALOG
(
dialog
));
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_orientable_set_orientation
(
GTK_ORIENTABLE
(
action_area
),
GTK_ORIENTATION_VERTICAL
);
gtk_button_box_set_layout
(
GTK_BUTTON_BOX
(
action_area
),
GTK_BUTTONBOX_EXPAND
);
settings
=
gtk_widget_get_settings
(
GTK_WIDGET
(
dialog
));
...
...
Write
Preview
Supports
Markdown
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