Mercurial > geeqie.yaz
changeset 1024:c92e5a5c3bfa
Add a Save button to Preferences dialog, which allow to save options to file without quitting the application.
author | zas_ |
---|---|
date | Sun, 31 Aug 2008 12:29:49 +0000 |
parents | 650c02c0c8ff |
children | 448d174454e1 |
files | src/preferences.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/preferences.c Sun Aug 31 11:27:24 2008 +0000 +++ b/src/preferences.c Sun Aug 31 12:29:49 2008 +0000 @@ -417,6 +417,12 @@ config_window_apply(); } +static void config_window_save_cb(GtkWidget *widget, gpointer data) +{ + config_window_apply(); + save_options(options); +} + /* *----------------------------------------------------------------------------- * config window setup (private) @@ -1648,6 +1654,12 @@ ct_button = button; + button = pref_button_new(NULL, GTK_STOCK_SAVE, NULL, FALSE, + G_CALLBACK(config_window_save_cb), NULL); + gtk_container_add(GTK_CONTAINER(hbox), button); + GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); + gtk_widget_show(button); + button = pref_button_new(NULL, GTK_STOCK_APPLY, NULL, FALSE, G_CALLBACK(config_window_apply_cb), NULL); gtk_container_add(GTK_CONTAINER(hbox), button);