Add preferences for hiding single tabs from the messages window (no GUI preferences yet, still to be implemented).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4500 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
93f66de4e2
commit
6fdf1cdfb2
@ -16,6 +16,9 @@
|
||||
src/msgwindow.h, src/prefs.c:
|
||||
Add MessageWindow::scribble and use it instead of searching the
|
||||
widget pointer everytime.
|
||||
* src/keyfile.c, src/msgwindow.c, src/msgwindow.h, src/ui_utils.h:
|
||||
Add preferences for hiding single tabs from the messages window
|
||||
(no GUI preferences yet, still to be implemented).
|
||||
|
||||
|
||||
2009-12-20 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
||||
|
@ -351,6 +351,10 @@ static void save_dialog_prefs(GKeyFile *config)
|
||||
g_key_file_set_boolean(config, PACKAGE, "tab_order_ltr", file_prefs.tab_order_ltr);
|
||||
g_key_file_set_integer(config, PACKAGE, "tab_pos_editor", interface_prefs.tab_pos_editor);
|
||||
g_key_file_set_integer(config, PACKAGE, "tab_pos_msgwin", interface_prefs.tab_pos_msgwin);
|
||||
g_key_file_set_boolean(config, PACKAGE, "msgwin_status_visible", interface_prefs.msgwin_status_visible);
|
||||
g_key_file_set_boolean(config, PACKAGE, "msgwin_compiler_visible", interface_prefs.msgwin_compiler_visible);
|
||||
g_key_file_set_boolean(config, PACKAGE, "msgwin_messages_visible", interface_prefs.msgwin_messages_visible);
|
||||
g_key_file_set_boolean(config, PACKAGE, "msgwin_scribble_visible", interface_prefs.msgwin_scribble_visible);
|
||||
|
||||
/* display */
|
||||
g_key_file_set_boolean(config, PACKAGE, "show_indent_guide", editor_prefs.show_indent_guide);
|
||||
@ -644,6 +648,10 @@ static void load_dialog_prefs(GKeyFile *config)
|
||||
interface_prefs.editor_font = utils_get_setting_string(config, PACKAGE, "editor_font", GEANY_DEFAULT_FONT_EDITOR);
|
||||
interface_prefs.tagbar_font = utils_get_setting_string(config, PACKAGE, "tagbar_font", GEANY_DEFAULT_FONT_SYMBOL_LIST);
|
||||
interface_prefs.msgwin_font = utils_get_setting_string(config, PACKAGE, "msgwin_font", GEANY_DEFAULT_FONT_MSG_WINDOW);
|
||||
interface_prefs.msgwin_status_visible = utils_get_setting_boolean(config, PACKAGE, "msgwin_status_visible", TRUE);
|
||||
interface_prefs.msgwin_compiler_visible = utils_get_setting_boolean(config, PACKAGE, "msgwin_compiler_visible", TRUE);
|
||||
interface_prefs.msgwin_messages_visible = utils_get_setting_boolean(config, PACKAGE, "msgwin_messages_visible", TRUE);
|
||||
interface_prefs.msgwin_scribble_visible = utils_get_setting_boolean(config, PACKAGE, "msgwin_scribble_visible", TRUE);
|
||||
|
||||
/* display, editor */
|
||||
editor_prefs.long_line_type = utils_get_setting_integer(config, PACKAGE, "long_line_type", 0);
|
||||
@ -1074,6 +1082,8 @@ void configuration_apply_settings(void)
|
||||
ui_prefs.fullscreen = TRUE;
|
||||
ui_set_fullscreen();
|
||||
}
|
||||
|
||||
msgwin_show_hide_tabs();
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,6 +75,15 @@ static gboolean on_msgwin_button_press_event(GtkWidget *widget, GdkEventButton *
|
||||
static void on_scribble_populate(GtkTextView *textview, GtkMenu *arg1, gpointer user_data);
|
||||
|
||||
|
||||
void msgwin_show_hide_tabs(void)
|
||||
{
|
||||
ui_widget_show_hide(gtk_widget_get_parent(msgwindow.tree_status), interface_prefs.msgwin_status_visible);
|
||||
ui_widget_show_hide(gtk_widget_get_parent(msgwindow.tree_compiler), interface_prefs.msgwin_compiler_visible);
|
||||
ui_widget_show_hide(gtk_widget_get_parent(msgwindow.tree_msg), interface_prefs.msgwin_messages_visible);
|
||||
ui_widget_show_hide(gtk_widget_get_parent(msgwindow.scribble), interface_prefs.msgwin_scribble_visible);
|
||||
}
|
||||
|
||||
|
||||
void msgwin_init(void)
|
||||
{
|
||||
msgwindow.notebook = ui_lookup_widget(main_widgets.window, "notebook_info");
|
||||
|
@ -96,6 +96,8 @@ void msgwin_compiler_add_string(gint msg_color, const gchar *msg);
|
||||
|
||||
void msgwin_status_add(const gchar *format, ...) G_GNUC_PRINTF (1, 2);
|
||||
|
||||
void msgwin_show_hide_tabs(void);
|
||||
|
||||
|
||||
void msgwin_menu_add_common_items(GtkMenu *menu);
|
||||
|
||||
|
@ -53,6 +53,10 @@ typedef struct GeanyInterfacePrefs
|
||||
gboolean notebook_double_click_hides_widgets;
|
||||
gboolean highlighting_invert_all;
|
||||
gint sidebar_pos;
|
||||
gboolean msgwin_status_visible;
|
||||
gboolean msgwin_compiler_visible;
|
||||
gboolean msgwin_messages_visible;
|
||||
gboolean msgwin_scribble_visible;
|
||||
}
|
||||
GeanyInterfacePrefs;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user