Fix plugin configuration windows blinking on their appearance.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Tue, 25 Nov 2014 21:38:13 +0000 (23:38 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Tue, 25 Nov 2014 21:38:13 +0000 (23:38 +0200)
ChangeLog
plugins/xkb/xkb-plugin.c
src/configurator.c

index e6e9c5d..a60acb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -73,6 +73,7 @@
     change in font configuration of panel using lxpanel_button_*() API.
 * Fixed nasty bug with autohidden panel after unhide appeared for short
     time somewhere at the screen.
+* Fixed calendar and configuration windows blinking on their appearance.
 
 0.7.2
 -------------------------------------------------------------------------
index 0219436..52cbedf 100644 (file)
@@ -1516,7 +1516,7 @@ static GtkWidget *xkb_configure(LXPanel *panel, GtkWidget *p)
     g_signal_connect(dlg, "response", G_CALLBACK(on_dialog_config_response), p_xkb);
 
     /* Display the dialog. */
-    gtk_widget_show_all(dlg);
+    gtk_widget_show_all(p_hbox_main);
 
     user_active = TRUE;
     return dlg;
index b8db2b0..b8410fd 100644 (file)
@@ -1488,11 +1488,8 @@ void _panel_show_config_dialog(LXPanel *panel, GtkWidget *p, GtkWidget *dlg)
     g_object_set_data(G_OBJECT(dlg), "generic-config-plugin", p);
 
     /* adjust config dialog window position to be near plugin */
-    gtk_window_set_transient_for(GTK_WINDOW(dlg), GTK_WINDOW(panel));
-//    gtk_window_iconify(GTK_WINDOW(dlg));
-    gtk_widget_show(dlg);
     lxpanel_plugin_popup_set_position_helper(panel, p, dlg, &x, &y);
-    gdk_window_move(gtk_widget_get_window(dlg), x, y);
+    gtk_window_move(GTK_WINDOW(dlg), x, y);
 
     gtk_window_present(GTK_WINDOW(dlg));
 }