Revision: 4500 http://geany.svn.sourceforge.net/geany/?rev=4500&view=rev Author: eht16 Date: 2009-12-20 20:07:52 +0000 (Sun, 20 Dec 2009)
Log Message: ----------- Add preferences for hiding single tabs from the messages window (no GUI preferences yet, still to be implemented).
Modified Paths: -------------- trunk/ChangeLog trunk/src/keyfile.c trunk/src/msgwindow.c trunk/src/msgwindow.h trunk/src/ui_utils.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-12-20 20:07:04 UTC (rev 4499) +++ trunk/ChangeLog 2009-12-20 20:07:52 UTC (rev 4500) @@ -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>
Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2009-12-20 20:07:04 UTC (rev 4499) +++ trunk/src/keyfile.c 2009-12-20 20:07:52 UTC (rev 4500) @@ -351,6 +351,10 @@ 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 @@ 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 @@ ui_prefs.fullscreen = TRUE; ui_set_fullscreen(); } + + msgwin_show_hide_tabs(); }
Modified: trunk/src/msgwindow.c =================================================================== --- trunk/src/msgwindow.c 2009-12-20 20:07:04 UTC (rev 4499) +++ trunk/src/msgwindow.c 2009-12-20 20:07:52 UTC (rev 4500) @@ -75,6 +75,15 @@ 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");
Modified: trunk/src/msgwindow.h =================================================================== --- trunk/src/msgwindow.h 2009-12-20 20:07:04 UTC (rev 4499) +++ trunk/src/msgwindow.h 2009-12-20 20:07:52 UTC (rev 4500) @@ -96,7 +96,9 @@
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);
gboolean msgwin_goto_compiler_file_line(void);
Modified: trunk/src/ui_utils.h =================================================================== --- trunk/src/ui_utils.h 2009-12-20 20:07:04 UTC (rev 4499) +++ trunk/src/ui_utils.h 2009-12-20 20:07:52 UTC (rev 4500) @@ -53,6 +53,10 @@ 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.