[Commits] [SCM] claws branch, master, updated. 3.14.0-83-ga7e2030

mones at claws-mail.org mones at claws-mail.org
Fri Sep 16 19:55:46 CEST 2016


The branch, master has been updated
       via  a7e20307867cb9f53f7b4afc51a727e7f82d897e (commit)
      from  dd8aee82fda1f004a9f9e5876efc828fec1d12d8 (commit)

Summary of changes:
 src/gtk/colorlabel.c |   21 ---------------------
 1 file changed, 21 deletions(-)


- Log -----------------------------------------------------------------
commit a7e20307867cb9f53f7b4afc51a727e7f82d897e
Author: Ricardo Mones <ricardo at mones.org>
Date:   Fri Sep 16 19:54:10 2016 +0200

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

diff --git a/src/gtk/colorlabel.c b/src/gtk/colorlabel.c
index 0a36610..78130ae 100644
--- 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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list