[gthumb] image viewer page: init all the attributes
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] image viewer page: init all the attributes
- Date: Sun, 16 Mar 2014 15:59:20 +0000 (UTC)
commit 0c917a6ffe1b2c2b7b2561897e215cbeb1b6bfd1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Mar 16 16:57:48 2014 +0100
image viewer page: init all the attributes
extensions/image_viewer/gth-image-viewer-page.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 6f4a5c8..5b71637 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -925,7 +925,7 @@ gth_image_viewer_page_real_deactivate (GthViewerPage *base)
self->priv->buttons[i] = NULL;
}
- g_object_unref (self->priv->preloader);
+ _g_object_unref (self->priv->preloader);
self->priv->preloader = NULL;
self->priv->active = FALSE;
@@ -1605,16 +1605,25 @@ gth_viewer_page_interface_init (GthViewerPageInterface *iface)
static void
gth_image_viewer_page_init (GthImageViewerPage *self)
{
+ int i;
+
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_IMAGE_VIEWER_PAGE,
GthImageViewerPagePrivate);
self->priv->settings = g_settings_new (GTHUMB_IMAGE_VIEWER_SCHEMA);
+ self->priv->preloader = NULL;
+ self->priv->file_popup_merge_id = 0;
self->priv->history = gth_image_history_new ();
- self->priv->last_loaded = NULL;
+ self->priv->file_data = NULL;
+ self->priv->active = FALSE;
self->priv->image_changed = FALSE;
self->priv->loading_image = FALSE;
+ self->priv->last_loaded = NULL;
self->priv->can_paste = FALSE;
self->priv->update_quality_id = 0;
self->priv->update_visibility_id = 0;
- self->priv->active = FALSE;
+ for (i = 0; i < N_HEADER_BAR_BUTTONS; i++)
+ self->priv->buttons[i] = NULL;
+ self->priv->pointer_on_overview = FALSE;
+ self->priv->pointer_on_viewer = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]