talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit a7e20307867cb9f53f7b4afc51a727e7f82d897e
parent dd8aee82fda1f004a9f9e5876efc828fec1d12d8
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri, 16 Sep 2016 19:54:10 +0200

Remove useless workaround

The problem is still happening with it, see bug #3511

Diffstat:
Msrc/gtk/colorlabel.c | 21---------------------
1 file changed, 0 insertions(+), 21 deletions(-)

diff --git a/src/gtk/colorlabel.c b/src/gtk/colorlabel.c @@ -369,25 +369,6 @@ GtkWidget *colorlabel_create_check_color_menu_item(gint color_index, gboolean fo return item; } -/* Work around a gtk bug (?): without that, the selected menu item's - * colored rectangle is drawn at 0,0 in the window... - */ -static void refresh_menu (GtkWidget *menushell, gpointer data) -{ - GtkMenu *menu = (GtkMenu *)data; - GtkWidget *widget = gtk_menu_get_attach_widget(menu); -#if !GTK_CHECK_VERSION(3, 0, 0) - gtk_widget_hide_all(widget); - gtk_widget_unrealize(widget); - gtk_widget_show_all(widget); -#else - gtk_widget_hide(widget); - gtk_widget_unrealize(widget); - gtk_widget_show(widget); -#endif - gtk_widget_queue_draw(widget); -} - /* colorlabel_create_color_menu() - creates a color menu without * checkitems, probably for use in combo items */ GtkWidget *colorlabel_create_color_menu(void) @@ -444,8 +425,6 @@ GtkWidget *colorlabel_create_color_menu(void) gtk_widget_show(item); } - g_signal_connect(G_OBJECT(menu), "selection-done", - G_CALLBACK(refresh_menu), menu); gtk_widget_show(menu); return menu;