Revision: 1119
http://geeqie.svn.sourceforge.net/geeqie/?rev=1119&view=rev
Author: zas_
Date: 2008-08-31 12:29:49 +0000 (Sun, 31 Aug 2008)
Log Message:
-----------
Add a Save button to Preferences dialog, which allow to save options to file
without quitting the application.
Modified Paths:
--------------
trunk/src/preferences.c
Modified: trunk/src/preferences.c
===================================================================
--- trunk/src/preferences.c 2008-08-31 11:27:24 UTC (rev 1118)
+++ trunk/src/preferences.c 2008-08-31 12:29:49 UTC (rev 1119)
@@ -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);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn