[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-202-g0ab4f470f

paul at claws-mail.org paul at claws-mail.org
Fri Sep 17 09:38:47 CEST 2021


The branch, gtk3 has been updated
       via  0ab4f470fe1a93383c36091a2821bd09435582f0 (commit)
      from  6e0cf4b69cdb95940db868c1bac422ac05e00717 (commit)

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


- Log -----------------------------------------------------------------
commit 0ab4f470fe1a93383c36091a2821bd09435582f0
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 7e80bc2fb..899180c3f 100644
--- a/src/edittags.c
+++ b/src/edittags.c
@@ -87,6 +87,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;
@@ -129,10 +130,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"));
 	}
@@ -590,7 +593,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);
@@ -639,6 +641,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_for_display(
 			gtk_widget_get_display(window), GDK_WATCH);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list