[Commits] [SCM] claws branch, master, updated. 3.13.2-9-gd0c7241

ticho at claws-mail.org ticho at claws-mail.org
Thu Jan 28 20:14:56 CET 2016


The branch, master has been updated
       via  d0c724175711262214cd13a38e68fa8dd4630056 (commit)
      from  282fa50eaf5b4496f879f5debb3ce45db506987b (commit)

Summary of changes:
 src/compose.c |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit d0c724175711262214cd13a38e68fa8dd4630056
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Jan 28 20:13:45 2016 +0100

    Remove the outer scrollbar from header area.
    
    This means the sender address line, with account
    selector is always visible.

diff --git a/src/compose.c b/src/compose.c
index af64a83..cb50635 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -7115,21 +7115,14 @@ static void compose_remove_header_entries(Compose *compose)
 static GtkWidget *compose_create_header(Compose *compose) 
 {
 	GtkWidget *from_optmenu_hbox;
-	GtkWidget *header_scrolledwin_main;
 	GtkWidget *header_table_main;
 	GtkWidget *header_scrolledwin;
 	GtkWidget *header_table;
 
 	/* parent with account selection and from header */
-	header_scrolledwin_main = gtk_scrolled_window_new(NULL, NULL);
-	gtk_widget_show(header_scrolledwin_main);
-	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(header_scrolledwin_main), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-
 	header_table_main = gtk_table_new(2, 2, FALSE);
 	gtk_widget_show(header_table_main);
 	gtk_container_set_border_width(GTK_CONTAINER(header_table_main), BORDER_WIDTH);
-	gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(header_scrolledwin_main), header_table_main);
-	gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(GTK_BIN((header_scrolledwin_main)))), GTK_SHADOW_NONE);
 
 	from_optmenu_hbox = compose_account_option_menu_create(compose);
 	gtk_table_attach(GTK_TABLE(header_table_main), from_optmenu_hbox,
@@ -7159,7 +7152,7 @@ static GtkWidget *compose_create_header(Compose *compose)
 
 	compose->table = NULL;
 
-	return header_scrolledwin_main;
+	return header_table_main;
 }
 
 static gboolean popup_attach_button_pressed(GtkWidget *widget, gpointer data)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list