mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
bgo#675421 - Set the wm_role on GtkFileChooserDialog
The window's role is 'GtkFileChooserDialog', so that window managers can match it for positioning. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
parent
fb2cbb3cde
commit
2b624f6f8f
@ -92,6 +92,8 @@ gtk_file_chooser_dialog_init (GtkFileChooserDialog *dialog)
|
||||
gtk_box_set_spacing (GTK_BOX (fc_dialog->vbox), 2); /* 2 * 5 + 2 = 12 */
|
||||
gtk_container_set_border_width (GTK_CONTAINER (fc_dialog->action_area), 5);
|
||||
|
||||
gtk_window_set_role (GTK_WINDOW (dialog), "GtkFileChooserDialog");
|
||||
|
||||
/* We do a signal connection here rather than overriding the method in
|
||||
* class_init because GtkDialog::response is a RUN_LAST signal. We want *our*
|
||||
* handler to be run *first*, regardless of whether the user installs response
|
||||
|
Loading…
Reference in New Issue
Block a user