Mercurial > pidgin
comparison src/gtkimhtml.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 | a9f97d5258f8 |
children | 9b138ebf9ca8 |
comparison
equal
deleted
inserted
replaced
9228:3de4cb53762b | 9229:395e62cf7bf6 |
---|---|
2746 GtkWidget *box = gtk_event_box_new(); | 2746 GtkWidget *box = gtk_event_box_new(); |
2747 char *tag; | 2747 char *tag; |
2748 GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); | 2748 GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); |
2749 | 2749 |
2750 gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(image->image)); | 2750 gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(image->image)); |
2751 #if GTK_CHECK_VERSION(2,4,0) | 2751 |
2752 gtk_event_box_set_visible_window(GTK_EVENT_BOX(box), FALSE); | 2752 if(!gtk_check_version(2, 4, 0)) |
2753 #endif | 2753 g_object_set(G_OBJECT(box), "visible-window", FALSE, NULL); |
2754 | 2754 |
2755 gtk_widget_show(GTK_WIDGET(image->image)); | 2755 gtk_widget_show(GTK_WIDGET(image->image)); |
2756 gtk_widget_show(box); | 2756 gtk_widget_show(box); |
2757 | 2757 |
2758 tag = g_strdup_printf("<IMG ID=\"%d\">", image->id); | 2758 tag = g_strdup_printf("<IMG ID=\"%d\">", image->id); |