From ba552645258efdbcca9022b190aa07832773e78a Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 5 May 2009 14:07:11 -0400 Subject: [PATCH] Set ShellTrayManagerChild.manager when creating a child structure Just because ShellTrayManagerChild had a 'manager' field, I shouldn't have assumed it was actually being set; fixes a crash with tray icons that don't support RGBA visuals. --- src/shell-tray-manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell-tray-manager.c b/src/shell-tray-manager.c index de8b861a2..681fba3f9 100644 --- a/src/shell-tray-manager.c +++ b/src/shell-tray-manager.c @@ -290,6 +290,7 @@ na_tray_icon_added (NaTrayManager *na_manager, GtkWidget *socket, gtk_widget_set_colormap (win, gtk_widget_get_colormap (socket)); child = g_slice_new (ShellTrayManagerChild); + child->manager = manager; child->window = win; child->socket = socket;