changeset 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 3de4cb53762b
children b83905afbb55
files plugins/docklet/docklet-x11.c src/gtkimhtml.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/docklet/docklet-x11.c	Mon Jun 07 04:02:10 2004 +0000
+++ b/plugins/docklet/docklet-x11.c	Mon Jun 07 04:46:01 2004 +0000
@@ -164,6 +164,10 @@
 
 	gtk_container_add(GTK_CONTAINER(box), image);
 	gtk_container_add(GTK_CONTAINER(docklet), box);
+
+	if(!gtk_check_version(2,4,0))
+		g_object_set(G_OBJECT(box), "visible-window", FALSE, NULL);
+
 	gtk_widget_show_all(GTK_WIDGET(docklet));
 
 	/* ref the docklet before we bandy it about the place */
--- a/src/gtkimhtml.c	Mon Jun 07 04:02:10 2004 +0000
+++ b/src/gtkimhtml.c	Mon Jun 07 04:46:01 2004 +0000
@@ -2748,9 +2748,9 @@
 	GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter);
 
 	gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(image->image));
-#if GTK_CHECK_VERSION(2,4,0)
-	gtk_event_box_set_visible_window(GTK_EVENT_BOX(box), FALSE);
-#endif
+
+	if(!gtk_check_version(2, 4, 0))
+		g_object_set(G_OBJECT(box), "visible-window", FALSE, NULL);
 
 	gtk_widget_show(GTK_WIDGET(image->image));
 	gtk_widget_show(box);