[glade] GladeInspector: Derive from GtkBox
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeInspector: Derive from GtkBox
- Date: Sat, 13 Apr 2013 17:50:02 +0000 (UTC)
commit 9d9b6528597f27fd56b53dc0c868e6ad3d7cae3a
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sat Apr 13 16:20:33 2013 +0900
GladeInspector: Derive from GtkBox
gladeui/glade-inspector.c | 14 +++++++++-----
gladeui/glade-inspector.h | 4 ++--
2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/gladeui/glade-inspector.c b/gladeui/glade-inspector.c
index 94f1341..3d151f9 100644
--- a/gladeui/glade-inspector.c
+++ b/gladeui/glade-inspector.c
@@ -111,11 +111,12 @@ static gint button_press_cb (GtkWidget *widget,
GdkEventButton *event,
GladeInspector *inspector);
-G_DEFINE_TYPE (GladeInspector, glade_inspector, GTK_TYPE_VBOX)
- static void
- glade_inspector_set_property (GObject *object,
- guint property_id,
- const GValue *value, GParamSpec *pspec)
+G_DEFINE_TYPE (GladeInspector, glade_inspector, GTK_TYPE_BOX)
+
+static void
+glade_inspector_set_property (GObject *object,
+ guint property_id,
+ const GValue *value, GParamSpec *pspec)
{
GladeInspector *inspector = GLADE_INSPECTOR (object);
@@ -572,6 +573,9 @@ glade_inspector_init (GladeInspector *inspector)
inspector->priv = priv = GLADE_INSPECTOR_GET_PRIVATE (inspector);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (inspector),
+ GTK_ORIENTATION_VERTICAL);
+
priv->project = NULL;
priv->entry = gtk_entry_new ();
diff --git a/gladeui/glade-inspector.h b/gladeui/glade-inspector.h
index 3b95dad..a438c23 100644
--- a/gladeui/glade-inspector.h
+++ b/gladeui/glade-inspector.h
@@ -52,14 +52,14 @@ typedef struct _GladeInspectorPrivate GladeInspectorPrivate;
*/
struct _GladeInspector
{
- GtkVBox parent_instance;
+ GtkBox parent_instance;
GladeInspectorPrivate *priv;
};
struct _GladeInspectorClass
{
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
void (* selection_changed) (GladeInspector *inspector);
void (* item_activated) (GladeInspector *inspector);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]