summaryrefslogtreecommitdiff
path: root/gtk/dialogs/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/dialogs/options.c')
-rw-r--r--gtk/dialogs/options.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/gtk/dialogs/options.c b/gtk/dialogs/options.c
index 6a015b44b..055ebe08b 100644
--- a/gtk/dialogs/options.c
+++ b/gtk/dialogs/options.c
@@ -70,7 +70,6 @@ DECLARE(checkHoverURLs);
DECLARE(checkDisplayRecentURLs);
DECLARE(comboLanguage);
DECLARE(checkSendReferer);
-DECLARE(checkShowSingleTab);
DECLARE(comboProxyType);
DECLARE(entryProxyHost);
@@ -103,8 +102,12 @@ DECLARE(spinDiscCacheAge);
DECLARE(checkClearDownloads);
DECLARE(checkRequestOverwrite);
DECLARE(fileChooserDownloads);
+/* Tabs */
+DECLARE(checkShowSingleTab);
DECLARE(checkFocusNew);
DECLARE(checkNewBlank);
+DECLARE(comboTabPosition);
+
DECLARE(checkUrlSearch);
DECLARE(comboSearch);
DECLARE(combotheme);
@@ -199,6 +202,8 @@ GtkDialog* nsgtk_options_init(struct browser_window *bw, GtkWindow *parent)
CONNECT(comboButtonType, "changed");
+ CONNECT(comboTabPosition, "changed");
+
CONNECT(spinMemoryCacheSize, "value-changed");
CONNECT(spinDiscCacheAge, "value-changed");
@@ -396,6 +401,8 @@ void nsgtk_options_load(void)
SET_COMBO(comboButtonType, option_button_type -1);
+ SET_COMBO(comboTabPosition, option_position_tab);
+
SET_SPIN(spinMemoryCacheSize, option_memory_cache_size >> 20);
SET_SPIN(spinDiscCacheAge, option_disc_cache_age);
@@ -758,6 +765,19 @@ COMBO_CHANGED(comboButtonType, option_button_type)
}
END_HANDLER
+COMBO_CHANGED(comboTabPosition, option_position_tab)
+ nsgtk_scaffolding *current = scaf_list;
+ option_button_type++;
+ /* value of 0 is reserved for 'unset' */
+ while (current) {
+ nsgtk_scaffolding_reset_offset(current);
+
+ nsgtk_reflow_all_windows();
+
+ current = nsgtk_scaffolding_iterate(current);
+ }
+END_HANDLER
+
SPIN_CHANGED(spinMemoryCacheSize, option_memory_cache_size)
option_memory_cache_size <<= 20;
END_HANDLER