summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@alumnos.utalca.cl>2007-02-09 03:35:35 +0000
committerClaudio Saavedra <csaavedr@src.gnome.org>2007-02-09 03:35:35 +0000
commit8cd9cb33d27d3651d294cd39ef975c6c4ebe9e38 (patch)
treee728874639d6230f25916ec848c70a8a6aae434b
parent434e9242d51322fde243597e422bf1f753748563 (diff)
downloadeog-8cd9cb33d27d3651d294cd39ef975c6c4ebe9e38.tar.gz
Initialize and finish properly the printing objects.
2007-02-09 Claudio Saavedra <csaavedra@alumnos.utalca.cl> * shell/eog-window.c: (eog_window_destroy), (eog_window_init): Initialize and finish properly the printing objects. svn path=/trunk/; revision=3535
-rw-r--r--ChangeLog5
-rw-r--r--shell/eog-window.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ac708bdb..ad767dac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-09 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
+
+ * shell/eog-window.c: (eog_window_destroy), (eog_window_init):
+ Initialize and finish properly the printing objects.
+
2007-02-07 Felix Riemann <friemann@svn.gnome.org>
* libeog/eog-uri-converter.c: (eog_uri_converter_preview):
diff --git a/shell/eog-window.c b/shell/eog-window.c
index 609e6f59..220620af 100644
--- a/shell/eog-window.c
+++ b/shell/eog-window.c
@@ -2560,6 +2560,16 @@ eog_window_destroy (GtkObject *object)
g_object_unref (G_OBJECT (priv->client));
priv->client = NULL;
}
+
+ if (priv->print_settings != NULL) {
+ g_object_unref (priv->print_settings);
+ priv->print_settings = NULL;
+ }
+
+ if (priv->print_page_setup != NULL) {
+ g_object_unref (priv->print_page_setup);
+ priv->print_page_setup = NULL;
+ }
if (GTK_OBJECT_CLASS (parent_class)->destroy)
GTK_OBJECT_CLASS (parent_class)->destroy (object);
@@ -2687,6 +2697,9 @@ eog_window_init (EogWindow *window)
GDK_HINT_MIN_SIZE);
gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+
+ priv->print_page_setup = NULL;
+ priv->print_settings = NULL;
}
/* delete_event handler for windows */