[rhythmbox] plugins-engine: set dialog hint to configuration widgets if possible



commit 79c5634080fd97d59081ac4000e0bea7b0d8e5ae
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 22 19:07:03 2011 -0400

    plugins-engine: set dialog hint to configuration widgets if possible
    
    So they get themed up by mutter correctly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645577

 shell/rb-plugins-engine.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/shell/rb-plugins-engine.c b/shell/rb-plugins-engine.c
index a21588d..77b1a42 100644
--- a/shell/rb-plugins-engine.c
+++ b/shell/rb-plugins-engine.c
@@ -633,6 +633,10 @@ rb_plugins_engine_configure_plugin (RBPluginInfo *info,
 	g_return_if_fail (conf_dlg != NULL);
 	gtk_window_set_transient_for (GTK_WINDOW (conf_dlg),
 				      parent);
+	gtk_window_set_modal (GTK_WINDOW (conf_dlg), TRUE);
+
+	if (!gtk_widget_get_mapped (conf_dlg))
+		gtk_window_set_type_hint (GTK_WINDOW (conf_dlg), GDK_WINDOW_TYPE_HINT_DIALOG);
 
 	wg = gtk_window_get_group (parent);
 	if (wg == NULL)
@@ -643,8 +647,6 @@ rb_plugins_engine_configure_plugin (RBPluginInfo *info,
 
 	gtk_window_group_add_window (wg,
 				     GTK_WINDOW (conf_dlg));
-
-	gtk_window_set_modal (GTK_WINDOW (conf_dlg), TRUE);
 	gtk_widget_show (conf_dlg);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]