Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 11851:3bfb2cffcef2
[gaim-migrate @ 14142]
inspired by Richard Stellingwerff's patch 1339606, this workaround for
annoying visible borders on tab close buttons is no longer required with
at least gtk 2.6 (if someone can confirm if it was fixed in 2.4 we could
remove it there too)
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 27 Oct 2005 15:15:52 +0000 |
parents | 908ff9b56e99 |
children | 4ab3ce602932 |
comparison
equal
deleted
inserted
replaced
11850:0d793b594a23 | 11851:3bfb2cffcef2 |
---|---|
5798 gtkconv_set_unseen(gtkconv, GAIM_UNSEEN_NONE); | 5798 gtkconv_set_unseen(gtkconv, GAIM_UNSEEN_NONE); |
5799 | 5799 |
5800 return FALSE; | 5800 return FALSE; |
5801 } | 5801 } |
5802 | 5802 |
5803 #if !GTK_CHECK_VERSION(2,6,0) | |
5803 /* Courtesy of Galeon! */ | 5804 /* Courtesy of Galeon! */ |
5804 static void | 5805 static void |
5805 tab_close_button_state_changed_cb(GtkWidget *widget, GtkStateType prev_state) | 5806 tab_close_button_state_changed_cb(GtkWidget *widget, GtkStateType prev_state) |
5806 { | 5807 { |
5807 if (GTK_WIDGET_STATE(widget) == GTK_STATE_ACTIVE) | 5808 if (GTK_WIDGET_STATE(widget) == GTK_STATE_ACTIVE) |
5808 gtk_widget_set_state(widget, GTK_STATE_NORMAL); | 5809 gtk_widget_set_state(widget, GTK_STATE_NORMAL); |
5809 } | 5810 } |
5811 #endif | |
5810 | 5812 |
5811 static void | 5813 static void |
5812 notebook_init_grab(GaimGtkWindow *gtkwin, GtkWidget *widget) | 5814 notebook_init_grab(GaimGtkWindow *gtkwin, GtkWidget *widget) |
5813 { | 5815 { |
5814 static GdkCursor *cursor = NULL; | 5816 static GdkCursor *cursor = NULL; |
6403 _("Close conversation"), NULL); | 6405 _("Close conversation"), NULL); |
6404 | 6406 |
6405 g_signal_connect(G_OBJECT(gtkconv->close), "clicked", | 6407 g_signal_connect(G_OBJECT(gtkconv->close), "clicked", |
6406 G_CALLBACK(close_conv_cb), gtkconv); | 6408 G_CALLBACK(close_conv_cb), gtkconv); |
6407 | 6409 |
6410 #if !GTK_CHECK_VERSION(2,6,0) | |
6408 /* | 6411 /* |
6409 * I love Galeon. They have a fix for that stupid annoying visible | 6412 * I love Galeon. They have a fix for that stupid annoying visible |
6410 * border bug. I love you guys! -- ChipX86 | 6413 * border bug. I love you guys! -- ChipX86 |
6411 */ | 6414 */ |
6415 /* This is fixed properly in some version of Gtk before 2.6.0 */ | |
6412 g_signal_connect(G_OBJECT(gtkconv->close), "state_changed", | 6416 g_signal_connect(G_OBJECT(gtkconv->close), "state_changed", |
6413 G_CALLBACK(tab_close_button_state_changed_cb), NULL); | 6417 G_CALLBACK(tab_close_button_state_changed_cb), NULL); |
6418 #endif | |
6414 | 6419 |
6415 /* Status icon. */ | 6420 /* Status icon. */ |
6416 gtkconv->icon = gtk_image_new(); | 6421 gtkconv->icon = gtk_image_new(); |
6417 gtkconv->menu_icon = gtk_image_new(); | 6422 gtkconv->menu_icon = gtk_image_new(); |
6418 update_tab_icon(conv); | 6423 update_tab_icon(conv); |