Revision: 915 http://svn.sourceforge.net/geany/?rev=915&view=rev Author: eht16 Date: 2006-10-22 09:07:36 -0700 (Sun, 22 Oct 2006)
Log Message: ----------- Added configuration option for the alignment of toolbar quit button.
Modified Paths: -------------- trunk/ChangeLog trunk/src/geany.h trunk/src/keyfile.c trunk/src/main.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-10-22 14:56:05 UTC (rev 914) +++ trunk/ChangeLog 2006-10-22 16:07:36 UTC (rev 915) @@ -1,3 +1,9 @@ +2006-10-22 Enrico Tröger enrico.troeger@uvena.de + + * src/geany.h, src/keyfile.c, src/main.c: + Added configuration option for the alignment of toolbar quit button. + + 2006-10-22 Nick Treleaven nick.treleaven@btinternet.com
* src/ui_utils.h, src/search.c, src/document.c, src/dialogs.c,
Modified: trunk/src/geany.h =================================================================== --- trunk/src/geany.h 2006-10-22 14:56:05 UTC (rev 914) +++ trunk/src/geany.h 2006-10-22 16:07:36 UTC (rev 915) @@ -81,6 +81,7 @@ gboolean ignore_callback; gboolean ignore_global_tags; gboolean toolbar_visible; + gboolean align_quit_button_on_right; gboolean sidebar_symbol_visible; gboolean sidebar_openfiles_visible; gboolean sidebar_visible;
Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2006-10-22 14:56:05 UTC (rev 914) +++ trunk/src/keyfile.c 2006-10-22 16:07:36 UTC (rev 915) @@ -97,6 +97,7 @@ g_key_file_set_integer(config, PACKAGE, "autocompletion_max_height", app->autocompletion_max_height); g_key_file_set_integer(config, PACKAGE, "long_line_column", app->long_line_column); g_key_file_set_string(config, PACKAGE, "long_line_color", app->long_line_color); + g_key_file_set_boolean(config, PACKAGE, "align_quit_button_on_right", app->align_quit_button_on_right); g_key_file_set_boolean(config, PACKAGE, "beep_on_errors", app->beep_on_errors); g_key_file_set_boolean(config, PACKAGE, "sidebar_symbol_visible", app->sidebar_symbol_visible); g_key_file_set_boolean(config, PACKAGE, "sidebar_openfiles_visible", app->sidebar_openfiles_visible); @@ -287,6 +288,7 @@ app->toolbar_icon_style = utils_get_setting_integer(config, PACKAGE, "pref_toolbar_icon_style", tb_style); app->toolbar_icon_size = utils_get_setting_integer(config, PACKAGE, "pref_toolbar_icon_size", tb_iconsize); } + app->align_quit_button_on_right = utils_get_setting_boolean(config, PACKAGE, "align_quit_button_on_right", TRUE); app->beep_on_errors = utils_get_setting_boolean(config, PACKAGE, "beep_on_errors", TRUE); app->mru_length = utils_get_setting_integer(config, PACKAGE, "mru_length", GEANY_DEFAULT_MRU_LENGTH); app->long_line_type = utils_get_setting_integer(config, PACKAGE, "long_line_type", 0);
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2006-10-22 14:56:05 UTC (rev 914) +++ trunk/src/main.c 2006-10-22 16:07:36 UTC (rev 915) @@ -216,6 +216,11 @@ gtk_notebook_set_tab_pos(GTK_NOTEBOOK(msgwindow.notebook), app->tab_pos_msgwin); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(app->treeview_notebook), app->tab_pos_sidebar);
+ // align quit button on the right + if (! app->align_quit_button_on_right) + gtk_tool_item_set_expand(GTK_TOOL_ITEM( + lookup_widget(app->window, "separatortoolitem8")), FALSE); + ui_update_toolbar_items(); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.