[Commits] [SCM] claws branch, master, updated. 3.15.0-191-ge5e9653
mones at claws-mail.org
mones at claws-mail.org
Sun Dec 10 02:53:11 CET 2017
The branch, master has been updated
via e5e9653deef1b688faf866b64d25e817f45b6666 (commit)
from 32ba3f7ea04b7359721ad866aeafa85503b25597 (commit)
Summary of changes:
src/editldap.c | 5 -----
src/editldap_basedn.c | 1 -
src/prefs_customheader.c | 4 ----
src/prefs_message.c | 2 --
src/prefs_summaries.c | 1 -
src/prefs_summary_open.c | 3 +--
src/prefs_template.c | 1 -
src/printing.c | 1 -
src/quote_fmt.c | 7 -------
src/statusbar.c | 1 -
src/wizard.c | 1 -
11 files changed, 1 insertion(+), 26 deletions(-)
- Log -----------------------------------------------------------------
commit e5e9653deef1b688faf866b64d25e817f45b6666
Author: Ricardo Mones <ricardo at mones.org>
Date: Sun Dec 10 02:52:51 2017 +0100
Prune gtk_widget_set_size_request calls
diff --git a/src/editldap.c b/src/editldap.c
index 660e231..9272d98 100644
--- a/src/editldap.c
+++ b/src/editldap.c
@@ -331,7 +331,6 @@ static void addressbook_edit_ldap_dialog_create( gboolean *cancelled ) {
debug_print("creating edit_ldap_dialog\n");
window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "editldap");
- gtk_widget_set_size_request(window, 450, -1);
gtk_container_set_border_width(GTK_CONTAINER(window), 0);
gtk_window_set_title(GTK_WINDOW(window), _("Edit LDAP Server"));
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
@@ -463,7 +462,6 @@ static void addressbook_edit_ldap_page_basic( gint pageNum, gchar *pageLbl ) {
spinbtn_port_adj = GTK_ADJUSTMENT(gtk_adjustment_new (389, 1, 65535, 1, 1000, 0));
spinbtn_port = gtk_spin_button_new(GTK_ADJUSTMENT (spinbtn_port_adj), 1, 0);
gtk_box_pack_start (GTK_BOX (hbox_spin), spinbtn_port, TRUE, FALSE, 0);
- gtk_widget_set_size_request (spinbtn_port, 64, -1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_port), TRUE);
#if (defined USE_LDAP_TLS || defined G_OS_WIN32)
@@ -607,7 +605,6 @@ static void addressbook_edit_ldap_page_search( gint pageNum, gchar *pageLbl ) {
LDAPCTL_DFL_QUERY_AGE, 1, LDAPCTL_MAX_QUERY_AGE, 10, 1000, 0 ));
spinbtn_queryage = gtk_spin_button_new(GTK_ADJUSTMENT (spinbtn_queryage_adj), 1, 0);
gtk_box_pack_start (GTK_BOX (hbox_spin), spinbtn_queryage, FALSE, FALSE, 0);
- gtk_widget_set_size_request (spinbtn_queryage, 64, -1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_queryage), TRUE);
gtk_table_attach(GTK_TABLE(table), hbox_spin, 1, 2, top, (top + 1),
GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
@@ -755,7 +752,6 @@ static void addressbook_edit_ldap_page_extended( gint pageNum, gchar *pageLbl )
spinbtn_timeout_adj = GTK_ADJUSTMENT(gtk_adjustment_new (0, 0, 300, 1, 10, 0));
spinbtn_timeout = gtk_spin_button_new(GTK_ADJUSTMENT (spinbtn_timeout_adj), 1, 0);
gtk_box_pack_start (GTK_BOX (hbox_spin), spinbtn_timeout, FALSE, FALSE, 0);
- gtk_widget_set_size_request (spinbtn_timeout, 64, -1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_timeout), TRUE);
gtk_table_attach(GTK_TABLE(table), hbox_spin, 1, 2, top, (top + 1),
GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
@@ -773,7 +769,6 @@ static void addressbook_edit_ldap_page_extended( gint pageNum, gchar *pageLbl )
spinbtn_maxentry_adj = GTK_ADJUSTMENT(gtk_adjustment_new (0, 0, 500, 1, 10, 0));
spinbtn_maxentry = gtk_spin_button_new(GTK_ADJUSTMENT (spinbtn_maxentry_adj), 1, 0);
gtk_box_pack_start (GTK_BOX (hbox_spin), spinbtn_maxentry, FALSE, FALSE, 0);
- gtk_widget_set_size_request (spinbtn_maxentry, 64, -1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_maxentry), TRUE);
gtk_table_attach(GTK_TABLE(table), hbox_spin, 1, 2, top, (top + 1),
GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
diff --git a/src/editldap_basedn.c b/src/editldap_basedn.c
index bcc5681..396fffc 100644
--- a/src/editldap_basedn.c
+++ b/src/editldap_basedn.c
@@ -132,7 +132,6 @@ static void edit_ldap_bdn_create(void) {
gint top;
window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "editldap_basedn");
- gtk_widget_set_size_request(window, 300, 270);
gtk_container_set_border_width(GTK_CONTAINER(window), 0);
gtk_window_set_title(GTK_WINDOW(window), _("Edit LDAP - Select Search Base"));
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
diff --git a/src/prefs_customheader.c b/src/prefs_customheader.c
index 02133f2..7cfb463 100644
--- a/src/prefs_customheader.c
+++ b/src/prefs_customheader.c
@@ -217,7 +217,6 @@ static void prefs_custom_header_create(void)
gtk_table_attach (GTK_TABLE (table1), hdr_combo, 0, 1, 1, 2,
GTK_EXPAND | GTK_SHRINK | GTK_FILL,
0, 0, 0);
- gtk_widget_set_size_request (hdr_combo, 150, -1);
val_label = gtk_label_new (_("Value"));
gtk_widget_show (val_label);
@@ -231,7 +230,6 @@ static void prefs_custom_header_create(void)
gtk_table_attach (GTK_TABLE (table1), val_entry, 1, 2, 1, 2,
GTK_EXPAND | GTK_SHRINK | GTK_FILL,
0, 0, 0);
- gtk_widget_set_size_request (val_entry, 200, -1);
val_btn = gtkut_get_browse_file_btn(_("Bro_wse"));
gtk_widget_show (val_btn);
@@ -251,7 +249,6 @@ static void prefs_custom_header_create(void)
arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_widget_show (arrow);
gtk_box_pack_start (GTK_BOX (reg_hbox), arrow, FALSE, FALSE, 0);
- gtk_widget_set_size_request (arrow, -1, 16);
btn_hbox = gtk_hbox_new (TRUE, 4);
gtk_widget_show (btn_hbox);
@@ -277,7 +274,6 @@ static void prefs_custom_header_create(void)
gtk_box_pack_start (GTK_BOX (vbox1), ch_hbox, TRUE, TRUE, 0);
ch_scrolledwin = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_size_request (ch_scrolledwin, -1, 200);
gtk_widget_show (ch_scrolledwin);
gtk_box_pack_start (GTK_BOX (ch_hbox), ch_scrolledwin, TRUE, TRUE, 0);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (ch_scrolledwin),
diff --git a/src/prefs_message.c b/src/prefs_message.c
index 47f5e07..3bcb9e0 100644
--- a/src/prefs_message.c
+++ b/src/prefs_message.c
@@ -183,7 +183,6 @@ static void prefs_message_create_widget(PrefsPage *_page, GtkWindow *window,
gtk_widget_show (spinbtn_linespc);
gtk_box_pack_start (GTK_BOX (hbox_linespc), spinbtn_linespc,
FALSE, FALSE, 0);
- gtk_widget_set_size_request (spinbtn_linespc, 64, -1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_linespc), TRUE);
label_linespc = gtk_label_new (_("pixels"));
@@ -216,7 +215,6 @@ static void prefs_message_create_widget(PrefsPage *_page, GtkWindow *window,
gtk_widget_show (spinbtn_scrollstep);
gtk_box_pack_start (GTK_BOX (hbox_scr), spinbtn_scrollstep,
FALSE, FALSE, 0);
- gtk_widget_set_size_request (spinbtn_scrollstep, 64, -1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_scrollstep),
TRUE);
diff --git a/src/prefs_summaries.c b/src/prefs_summaries.c
index 58aa939..7e131dc 100644
--- a/src/prefs_summaries.c
+++ b/src/prefs_summaries.c
@@ -568,7 +568,6 @@ static void prefs_summaries_create_widget(PrefsPage *_page, GtkWindow *window,
entry_datefmt = gtk_entry_new ();
gtk_widget_show (entry_datefmt);
- gtk_widget_set_size_request(entry_datefmt, 200, -1);
gtk_box_pack_start (GTK_BOX (hbox2), entry_datefmt, FALSE, FALSE, 0);
button_datefmt = gtk_button_new_from_stock(GTK_STOCK_INFO);
diff --git a/src/prefs_summary_open.c b/src/prefs_summary_open.c
index 961afb2..00dfecd 100644
--- a/src/prefs_summary_open.c
+++ b/src/prefs_summary_open.c
@@ -164,6 +164,7 @@ static void prefs_summary_open_create(void)
gtk_container_set_border_width (GTK_CONTAINER (window), 8);
gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
gtk_window_set_resizable(GTK_WINDOW (window), TRUE);
+ gtk_widget_set_size_request (GTK_WIDGET (window), 610, 310);
vbox = gtk_vbox_new (FALSE, 6);
gtk_widget_show (vbox);
@@ -216,7 +217,6 @@ static void prefs_summary_open_create(void)
gtk_box_pack_start (GTK_BOX (list_view_hbox), list_view_hbox1, 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_hbox1), list_view_scrolledwin,
TRUE, TRUE, 0);
@@ -252,7 +252,6 @@ static void prefs_summary_open_create(void)
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, 230);
gtk_widget_show (list_view_scrolledwin);
gtk_box_pack_start (GTK_BOX (list_view_hbox2), list_view_scrolledwin,
TRUE, TRUE, 0);
diff --git a/src/prefs_template.c b/src/prefs_template.c
index e8f656d..c1b6dcc 100644
--- a/src/prefs_template.c
+++ b/src/prefs_template.c
@@ -294,7 +294,6 @@ static void prefs_template_window_create(void)
arrow1 = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_widget_show(arrow1);
gtk_box_pack_start(GTK_BOX(hbox2), arrow1, FALSE, FALSE, 0);
- gtk_widget_set_size_request(arrow1, -1, 16);
hbox3 = gtk_hbox_new(TRUE, 4);
gtk_widget_show(hbox3);
diff --git a/src/printing.c b/src/printing.c
index ccd857f..27030b4 100644
--- a/src/printing.c
+++ b/src/printing.c
@@ -481,7 +481,6 @@ static gboolean cb_preview(GtkPrintOperation *operation,
_("Previous page"), cb_preview_go_previous, preview_data);
page = gtk_label_new("");
- gtk_widget_set_size_request(page, 100, -1);
preview_data->page_nr_label = page;
TOOLBAR_ITEM(preview_data->next, GTK_STOCK_GO_FORWARD,
diff --git a/src/quote_fmt.c b/src/quote_fmt.c
index 7c3f415..8206a25 100644
--- a/src/quote_fmt.c
+++ b/src/quote_fmt.c
@@ -192,7 +192,6 @@ void quotefmt_create_new_msg_fmt_widgets(GtkWindow *parent_window,
entry_from = gtk_entry_new ();
gtk_widget_show (entry_from);
gtk_box_pack_start (GTK_BOX (hbox2_format), entry_from, TRUE, TRUE, 0);
- gtk_widget_set_size_request (entry_from, 100, -1);
CLAWS_SET_TIP(entry_from,
_("Override From header. This doesn't change the account used to compose the new message."));
@@ -211,7 +210,6 @@ void quotefmt_create_new_msg_fmt_widgets(GtkWindow *parent_window,
entry_subject = gtk_entry_new ();
gtk_widget_show (entry_subject);
gtk_box_pack_start (GTK_BOX (hbox_format), entry_subject, TRUE, TRUE, 0);
- gtk_widget_set_size_request (entry_subject, 100, -1);
scrolledwin_format = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show (scrolledwin_format);
@@ -237,7 +235,6 @@ void quotefmt_create_new_msg_fmt_widgets(GtkWindow *parent_window,
gtk_widget_show(text_format);
gtk_container_add(GTK_CONTAINER(scrolledwin_format), text_format);
gtk_text_view_set_editable (GTK_TEXT_VIEW (text_format), TRUE);
- gtk_widget_set_size_request(text_format, -1, 100);
if (checkbtn_compose_with_format) {
SET_TOGGLE_SENSITIVITY(checkbtn_use_format, label_subject);
@@ -318,7 +315,6 @@ void quotefmt_create_reply_fmt_widgets(GtkWindow *parent_window,
entry_from = gtk_entry_new ();
gtk_widget_show (entry_from);
gtk_box_pack_start (GTK_BOX (hbox3), entry_from, TRUE, TRUE, 0);
- gtk_widget_set_size_request (entry_from, 100, -1);
CLAWS_SET_TIP(entry_from,
_("Override From header. This doesn't change the account used to reply."));
@@ -367,7 +363,6 @@ void quotefmt_create_reply_fmt_widgets(GtkWindow *parent_window,
gtk_widget_show(text_quotefmt);
gtk_container_add(GTK_CONTAINER(scrolledwin_quotefmt), text_quotefmt);
gtk_text_view_set_editable (GTK_TEXT_VIEW (text_quotefmt), TRUE);
- gtk_widget_set_size_request(text_quotefmt, -1, 100);
if (checkbtn_reply_with_format) {
SET_TOGGLE_SENSITIVITY(checkbtn_use_format, label_quotemark);
@@ -448,7 +443,6 @@ void quotefmt_create_forward_fmt_widgets(GtkWindow *parent_window,
entry_from = gtk_entry_new ();
gtk_widget_show (entry_from);
gtk_box_pack_start (GTK_BOX (hbox3), entry_from, TRUE, TRUE, 0);
- gtk_widget_set_size_request (entry_from, 100, -1);
CLAWS_SET_TIP(entry_from,
_("Override From header. This doesn't change the account used to forward."));
@@ -499,7 +493,6 @@ void quotefmt_create_forward_fmt_widgets(GtkWindow *parent_window,
gtk_container_add(GTK_CONTAINER(scrolledwin_quotefmt),
text_fw_quotefmt);
gtk_text_view_set_editable (GTK_TEXT_VIEW (text_fw_quotefmt), TRUE);
- gtk_widget_set_size_request (text_fw_quotefmt, -1, 100);
if (checkbtn_forward_with_format) {
SET_TOGGLE_SENSITIVITY(checkbtn_use_format, label_quotemark);
diff --git a/src/statusbar.c b/src/statusbar.c
index 4ced87f..13d6bb6 100644
--- a/src/statusbar.c
+++ b/src/statusbar.c
@@ -47,7 +47,6 @@ GtkWidget *statusbar_create(void)
GtkWidget *hbox;
statusbar = gtk_statusbar_new();
- gtk_widget_set_size_request(statusbar, 1, -1);
statusbar_list = g_list_append(statusbar_list, statusbar);
#if !GTK_CHECK_VERSION(3, 0, 0)
gtk_statusbar_set_has_resize_grip(GTK_STATUSBAR(statusbar),
diff --git a/src/wizard.c b/src/wizard.c
index d16a8b4..0440743 100644
--- a/src/wizard.c
+++ b/src/wizard.c
@@ -1791,7 +1791,6 @@ gboolean run_wizard(MainWindow *mainwin, gboolean create_mailbox) {
GTK_STOCK_SAVE, FINISHED,
GTK_STOCK_CANCEL, CANCEL,
NULL);
- gtk_widget_set_size_request(wizard->window, -1, 480);
gtk_window_set_position(GTK_WINDOW(wizard->window), GTK_WIN_POS_CENTER);
g_signal_connect(wizard->window, "response",
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list