[gthumb] GthEmpyList: skip GtkScrolledWindow::unrealize when unrealizing



commit 72a668f601e24a23a05845f94a603801e485265b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Apr 21 13:15:44 2012 +0200

    GthEmpyList: skip GtkScrolledWindow::unrealize when unrealizing
    
    as we skip GtkScrolledWindow::realize when realizing the widget as
    well.

 gthumb/gth-empty-list.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-empty-list.c b/gthumb/gth-empty-list.c
index 8e97d8d..dc60391 100644
--- a/gthumb/gth-empty-list.c
+++ b/gthumb/gth-empty-list.c
@@ -163,7 +163,9 @@ gth_empty_list_unrealize (GtkWidget *widget)
 		self->priv->layout = NULL;
 	}
 
-	GTK_WIDGET_CLASS (gth_empty_list_parent_class)->unrealize (widget);
+	/* note the use of g_type_class_peek_parent to skip GtkScrolledWindow::unrealize */
+
+	GTK_WIDGET_CLASS (g_type_class_peek_parent (gth_empty_list_parent_class))->unrealize (widget);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]