comparison plugins/docklet/docklet-x11.c @ 9229:395e62cf7bf6

[gaim-migrate @ 10025] grim made the gtk 2.4 only call that makes im images have a transparent background (because of the event box) a runtime check instead of a compile time check, so we'll be able to tell people in 0.79 who go "boohoo! my im images aren't transparent!" to upgrade gtk, instead of upgrade gtk *AND* recompile gaim. he added a similar check to the docket that was supposed to make it transparent as well, but apparently doesn't. but i guess it doesn't hurt anything either. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Mon, 07 Jun 2004 04:46:01 +0000
parents c2fb9192377b
children 4d05b6e9e9cd
comparison
equal deleted inserted replaced
9228:3de4cb53762b 9229:395e62cf7bf6
162 g_signal_connect(G_OBJECT(docklet), "destroy", G_CALLBACK(docklet_x11_destroyed_cb), NULL); 162 g_signal_connect(G_OBJECT(docklet), "destroy", G_CALLBACK(docklet_x11_destroyed_cb), NULL);
163 g_signal_connect(G_OBJECT(box), "button-press-event", G_CALLBACK(docklet_x11_clicked_cb), NULL); 163 g_signal_connect(G_OBJECT(box), "button-press-event", G_CALLBACK(docklet_x11_clicked_cb), NULL);
164 164
165 gtk_container_add(GTK_CONTAINER(box), image); 165 gtk_container_add(GTK_CONTAINER(box), image);
166 gtk_container_add(GTK_CONTAINER(docklet), box); 166 gtk_container_add(GTK_CONTAINER(docklet), box);
167
168 if(!gtk_check_version(2,4,0))
169 g_object_set(G_OBJECT(box), "visible-window", FALSE, NULL);
170
167 gtk_widget_show_all(GTK_WIDGET(docklet)); 171 gtk_widget_show_all(GTK_WIDGET(docklet));
168 172
169 /* ref the docklet before we bandy it about the place */ 173 /* ref the docklet before we bandy it about the place */
170 g_object_ref(G_OBJECT(docklet)); 174 g_object_ref(G_OBJECT(docklet));
171 175