talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 656e0dde3769d118e367a2c870a764a49362c952
parent b2df7ce9b74d23d33548e1f1b435e929b5b9a0cf
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Thu, 29 Nov 2018 17:50:26 +0100

Added PACK_HSPACER macro to prefs_gtk.h

Diffstat:
Msrc/prefs_account.c | 8++++----
Msrc/prefs_gtk.h | 3++-
Msrc/prefs_template.c | 4++--
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/prefs_account.c b/src/prefs_account.c @@ -1635,7 +1635,7 @@ static void receive_create_widget_func(PrefsPage * _page, SET_TOGGLE_SENSITIVITY (size_limit_checkbtn, size_limit_spinbtn); - PACK_VSPACER(vbox2, vbox3, VSPACING_NARROW_2); + PACK_SPACER(vbox2, vbox3, VSPACING_NARROW_2); hbox1 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox1); @@ -1969,7 +1969,7 @@ static void send_create_widget_func(PrefsPage * _page, COMBOBOX_ADD (menu, "DIGEST-MD5", SMTPAUTH_DIGEST_MD5); gtk_list_store_set(menu, &iter, COMBOBOX_SENS, FALSE, -1); - PACK_VSPACER(vbox4, vbox_spc, VSPACING_NARROW_2); + PACK_SPACER(vbox4, vbox_spc, VSPACING_NARROW_2); hbox = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox); @@ -1993,7 +1993,7 @@ static void send_create_widget_func(PrefsPage * _page, GINT_TO_POINTER(ac_prefs->protocol)); #ifdef GENERIC_UMPC - PACK_VSPACER(vbox4, vbox_spc, VSPACING_NARROW_2); + PACK_SPACER(vbox4, vbox_spc, VSPACING_NARROW_2); hbox = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox); gtk_box_pack_start (GTK_BOX (vbox4), hbox, FALSE, FALSE, 0); @@ -2023,7 +2023,7 @@ static void send_create_widget_func(PrefsPage * _page, g_signal_connect(G_OBJECT(showpwd_checkbtn), "toggled", G_CALLBACK(prefs_account_showpwd_checkbtn_toggled), smtp_pass_entry); - PACK_VSPACER(vbox4, vbox_spc, VSPACING_NARROW_2); + PACK_SPACER(vbox4, vbox_spc, VSPACING_NARROW_2); hbox = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox); diff --git a/src/prefs_gtk.h b/src/prefs_gtk.h @@ -108,7 +108,8 @@ struct _PrefsDialog gtk_frame_set_label_align(GTK_FRAME(frame), 0.01, 0.5); \ } -#define PACK_VSPACER(box, vbox, spacing) \ +/* This can be used in vboxes, as well as in hboxes. */ +#define PACK_SPACER(box, vbox, spacing) \ { \ vbox = gtk_vbox_new(FALSE, 0); \ gtk_widget_show(vbox); \ diff --git a/src/prefs_template.c b/src/prefs_template.c @@ -367,7 +367,7 @@ static void prefs_template_window_create(void) CLAWS_SET_TIP(top_btn, _("Move the selected template to the top")); - PACK_VSPACER(vbox3, spc_vbox, VSPACING_NARROW_2); + PACK_SPACER(vbox3, spc_vbox, VSPACING_NARROW_2); up_btn = gtk_button_new_from_stock(GTK_STOCK_GO_UP); gtk_widget_show(up_btn); @@ -385,7 +385,7 @@ static void prefs_template_window_create(void) CLAWS_SET_TIP(down_btn, _("Move the selected template down")); - PACK_VSPACER(vbox3, spc_vbox, VSPACING_NARROW_2); + PACK_SPACER(vbox3, spc_vbox, VSPACING_NARROW_2); bottom_btn = gtk_button_new_from_stock(GTK_STOCK_GOTO_BOTTOM); gtk_widget_show(bottom_btn);