summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2014-07-23 07:52:44 +0100
committerDavid King <amigadave@amigadave.com>2014-07-23 07:55:48 +0100
commit9886c4f854a9868637c5d25a41199efabc7e1120 (patch)
tree58dc928efe6c354621bc0346951508ea5fd58f6e /src
parent1e1a9daa62c5c310f8618318a54393887fec5ed9 (diff)
downloadcheese-9886c4f854a9868637c5d25a41199efabc7e1120.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/thumbview/cheese-thumb-view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thumbview/cheese-thumb-view.c b/src/thumbview/cheese-thumb-view.c
index 74d2dbb9..a4279967 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),