[Commits] [SCM] claws branch, master, updated. 3.14.1-231-gb06be7c

ticho at claws-mail.org ticho at claws-mail.org
Sat Mar 18 12:42:52 CET 2017


The branch, master has been updated
       via  b06be7caf149e292fe0b1908a838d7b190d030b8 (commit)
      from  3f01dc8712d823923662ced3fca64e5cb60bb214 (commit)

Summary of changes:
 src/foldersel.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit b06be7caf149e292fe0b1908a838d7b190d030b8
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat Mar 18 12:41:41 2017 +0100

    Show context of foldersel dialog in a label, instead of in a title.
    
    This is a follow-up commit to bd8213.

diff --git a/src/foldersel.c b/src/foldersel.c
index 837763e..7cb3e43 100644
--- a/src/foldersel.c
+++ b/src/foldersel.c
@@ -240,14 +240,14 @@ static void foldersel_create(const gchar *title)
 	GtkWidget *vbox;
 	GtkWidget *scrolledwin;
 	GtkWidget *confirm_area;
+	GtkWidget *label;
 	GtkTreeViewColumn *column;
 	GtkCellRenderer *renderer;
 	GtkTreeSelection *selection;
 	static GdkGeometry geometry;
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "foldersel");
-	gtk_window_set_title(GTK_WINDOW(window),
-			title ? title : _("Select folder"));
+	gtk_window_set_title(GTK_WINDOW(window),_("Select folder"));
 	gtk_container_set_border_width(GTK_CONTAINER(window), 4);
 	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
 	gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
@@ -264,6 +264,12 @@ static void foldersel_create(const gchar *title)
 	vbox = gtk_vbox_new(FALSE, 4);
 	gtk_container_add(GTK_CONTAINER(window), vbox);
 
+	if (title != NULL) {
+		label = gtk_label_new(title);
+		gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
+		gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
+	}
+
 	scrolledwin = gtk_scrolled_window_new(NULL, NULL);
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin),
 				       GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list