[giggle] src/giggle-short-list: derive from GtkBox, not GtkVBox
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] src/giggle-short-list: derive from GtkBox, not GtkVBox
- Date: Tue, 21 Jun 2011 16:43:35 +0000 (UTC)
commit cc0c585e9ff83a78b8c95ea0a97f7c05a1e33064
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Jun 21 17:29:27 2011 +0100
src/giggle-short-list: derive from GtkBox, not GtkVBox
src/giggle-short-list.c | 5 ++++-
src/giggle-short-list.h | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/giggle-short-list.c b/src/giggle-short-list.c
index 50f26c5..dfd2ec0 100644
--- a/src/giggle-short-list.c
+++ b/src/giggle-short-list.c
@@ -68,7 +68,7 @@ static void short_list_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-G_DEFINE_TYPE (GiggleShortList, giggle_short_list, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GiggleShortList, giggle_short_list, GTK_TYPE_BOX)
#define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GIGGLE_TYPE_SHORT_LIST, GiggleShortListPriv))
@@ -393,6 +393,9 @@ giggle_short_list_init (GiggleShortList *self)
priv = GET_PRIV (self);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
+ GTK_ORIENTATION_VERTICAL);
+
gtk_box_set_homogeneous (GTK_BOX (self), FALSE);
gtk_box_set_spacing (GTK_BOX (self), 6);
diff --git a/src/giggle-short-list.h b/src/giggle-short-list.h
index 866adc7..c635b7f 100644
--- a/src/giggle-short-list.h
+++ b/src/giggle-short-list.h
@@ -41,11 +41,11 @@ typedef struct _GiggleShortList GiggleShortList;
typedef struct _GiggleShortListClass GiggleShortListClass;
struct _GiggleShortList {
- GtkVBox parent_instance;
+ GtkBox parent_instance;
};
struct _GiggleShortListClass {
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
/* signals */
gchar* (*display_object) (GiggleShortList* self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]