[giggle/giggle-0-6: 5/10] libgiggle/giggle-view.c: All the children set "expand" as TRUE
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle/giggle-0-6: 5/10] libgiggle/giggle-view.c: All the children set "expand" as TRUE
- Date: Thu, 20 Oct 2011 19:55:43 +0000 (UTC)
commit 7fc51f6eb88973f33e10d734e054ea1213e98406
Author: Javier JardÃn <jjardon gnome org>
Date: Mon Oct 17 18:15:14 2011 +0100
libgiggle/giggle-view.c: All the children set "expand" as TRUE
This fixes commit 802d83445e482d40447169eb61ba1eaf0de8e14d
libgiggle/giggle-view.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libgiggle/giggle-view.c b/libgiggle/giggle-view.c
index 373857b..a55c634 100644
--- a/libgiggle/giggle-view.c
+++ b/libgiggle/giggle-view.c
@@ -209,10 +209,21 @@ view_unrealize (GtkWidget *widget)
}
static void
+view_add (GtkContainer *container,
+ GtkWidget *widget)
+{
+ gtk_box_pack_start (GTK_BOX (container), widget,
+ TRUE,
+ TRUE,
+ 0);
+}
+
+static void
giggle_view_class_init (GiggleViewClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
+ GtkContainerClass *container_class = GTK_CONTAINER_CLASS (class);
object_class->get_property = view_get_property;
object_class->set_property = view_set_property;
@@ -223,6 +234,8 @@ giggle_view_class_init (GiggleViewClass *class)
widget_class->realize = view_realize;
widget_class->unrealize = view_unrealize;
+ container_class->add = view_add;
+
g_object_class_install_property (object_class,
PROP_ACTION,
g_param_spec_object ("action",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]