[giggle] libgiggle/giggle-view: derive from GtkBox, not GtkVBox
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] libgiggle/giggle-view: derive from GtkBox, not GtkVBox
- Date: Tue, 21 Jun 2011 16:43:20 +0000 (UTC)
commit 802d83445e482d40447169eb61ba1eaf0de8e14d
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Jun 21 17:28:12 2011 +0100
libgiggle/giggle-view: derive from GtkBox, not GtkVBox
libgiggle/giggle-view.c | 4 +++-
libgiggle/giggle-view.h | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libgiggle/giggle-view.c b/libgiggle/giggle-view.c
index 2fc54f0..373857b 100644
--- a/libgiggle/giggle-view.c
+++ b/libgiggle/giggle-view.c
@@ -44,7 +44,7 @@ enum {
LAST_SIGNAL
};
-G_DEFINE_ABSTRACT_TYPE (GiggleView, giggle_view, GTK_TYPE_VBOX)
+G_DEFINE_ABSTRACT_TYPE (GiggleView, giggle_view, GTK_TYPE_BOX)
static guint signals[LAST_SIGNAL] = { 0, };
@@ -265,6 +265,8 @@ giggle_view_class_init (GiggleViewClass *class)
static void
giggle_view_init (GiggleView *view)
{
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (view),
+ GTK_ORIENTATION_VERTICAL);
}
GtkAction *
diff --git a/libgiggle/giggle-view.h b/libgiggle/giggle-view.h
index 1d86eda..d14f1db 100644
--- a/libgiggle/giggle-view.h
+++ b/libgiggle/giggle-view.h
@@ -37,11 +37,11 @@ typedef struct GiggleView GiggleView;
typedef struct GiggleViewClass GiggleViewClass;
struct GiggleView {
- GtkVBox parent_instance;
+ GtkBox parent_instance;
};
struct GiggleViewClass {
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
void (* add_ui) (GiggleView *view,
GtkUIManager *manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]