[Commits] [SCM] claws branch, master, updated. 3.18.0-142-g9cfb0bd90

paul at claws-mail.org paul at claws-mail.org
Fri Sep 17 09:39:22 CEST 2021


The branch, master has been updated
       via  9cfb0bd90e7ce363dfc8072f1b3adaf9105a986f (commit)
      from  953d86931c9de2c278e1c58207bec2b8bd56887c (commit)

Summary of changes:
 src/edittags.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 9cfb0bd90e7ce363dfc8072f1b3adaf9105a986f
Author: paul <paul at claws-mail.org>
Date:   Fri Sep 17 08:38:44 2021 +0100

    only allow deletion of tags from the Tags Configuration window

diff --git a/src/edittags.c b/src/edittags.c
index 38aab7d32..42b5af88a 100644
--- a/src/edittags.c
+++ b/src/edittags.c
@@ -88,6 +88,7 @@ static struct TagsWindow
 	GtkWidget *close_btn;
 	GtkWidget *add_entry;
 	GtkWidget *add_btn;
+	GtkWidget *del_btn;
 	GSList *msglist;
 	gboolean has_tag_col;
 	GdkCursor *watch_cursor;
@@ -130,10 +131,12 @@ void tags_window_open(GSList *msglist)
 	} 
 	if (msglist == NULL) {
 		gtk_widget_hide(tagswindow.label);
+		gtk_widget_show(tagswindow.del_btn);
 		gtk_window_set_title(GTK_WINDOW(tagswindow.window),
 				     C_("Window title", "Tags configuration"));
 	} else {
 		gtk_widget_show(tagswindow.label);
+		gtk_widget_hide(tagswindow.del_btn);
 		gtk_window_set_title(GTK_WINDOW(tagswindow.window),
 				     C_("Window title", "Modify tags"));
 	}
@@ -593,7 +596,6 @@ static void tags_window_create(void)
 	gtk_widget_show(new_tag_entry);
 	gtk_widget_show(close_btn);
 	gtk_widget_show(add_btn);
-	gtk_widget_show(del_btn);
 
 	g_signal_connect(G_OBJECT(close_btn), "clicked",
 			 G_CALLBACK(tags_window_close_cb), NULL);
@@ -643,6 +645,7 @@ static void tags_window_create(void)
 	tagswindow.close_btn = close_btn;
 	tagswindow.add_btn = add_btn;
 	tagswindow.add_entry = new_tag_entry;
+	tagswindow.del_btn = del_btn;
 	tagswindow.has_tag_col = FALSE;
 	tagswindow.watch_cursor = gdk_cursor_new(GDK_WATCH);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list