aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbar-editor.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-06-09 22:29:56 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-06-09 23:11:19 +0800
commitffae9a0909f5a12e510038840586044a77b7baec (patch)
tree21a5141eb756a6cafbee1ca0836db4901202bb38 /lib/egg/egg-toolbar-editor.c
parent0f61b9bd7ab89b70f1323f08b4f26a27b005d62a (diff)
downloadgsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.tar
gsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.tar.gz
gsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.tar.bz2
gsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.tar.lz
gsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.tar.xz
gsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.tar.zst
gsoc2013-epiphany-ffae9a0909f5a12e510038840586044a77b7baec.zip
Use GtkOrientable interface instead of deprecated V/H widgets
Gtk[HV]Box, Gtk[HV]Separator, Gtk[HV]Paned are deprecated in GTK+ 3.2, so let's use the GtkOrientable interface instead. GtkBox is likely to dissapear soon too, so a migration to GtkGrid might be necessary at some point. https://bugzilla.gnome.org/show_bug.cgi?id=652201
Diffstat (limited to 'lib/egg/egg-toolbar-editor.c')
-rw-r--r--lib/egg/egg-toolbar-editor.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c
index bf76ca8b2..0a2c503a3 100644
--- a/lib/egg/egg-toolbar-editor.c
+++ b/lib/egg/egg-toolbar-editor.c
@@ -71,7 +71,7 @@ struct EggToolbarEditorPrivate
gulong sig_handlers[SIGNAL_HANDLER_LIST_SIZE];
};
-G_DEFINE_TYPE (EggToolbarEditor, egg_toolbar_editor, GTK_TYPE_VBOX);
+G_DEFINE_TYPE (EggToolbarEditor, egg_toolbar_editor, GTK_TYPE_BOX);
static gint
compare_items (gconstpointer a,
@@ -456,7 +456,7 @@ editor_create_item (EggToolbarEditor *editor,
G_CALLBACK (drag_end_cb), NULL);
}
- vbox = gtk_vbox_new (0, FALSE);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (event_box), vbox);
@@ -547,7 +547,7 @@ append_table (GtkTable *table, GList *items, gint y, gint width)
if (y > 0)
{
- item = gtk_hseparator_new ();
+ item = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
alignment = gtk_alignment_new (0.5, 0.5, 1.0, 0.0);
gtk_container_add (GTK_CONTAINER (alignment), item);
gtk_widget_show (alignment);
@@ -667,6 +667,8 @@ egg_toolbar_editor_init (EggToolbarEditor *t)
{
t->priv = EGG_TOOLBAR_EDITOR_GET_PRIVATE (t);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (t),
+ GTK_ORIENTATION_VERTICAL);
t->priv->manager = NULL;
t->priv->actions_list = NULL;