1 From a2498c7aa29a155fbf707bbcb07580353979329c Mon Sep 17 00:00:00 2001
2 From: Ray Strode <rstrode@redhat.com>
3 Date: Thu, 01 Jul 2010 18:08:50 +0000
4 Subject: Don't show applet until after connecting to realize
6 Otherwise, the realize signals may run before the handler
7 is hooked up, causing crashes down the line.
9 https://bugzilla.gnome.org/show_bug.cgi?id=472773
11 diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
12 index 8e2a08e..02d18a8 100644
13 --- a/applets/wncklet/workspace-switcher.c
14 +++ b/applets/wncklet/workspace-switcher.c
15 @@ -546,8 +546,6 @@ workspace_switcher_applet_fill (PanelApplet *applet)
16 * environments. See wnck_pager_set_orientation() doc */
19 - gtk_widget_show (pager->applet);
21 g_signal_connect (G_OBJECT (pager->applet),
23 G_CALLBACK (applet_realized),
24 @@ -569,6 +567,8 @@ workspace_switcher_applet_fill (PanelApplet *applet)
25 G_CALLBACK (applet_change_background),
28 + gtk_widget_show (pager->applet);
30 panel_applet_set_background_widget (PANEL_APPLET (pager->applet),
31 GTK_WIDGET (pager->applet));