Mercurial > pidgin
changeset 20286:0ce367508ab6
Fix for compiling with Gtk < 2.4, references #3144
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 29 Sep 2007 14:19:05 +0000 |
parents | 5c42c7c7780d |
children | ff4e9608b402 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Fri Sep 28 20:58:27 2007 +0000 +++ b/pidgin/gtkconv.c Sat Sep 29 14:19:05 2007 +0000 @@ -6758,7 +6758,9 @@ event = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(gtkconv->u.im->icon_container), event); +#if GTK_CHECK_VERSION(2,4,0) gtk_event_box_set_visible_window(GTK_EVENT_BOX(event), FALSE); +#endif gtk_widget_add_events(event, GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK); g_signal_connect(G_OBJECT(event), "button-press-event", @@ -8864,7 +8866,9 @@ /* Close button. */ gtkconv->close = gtk_event_box_new(); +#if GTK_CHECK_VERSION(2,4,0) gtk_event_box_set_visible_window(GTK_EVENT_BOX(gtkconv->close), FALSE); +#endif gtk_widget_set_events(gtkconv->close, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK); close_image = gtk_label_new("×"); g_signal_connect(G_OBJECT(gtkconv->close), "enter-notify-event", G_CALLBACK(close_button_entered_cb), close_image);