updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gnome-panel-ubuntu / 90_git_wnck_show_realize.patch
blob8ff96efac9e3522532549282863f115d76838dc7
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
10 ---
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 */
17 pager_update (pager);
19 - gtk_widget_show (pager->applet);
21 g_signal_connect (G_OBJECT (pager->applet),
22 "realize",
23 G_CALLBACK (applet_realized),
24 @@ -569,6 +567,8 @@ workspace_switcher_applet_fill (PanelApplet *applet)
25 G_CALLBACK (applet_change_background),
26 pager);
28 + gtk_widget_show (pager->applet);
30 panel_applet_set_background_widget (PANEL_APPLET (pager->applet),
31 GTK_WIDGET (pager->applet));
34 cgit v0.8.3.1