[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-200-g6a52fac34

paul at claws-mail.org paul at claws-mail.org
Thu Sep 16 17:28:35 CEST 2021


The branch, gtk3 has been updated
       via  6a52fac348d35dbd59ab1cbbae0e660242465a26 (commit)
      from  9ade17f2b5430bb137789100d61e5eef793431c6 (commit)

Summary of changes:
 src/mainwindow.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit 6a52fac348d35dbd59ab1cbbae0e660242465a26
Author: paul <paul at claws-mail.org>
Date:   Thu Sep 16 16:28:26 2021 +0100

    remove unnecessary empty menu item in colour label menu; replace empty menu item with separator in tags menu

diff --git a/src/mainwindow.c b/src/mainwindow.c
index 96a04cc3b..77ffd4781 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1186,9 +1186,6 @@ static void mainwindow_colorlabel_menu_create(MainWindow *mainwin, gboolean refr
 	gtk_menu_item_set_accel_path(GTK_MENU_ITEM(item), accel_path);
 	g_free(accel_path);
 	gtk_accel_map_add_entry("<ClawsColorLabels>/None", GDK_KEY_0, GDK_CONTROL_MASK);
-	item = gtk_menu_item_new();
-	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
-	gtk_widget_show(item);
 
 	/* create pixmap/label menu items */
 	for (i = 0; i < N_COLOR_LABELS; i++) {
@@ -1293,7 +1290,7 @@ static void mainwindow_tags_menu_create(MainWindow *mainwin, gboolean refresh)
 	}
 	if (existing_tags) {
 		/* separator */
-		item = gtk_menu_item_new();
+		item = gtk_separator_menu_item_new();
 		gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 		gtk_widget_show(item);
 	}

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list