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.
This commit is contained in:
Owen W. Taylor 2009-05-05 14:07:11 -04:00
parent ff9a42c9b6
commit ba55264525

View File

@ -290,6 +290,7 @@ na_tray_icon_added (NaTrayManager *na_manager, GtkWidget *socket,
gtk_widget_set_colormap (win, gtk_widget_get_colormap (socket)); gtk_widget_set_colormap (win, gtk_widget_get_colormap (socket));
child = g_slice_new (ShellTrayManagerChild); child = g_slice_new (ShellTrayManagerChild);
child->manager = manager;
child->window = win; child->window = win;
child->socket = socket; child->socket = socket;