[cheese] Avoid GtkCellArea critical warnings in thumb view



commit 9886c4f854a9868637c5d25a41199efabc7e1120
Author: David King <amigadave amigadave com>
Date:   Wed Jul 23 07:52:44 2014 +0100

    Avoid GtkCellArea critical warnings in thumb view
    
    GTK+ switched from using constructor() to constructed() in GtkIconView,
    which exposed that Cheese does not chain up in the CheeseThumbView (a
    GtkIconView subclass) constructed() vfunc. Chain up at the start of
    constructed() so that the construct-only properties of the GtkIconView
    are set before calling icon view API.

 src/thumbview/cheese-thumb-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/thumbview/cheese-thumb-view.c b/src/thumbview/cheese-thumb-view.c
index 74d2dbb..a427996 100644
--- a/src/thumbview/cheese-thumb-view.c
+++ b/src/thumbview/cheese-thumb-view.c
@@ -735,6 +735,8 @@ cheese_thumb_view_constructed (GObject *object)
   CheeseThumbView *thumb_view = CHEESE_THUMB_VIEW (object);
   CheeseThumbViewPrivate *priv = cheese_thumb_view_get_instance_private (thumb_view);
   
+  G_OBJECT_CLASS (cheese_thumb_view_parent_class)->constructed (object);
+
   gtk_icon_view_set_model (GTK_ICON_VIEW (thumb_view), GTK_TREE_MODEL (priv->store));
 
   gtk_widget_set_size_request (GTK_WIDGET (thumb_view),


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