[gtk+/gtk-3-4] bgo#675421 - Set the wm_role on GtkFileChooserDialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] bgo#675421 - Set the wm_role on GtkFileChooserDialog
- Date: Fri, 11 May 2012 22:11:43 +0000 (UTC)
commit 438e1ea08b8e55b1323acbf498c0418524a5d6f1
Author: Federico Mena Quintero <federico gnome org>
Date: Mon May 7 15:42:32 2012 -0500
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>
gtk/gtkfilechooserdialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index 1b62486..c120b9c 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -257,6 +257,8 @@ gtk_file_chooser_dialog_init (GtkFileChooserDialog *dialog)
gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
gtk_container_set_border_width (GTK_CONTAINER (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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]