78 |
set.msgbar_interval = get_int_conf2 ("General/MsgBar/Interval", 2000); |
set.msgbar_interval = get_int_conf2 ("General/MsgBar/Interval", 2000); |
79 |
set.toggle_wordwrap = get_bool_conf2 ("General/Editor/Wordwrap", FALSE); |
set.toggle_wordwrap = get_bool_conf2 ("General/Editor/Wordwrap", FALSE); |
80 |
set.toolbar_display = get_bool_conf2 ("General/ToolBar/Display", TRUE); |
set.toolbar_display = get_bool_conf2 ("General/ToolBar/Display", TRUE); |
|
set.max_tab_label_length = get_int_conf2 ("General/Tabs/LabelLength", 12); |
|
81 |
set.tab_position = get_int_conf2 ("General/Tabs/Position", 1); |
set.tab_position = get_int_conf2 ("General/Tabs/Position", 1); |
82 |
set.scrollbar_position = get_int_conf2 ("General/ScrollBar/Position", 2); |
set.scrollbar_position = get_int_conf2 ("General/ScrollBar/Position", 2); |
83 |
set.complete_window_width = |
set.complete_window_width = |
427 |
"<main>/View/Scrollbar/Right")), |
"<main>/View/Scrollbar/Right")), |
428 |
TRUE); |
TRUE); |
429 |
} |
} |
|
else if (!strcmp (Data, "tab_len")) |
|
|
{ |
|
|
Settings.max_tab_label_length = gtk_spin_button_get_value_as_int |
|
|
(GTK_SPIN_BUTTON(Widget)); |
|
|
set_int_conf ("General/Tabs/LabelLength", Settings.max_tab_label_length); |
|
|
for (i = 0; i < OpenedFilesCnt; i++) |
|
|
{ |
|
|
set_label (GTK_NOTEBOOK (MainNotebook), i); |
|
|
} |
|
|
} |
|
430 |
else if (!strcmp (Data, "msg_bar")) |
else if (!strcmp (Data, "msg_bar")) |
431 |
{ |
{ |
432 |
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(Widget))) |
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(Widget))) |
830 |
gtk_option_menu_set_menu (GTK_OPTION_MENU(Button), Menu); |
gtk_option_menu_set_menu (GTK_OPTION_MENU(Button), Menu); |
831 |
gtk_option_menu_set_history (GTK_OPTION_MENU(Button), |
gtk_option_menu_set_history (GTK_OPTION_MENU(Button), |
832 |
Settings.tab_position - 1); |
Settings.tab_position - 1); |
833 |
gtk_table_attach_defaults (GTK_TABLE(Table), Button, 1, 2, 0, 1); |
gtk_table_attach_defaults (GTK_TABLE(Table), Button, 1, 2, 0, 1);/* |
834 |
Label = gtk_label_new_with_mnemonic ("Maximum tab _label width"); |
Label = gtk_label_new_with_mnemonic ("Maximum tab _label width"); |
835 |
gtk_box_pack_start (GTK_BOX(FrameHBox), Label, FALSE, FALSE, 5); |
gtk_box_pack_start (GTK_BOX(FrameHBox), Label, FALSE, FALSE, 5); |
836 |
Size = gtk_adjustment_new (Settings.max_tab_label_length, 0, 99, 1, 5, 0); |
Size = gtk_adjustment_new (Settings.max_tab_label_length, 0, 99, 1, 5, 0); |
840 |
gtk_entry_set_max_length (GTK_ENTRY(Button), 2); |
gtk_entry_set_max_length (GTK_ENTRY(Button), 2); |
841 |
g_signal_connect (G_OBJECT(Button), "value-changed", |
g_signal_connect (G_OBJECT(Button), "value-changed", |
842 |
(GtkSignalFunc)refresh_prefs, "tab_len"); |
(GtkSignalFunc)refresh_prefs, "tab_len"); |
843 |
gtk_table_attach_defaults (GTK_TABLE(Table), Button, 1, 2, 1, 2); |
gtk_table_attach_defaults (GTK_TABLE(Table), Button, 1, 2, 1, 2);*/ |
844 |
|
|
845 |
Frame = gtk_frame_new ("Statusbar"); |
Frame = gtk_frame_new ("Statusbar"); |
846 |
gtk_box_pack_start (GTK_BOX(VBox), Frame, FALSE, FALSE, 0); |
gtk_box_pack_start (GTK_BOX(VBox), Frame, FALSE, FALSE, 0); |