[gnome-panel/gnome-2-30] Don't show applet until after connecting to realize
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gnome-2-30] Don't show applet until after connecting to realize
- Date: Thu, 1 Jul 2010 18:15:54 +0000 (UTC)
commit a2498c7aa29a155fbf707bbcb07580353979329c
Author: Ray Strode <rstrode redhat com>
Date: Thu Jul 1 14:08:50 2010 -0400
Don't show applet until after connecting to realize
Otherwise, the realize signals may run before the handler
is hooked up, causing crashes down the line.
https://bugzilla.gnome.org/show_bug.cgi?id=472773
applets/wncklet/workspace-switcher.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 8e2a08e..02d18a8 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -546,8 +546,6 @@ workspace_switcher_applet_fill (PanelApplet *applet)
* environments. See wnck_pager_set_orientation() doc */
pager_update (pager);
- gtk_widget_show (pager->applet);
-
g_signal_connect (G_OBJECT (pager->applet),
"realize",
G_CALLBACK (applet_realized),
@@ -569,6 +567,8 @@ workspace_switcher_applet_fill (PanelApplet *applet)
G_CALLBACK (applet_change_background),
pager);
+ gtk_widget_show (pager->applet);
+
panel_applet_set_background_widget (PANEL_APPLET (pager->applet),
GTK_WIDGET (pager->applet));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]