aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-01-26 06:34:05 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-01-26 06:34:05 +0000
commit9737e535fb7659717e6ae79a7c24964e61d205a1 (patch)
tree92ddb92087eea14e9b33687b1ec1abe7928b07c2 /src/mainwindow.c
parent980184bb430c44fdd4cd90eef9e230fc379c8d36 (diff)
set toolbar customization dialog title and label.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1504 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c36
1 files changed, 22 insertions, 14 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 92ac3054..286b27b6 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -117,6 +117,9 @@ static void main_window_menu_callback_unblock (MainWindow *mainwin);
static void main_window_show_cur_account (MainWindow *mainwin);
+static void main_window_set_toolbar_button_visibility
+ (MainWindow *mainwin);
+
static void main_window_set_widgets (MainWindow *mainwin,
SeparateType type);
static GtkWidget *main_window_toolbar_create (MainWindow *mainwin);
@@ -1225,20 +1228,7 @@ void main_window_reflect_prefs_all(void)
main_window_show_cur_account(mainwin);
main_window_set_menu_sensitive(mainwin);
main_window_set_toolbar_sensitive(mainwin);
-
- if (mainwin->junk_btn) {
- if (prefs_common.enable_junk)
- gtk_widget_show(mainwin->junk_btn);
- else
- gtk_widget_hide(mainwin->junk_btn);
- }
-
- if (mainwin->exec_btn) {
- if (prefs_common.immediate_exec)
- gtk_widget_hide(mainwin->exec_btn);
- else
- gtk_widget_show(mainwin->exec_btn);
- }
+ main_window_set_toolbar_button_visibility(mainwin);
if (mainwin->tray_icon) {
if (prefs_common.show_trayicon)
@@ -1909,6 +1899,23 @@ void main_window_set_toolbar_sensitive(MainWindow *mainwin)
}
}
+static void main_window_set_toolbar_button_visibility(MainWindow *mainwin)
+{
+ if (mainwin->junk_btn) {
+ if (prefs_common.enable_junk)
+ gtk_widget_show(mainwin->junk_btn);
+ else
+ gtk_widget_hide(mainwin->junk_btn);
+ }
+
+ if (mainwin->exec_btn) {
+ if (prefs_common.immediate_exec)
+ gtk_widget_hide(mainwin->exec_btn);
+ else
+ gtk_widget_show(mainwin->exec_btn);
+ }
+}
+
void main_window_set_menu_sensitive(MainWindow *mainwin)
{
GtkItemFactory *ifactory = mainwin->menu_factory;
@@ -2610,6 +2617,7 @@ static void toolbar_customize(GtkWidget *widget, gpointer data)
gtk_box_reorder_child(GTK_BOX(mainwin->vbox), toolbar, 1);
mainwin->toolbar = toolbar;
main_window_set_toolbar_sensitive(mainwin);
+ main_window_set_toolbar_button_visibility(mainwin);
g_free(prefs_common.main_toolbar_setting);
prefs_common.main_toolbar_setting =
prefs_toolbar_get_name_list_from_item_list(item_list);