[Commits] [SCM] claws branch, master, updated. 3.17.3-54-g48a284c

claws at claws-mail.org claws at claws-mail.org
Tue Jan 29 14:30:32 CET 2019


The branch, master has been updated
       via  48a284c9477aa5fdfc8380e847e9c84709ea7da4 (commit)
      from  370d1ed483ac2c82345822c7c6c07779762198e6 (commit)

Summary of changes:
 src/prefs_display_header.c |   84 +++++++++++++++++++++-----------------------
 1 file changed, 41 insertions(+), 43 deletions(-)


- Log -----------------------------------------------------------------
commit 48a284c9477aa5fdfc8380e847e9c84709ea7da4
Author: Paul <paul at claws-mail.org>
Date:   Tue Jan 29 13:30:26 2019 +0000

    put displayed headers on the right, hidden headers on the left. a layout shared by other, similar prefs windows

diff --git a/src/prefs_display_header.c b/src/prefs_display_header.c
index 3c43ebe..10cbe84 100644
--- a/src/prefs_display_header.c
+++ b/src/prefs_display_header.c
@@ -291,6 +291,47 @@ static void prefs_display_header_create(void)
 	gtk_widget_show (list_view_hbox);
 	gtk_box_pack_start (GTK_BOX (vbox1), list_view_hbox, TRUE, TRUE, 0);
 
+	/* hidden headers list */
+
+	list_view_hbox2 = gtk_hbox_new (FALSE, 8);
+	gtk_widget_show (list_view_hbox2);
+	gtk_box_pack_start (GTK_BOX (list_view_hbox), list_view_hbox2, TRUE, TRUE, 0);
+
+	list_view_scrolledwin = gtk_scrolled_window_new (NULL, NULL);
+	gtk_widget_set_size_request (list_view_scrolledwin, 200, 210);
+	gtk_widget_show (list_view_scrolledwin);
+	gtk_box_pack_start (GTK_BOX (list_view_hbox2), list_view_scrolledwin,
+			    TRUE, TRUE, 0);
+	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (list_view_scrolledwin),
+					GTK_POLICY_AUTOMATIC,
+					GTK_POLICY_AUTOMATIC);
+	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(list_view_scrolledwin),
+					    GTK_SHADOW_IN);
+
+	hidden_headers_list_view = prefs_display_header_list_view_create
+					(_("Hidden headers"));
+	gtk_widget_show (hidden_headers_list_view);
+	gtk_container_add (GTK_CONTAINER (list_view_scrolledwin),
+			   hidden_headers_list_view);
+
+	btn_vbox = gtk_vbox_new (FALSE, 8);
+	gtk_widget_show (btn_vbox);
+	gtk_box_pack_start (GTK_BOX (list_view_hbox2), btn_vbox, FALSE, FALSE, 0);
+
+	reg_btn = gtk_button_new_from_stock (GTK_STOCK_ADD);
+	gtk_widget_show (reg_btn);
+	gtk_box_pack_start (GTK_BOX (btn_vbox), reg_btn, FALSE, TRUE, 0);
+	g_signal_connect (G_OBJECT (reg_btn), "clicked",
+			    G_CALLBACK
+			    (prefs_display_header_register_cb),
+			    GINT_TO_POINTER(TRUE));
+	del_btn = gtk_button_new_from_stock (GTK_STOCK_DELETE);
+	gtk_widget_show (del_btn);
+	gtk_box_pack_start (GTK_BOX (btn_vbox), del_btn, FALSE, TRUE, 0);
+	g_signal_connect (G_OBJECT	 (del_btn), "clicked",
+			    G_CALLBACK (prefs_display_header_delete_cb),
+			    hidden_headers_list_view);
+
 	/* display headers list */
 
 	list_view_hbox1 = gtk_hbox_new (FALSE, 8);
@@ -353,49 +394,6 @@ static void prefs_display_header_create(void)
 	g_signal_connect (G_OBJECT (down_btn), "clicked",
 			  G_CALLBACK (prefs_display_header_down), NULL);
 
-	/* hidden headers list */
-
-	list_view_hbox2 = gtk_hbox_new (FALSE, 8);
-	gtk_widget_show (list_view_hbox2);
-	gtk_box_pack_start (GTK_BOX (list_view_hbox), list_view_hbox2, TRUE, TRUE, 0);
-
-	list_view_scrolledwin = gtk_scrolled_window_new (NULL, NULL);
-	gtk_widget_set_size_request (list_view_scrolledwin, 200, 210);
-	gtk_widget_show (list_view_scrolledwin);
-	gtk_box_pack_start (GTK_BOX (list_view_hbox2), list_view_scrolledwin,
-			    TRUE, TRUE, 0);
-	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (list_view_scrolledwin),
-					GTK_POLICY_AUTOMATIC,
-					GTK_POLICY_AUTOMATIC);
-	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(list_view_scrolledwin),
-					    GTK_SHADOW_IN);
-
-	hidden_headers_list_view = prefs_display_header_list_view_create
-					(_("Hidden headers"));
-	gtk_widget_show (hidden_headers_list_view);
-	gtk_container_add (GTK_CONTAINER (list_view_scrolledwin),
-			   hidden_headers_list_view);
-
-	btn_vbox = gtk_vbox_new (FALSE, 8);
-	gtk_widget_show (btn_vbox);
-	gtk_box_pack_start (GTK_BOX (list_view_hbox2), btn_vbox, FALSE, FALSE, 0);
-
-	reg_btn = gtk_button_new_from_stock (GTK_STOCK_ADD);
-	gtk_widget_show (reg_btn);
-	gtk_box_pack_start (GTK_BOX (btn_vbox), reg_btn, FALSE, TRUE, 0);
-	g_signal_connect (G_OBJECT (reg_btn), "clicked",
-			    G_CALLBACK
-			    (prefs_display_header_register_cb),
-			    GINT_TO_POINTER(TRUE));
-	del_btn = gtk_button_new_from_stock (GTK_STOCK_DELETE);
-	gtk_widget_show (del_btn);
-	gtk_box_pack_start (GTK_BOX (btn_vbox), del_btn, FALSE, TRUE, 0);
-	g_signal_connect (G_OBJECT	 (del_btn), "clicked",
-			    G_CALLBACK (prefs_display_header_delete_cb),
-			    hidden_headers_list_view);
-
-	
-
 	PACK_CHECK_BUTTON (vbox, checkbtn_other_headers,
 			   _("Show all unspecified headers"));
 	SET_TOGGLE_SENSITIVITY (checkbtn_other_headers, list_view_hbox2);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list