[gthumb] Save the user preference changes when the pref window is about to be destroyed
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Save the user preference changes when the pref window is about to be destroyed
- Date: Fri, 3 Jun 2011 11:53:48 +0000 (UTC)
commit 2f6a3d594e24af636d801986804a4258e5f5d43f
Author: Abner Silva <abner collabora co uk>
Date: Fri Jun 3 13:50:07 2011 +0200
Save the user preference changes when the pref window is about to be destroyed
This patch makes the 'close' button and the 'x' window manager close button
behave exactly the same. It will save all user preferences when the window pref
is about to be destroyed.
gthumb/dlg-preferences.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gthumb/dlg-preferences.c b/gthumb/dlg-preferences.c
index ac352bb..0782da9 100644
--- a/gthumb/dlg-preferences.c
+++ b/gthumb/dlg-preferences.c
@@ -63,16 +63,6 @@ get_idx_from_size (gint size)
static void
-destroy_cb (GtkWidget *widget,
- DialogData *data)
-{
- gth_browser_set_dialog (data->browser, "preferences", NULL);
- g_object_unref (data->builder);
- g_free (data);
-}
-
-
-static void
apply_changes (DialogData *data)
{
/* Startup dir. */
@@ -95,10 +85,20 @@ apply_changes (DialogData *data)
static void
+destroy_cb (GtkWidget *widget,
+ DialogData *data)
+{
+ apply_changes (data);
+ gth_browser_set_dialog (data->browser, "preferences", NULL);
+ g_object_unref (data->builder);
+ g_free (data);
+}
+
+
+static void
close_button_clicked_cb (GtkWidget *widget,
DialogData *data)
{
- apply_changes (data);
gtk_widget_destroy (data->dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]