[glade] Removed use of deprecated GtkHBox, GtkVBox and others
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Removed use of deprecated GtkHBox, GtkVBox and others
- Date: Sat, 28 Apr 2012 16:56:18 +0000 (UTC)
commit c098f78522e0ee0d50114ab07bf55c9f890be018
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Sat Apr 28 13:53:53 2012 -0300
Removed use of deprecated GtkHBox, GtkVBox and others
gladeui/glade-app.c | 1 -
gladeui/glade-base-editor.c | 10 ++++----
gladeui/glade-design-layout.c | 5 +--
gladeui/glade-design-view.c | 2 +-
gladeui/glade-editor-property.c | 28 +++++++++++++-------------
gladeui/glade-editor.c | 10 ++++----
gladeui/glade-named-icon-chooser-dialog.c | 12 +++++-----
gladeui/glade-palette.c | 4 +-
gladeui/glade-project.c | 14 ++++++------
gladeui/glade-widget-adaptor.c | 2 +-
plugins/gtk+/glade-accels.c | 4 +-
plugins/gtk+/glade-attributes.c | 4 +-
plugins/gtk+/glade-button-editor.c | 2 +-
plugins/gtk+/glade-cell-renderer-editor.c | 6 ++--
plugins/gtk+/glade-column-types.c | 2 +-
plugins/gtk+/glade-entry-editor.c | 16 +++++++-------
plugins/gtk+/glade-icon-factory-editor.c | 2 +-
plugins/gtk+/glade-icon-sources.c | 4 +-
plugins/gtk+/glade-image-editor.c | 6 ++--
plugins/gtk+/glade-image-item-editor.c | 2 +-
plugins/gtk+/glade-label-editor.c | 16 +++++++-------
plugins/gtk+/glade-model-data.c | 4 +-
plugins/gtk+/glade-store-editor.c | 4 +-
plugins/gtk+/glade-text-button.c | 2 +-
plugins/gtk+/glade-tool-button-editor.c | 10 ++++----
plugins/gtk+/glade-tool-item-group-editor.c | 4 +-
plugins/gtk+/glade-treeview-editor.c | 4 +-
27 files changed, 89 insertions(+), 91 deletions(-)
---
diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
index 78b5061..9da2864 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -270,7 +270,6 @@ pointer_mode_register_icon (GtkIconFactory *factory,
GtkIconSize size)
{
GdkPixbuf *pixbuf;
- GtkIconSet *icon_set;
pixbuf = glade_utils_pointer_mode_render_icon (mode, size);
if (pixbuf)
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index 01e87f0..1646b4a 100644
--- a/gladeui/glade-base-editor.c
+++ b/gladeui/glade-base-editor.c
@@ -1707,7 +1707,7 @@ glade_base_editor_init (GladeBaseEditor *editor)
e = editor->priv = g_new0 (GladeBaseEditorPrivate, 1);
/* Paned */
- e->paned = paned = gtk_vpaned_new ();
+ e->paned = paned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_widget_show (paned);
gtk_box_pack_start (GTK_BOX (editor), e->paned, TRUE, TRUE, 0);
@@ -1730,7 +1730,7 @@ glade_base_editor_init (GladeBaseEditor *editor)
gtk_notebook_append_page (GTK_NOTEBOOK (e->notebook), e->main_scroll, label);
/* Hbox */
- hbox = gtk_hbox_new (FALSE, 8);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
gtk_widget_show (hbox);
/* translators: refers to a tab name used to show the widget hierarchy */
@@ -1739,7 +1739,7 @@ glade_base_editor_init (GladeBaseEditor *editor)
gtk_notebook_append_page (GTK_NOTEBOOK (e->notebook), hbox, label);
/* TreeView Vbox */
- tree_vbox = gtk_vbox_new (FALSE, 8);
+ tree_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
gtk_widget_show (tree_vbox);
gtk_box_pack_start (GTK_BOX (hbox), tree_vbox, FALSE, TRUE, 0);
@@ -1817,7 +1817,7 @@ glade_base_editor_init (GladeBaseEditor *editor)
gtk_table_attach_defaults (GTK_TABLE (button_table), button, 1, 2, 0, 1);
/* Properties Vbox */
- vbox = gtk_vbox_new (FALSE, 8);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
@@ -2240,7 +2240,7 @@ glade_base_editor_pack_new_window (GladeBaseEditor *editor,
G_CALLBACK (gtk_widget_destroy), window);
/* Button Box */
- buttonbox = gtk_hbutton_box_new ();
+ buttonbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_show (buttonbox);
gtk_button_box_set_layout (GTK_BUTTON_BOX (buttonbox), GTK_BUTTONBOX_END);
gtk_box_set_spacing (GTK_BOX (buttonbox), 8);
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c
index f93d605..e7cc2be 100644
--- a/gladeui/glade-design-layout.c
+++ b/gladeui/glade-design-layout.c
@@ -930,7 +930,6 @@ glade_design_layout_add (GtkContainer *container, GtkWidget *widget)
{
GladeDesignLayoutPrivate *priv = GLADE_DESIGN_LAYOUT_GET_PRIVATE (container);
GladeDesignLayout *layout = GLADE_DESIGN_LAYOUT (container);
- GtkStyleContext *context = gtk_widget_get_style_context (widget);
GladeWidget *gchild;
layout->priv->current_width = 0;
@@ -1673,7 +1672,7 @@ glade_design_layout_realize (GtkWidget * widget)
priv->cursors[ACTIVITY_MARGINS_TOP_LEFT] = gdk_cursor_new_for_display (display, GDK_TOP_LEFT_CORNER);
priv->cursors[ACTIVITY_MARGINS_TOP_RIGHT] = gdk_cursor_new_for_display (display, GDK_TOP_RIGHT_CORNER);
priv->cursors[ACTIVITY_MARGINS_BOTTOM_LEFT] = gdk_cursor_new_for_display (display, GDK_BOTTOM_LEFT_CORNER);
- priv->cursors[ACTIVITY_MARGINS_BOTTOM_RIGHT] = gdk_cursor_ref (priv->cursors[ACTIVITY_RESIZE_WIDTH_AND_HEIGHT]);
+ priv->cursors[ACTIVITY_MARGINS_BOTTOM_RIGHT] = g_object_ref (priv->cursors[ACTIVITY_RESIZE_WIDTH_AND_HEIGHT]);
priv->widget_name = pango_layout_new (gtk_widget_get_pango_context (widget));
}
@@ -1698,7 +1697,7 @@ glade_design_layout_unrealize (GtkWidget * widget)
{
if (priv->cursors[i])
{
- gdk_cursor_unref (priv->cursors[i]);
+ g_object_unref (priv->cursors[i]);
priv->cursors[i] = NULL;
}
}
diff --git a/gladeui/glade-design-view.c b/gladeui/glade-design-view.c
index 1864921..6795779 100644
--- a/gladeui/glade-design-view.c
+++ b/gladeui/glade-design-view.c
@@ -303,7 +303,7 @@ glade_design_view_init (GladeDesignView *view)
gtk_widget_set_no_show_all (GTK_WIDGET (view), TRUE);
view->priv->project = NULL;
- view->priv->layout_box = gtk_vbox_new (FALSE, 0);
+ view->priv->layout_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_valign (view->priv->layout_box, GTK_ALIGN_START);
gtk_container_set_border_width (GTK_CONTAINER (view->priv->layout_box), 0);
gtk_box_pack_end (GTK_BOX (view->priv->layout_box), gtk_fixed_new (), FALSE, FALSE, 0);
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index f75016d..03b183f 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -344,7 +344,7 @@ glade_editor_property_constructor (GType type,
g_object_ref_sink (eprop->priv->item_label);
- hbox = gtk_hbox_new (FALSE, 4);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_label_set_line_wrap (GTK_LABEL (eprop->priv->label), TRUE);
gtk_label_set_width_chars (GTK_LABEL (eprop->priv->label), 10);
@@ -1130,7 +1130,7 @@ glade_eprop_flags_show_dialog (GtkWidget *button, GladeEditorProperty *eprop)
gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
gtk_box_set_spacing (GTK_BOX (action_area), 6);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
view = glade_eprop_flags_create_treeview (eprop);
@@ -1159,8 +1159,8 @@ glade_eprop_flags_create_input (GladeEditorProperty *eprop)
GtkWidget *vbox, *hbox, *button, *widget;
GladeEPropFlags *eprop_flags = GLADE_EPROP_FLAGS (eprop);
- hbox = gtk_hbox_new (FALSE, 0);
- vbox = gtk_vbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
widget = glade_eprop_flags_create_treeview (eprop);
@@ -1300,7 +1300,7 @@ glade_eprop_color_create_input (GladeEditorProperty *eprop)
pspec = glade_property_class_get_pspec (eprop->priv->klass);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
eprop_color->entry = gtk_entry_new ();
gtk_editable_set_editable (GTK_EDITABLE (eprop_color->entry), FALSE);
@@ -1506,7 +1506,7 @@ glade_eprop_named_icon_create_input (GladeEditorProperty *eprop)
GtkWidget *hbox;
GtkWidget *button;
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
eprop_named_icon->entry = gtk_entry_new ();
gtk_widget_show (eprop_named_icon->entry);
@@ -1768,7 +1768,7 @@ glade_editor_property_show_i18n_dialog (GtkWidget *parent,
gtk_box_set_spacing (GTK_BOX (action_area), 6);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
gtk_widget_show (vbox);
@@ -1803,7 +1803,7 @@ glade_editor_property_show_i18n_dialog (GtkWidget *parent,
}
/* Translatable and context prefix. */
- hbox = gtk_hbox_new (FALSE, 12);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
@@ -2110,7 +2110,7 @@ glade_eprop_text_create_input (GladeEditorProperty *eprop)
klass = eprop->priv->klass;
pspec = glade_property_class_get_pspec (klass);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
if (glade_property_class_stock (klass) ||
glade_property_class_stock_icon (klass))
@@ -2798,7 +2798,7 @@ glade_editor_property_show_object_dialog (GladeProject *project,
gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
gtk_box_set_spacing (GTK_BOX (action_area), 6);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
@@ -2940,7 +2940,7 @@ glade_eprop_object_show_dialog (GtkWidget *dialog_button,
gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
gtk_box_set_spacing (GTK_BOX (action_area), 6);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
@@ -3123,7 +3123,7 @@ glade_eprop_object_create_input (GladeEditorProperty *eprop)
GtkWidget *hbox;
GtkWidget *button;
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
eprop_object->entry = gtk_entry_new ();
gtk_editable_set_editable (GTK_EDITABLE (eprop_object->entry), FALSE);
gtk_widget_show (eprop_object->entry);
@@ -3244,7 +3244,7 @@ glade_eprop_objects_show_dialog (GtkWidget *dialog_button,
gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 500);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
@@ -3327,7 +3327,7 @@ glade_eprop_objects_create_input (GladeEditorProperty *eprop)
GtkWidget *hbox;
GtkWidget *button;
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
eprop_objects->entry = gtk_entry_new ();
gtk_editable_set_editable (GTK_EDITABLE (eprop_objects->entry), FALSE);
gtk_widget_show (eprop_objects->entry);
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 78c01e3..d563991 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -292,7 +292,7 @@ glade_editor_notebook_page (GladeEditor *editor, const gchar *name)
gtk_notebook_insert_page (GTK_NOTEBOOK (editor->priv->notebook), sw,
label_widget, page++);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (alignment), vbox);
@@ -424,7 +424,7 @@ glade_editor_setup_class_field (GladeEditor *editor)
GtkWidget *hbox;
gint icon_height;
- hbox = gtk_hbox_new (FALSE, 4);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
editor->priv->class_icon = gtk_image_new ();
editor->priv->class_label = gtk_label_new (NULL);
@@ -510,7 +510,7 @@ glade_editor_init (GladeEditor *editor)
gtk_box_pack_start (GTK_BOX (editor), editor->priv->class_field, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (editor), editor->priv->notebook, TRUE, TRUE, 0);
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
gtk_box_pack_start (GTK_BOX (editor), hbox, FALSE, FALSE, 0);
@@ -1271,7 +1271,7 @@ glade_editor_reset_dialog (GladeEditor *editor)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
@@ -1305,7 +1305,7 @@ glade_editor_reset_dialog (GladeEditor *editor)
gtk_container_add (GTK_CONTAINER (sw), tree_view);
/* Select all / Unselect all */
- hbox = gtk_hbutton_box_new ();
+ hbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_END);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
diff --git a/gladeui/glade-named-icon-chooser-dialog.c b/gladeui/glade-named-icon-chooser-dialog.c
index 0f0c0d9..9cd989f 100644
--- a/gladeui/glade-named-icon-chooser-dialog.c
+++ b/gladeui/glade-named-icon-chooser-dialog.c
@@ -463,7 +463,7 @@ set_busy_cursor (GladeNamedIconChooserDialog * dialog, gboolean busy)
gdk_display_flush (display);
if (cursor)
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
static GtkListStore *
@@ -1407,7 +1407,7 @@ glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog * dialog)
gtk_widget_push_composite_child ();
- contents = gtk_vbox_new (FALSE, 6);
+ contents = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (contents);
label = gtk_label_new_with_mnemonic (_("Icon _Name:"));
@@ -1435,21 +1435,21 @@ glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog * dialog)
gtk_label_set_mnemonic_widget (GTK_LABEL (label), dialog->priv->entry);
- hbox = gtk_hbox_new (FALSE, 12);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), dialog->priv->entry, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (contents), hbox, FALSE, FALSE, 6);
- hpaned = gtk_hpaned_new ();
+ hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_set_position (GTK_PANED (hpaned), 150);
gtk_widget_show (hpaned);
dialog->priv->contexts_view = create_contexts_view (dialog);
dialog->priv->icons_view = create_icons_view (dialog);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
@@ -1474,7 +1474,7 @@ glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog * dialog)
gtk_paned_pack1 (GTK_PANED (hpaned), vbox, FALSE, FALSE);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
label = gtk_label_new_with_mnemonic (_("Icon Na_mes:"));
diff --git a/gladeui/glade-palette.c b/gladeui/glade-palette.c
index cf748c9..410ddac 100644
--- a/gladeui/glade-palette.c
+++ b/gladeui/glade-palette.c
@@ -304,7 +304,7 @@ glade_palette_new_item (GladePalette * palette, GladeWidgetAdaptor * adaptor)
g_assert (GTK_IS_BUTTON (button));
/* Add a box to avoid the ellipsize on the items */
- box = gtk_hbox_new (FALSE, 0);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label = gtk_label_new (glade_widget_adaptor_get_title (adaptor));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_widget_show (label);
@@ -636,7 +636,7 @@ glade_palette_init (GladePalette * palette)
/* create selector button */
priv->selector_button = glade_palette_create_selector_button (palette);
- priv->selector_hbox = gtk_hbox_new (FALSE, 0);
+ priv->selector_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (priv->selector_hbox), priv->selector_button,
FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (palette), priv->selector_hbox, FALSE, FALSE, 0);
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index fff3595..3bbca46 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -3894,7 +3894,7 @@ glade_project_build_prefs_box (GladeProject *project)
main_frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (main_frame), GTK_SHADOW_NONE);
main_alignment = gtk_alignment_new (0.5F, 0.5F, 0.8F, 0.8F);
- main_box = gtk_vbox_new (FALSE, 0);
+ main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_alignment_set_padding (GTK_ALIGNMENT (main_alignment), 0, 0, 4, 0);
@@ -3905,7 +3905,7 @@ glade_project_build_prefs_box (GladeProject *project)
string =
g_strdup_printf ("<b>%s</b>", _("Image resources are loaded locally:"));
frame = gtk_frame_new (NULL);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
alignment = gtk_alignment_new (0.5F, 0.5F, 0.8F, 0.8F);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 8, 0, 12, 0);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
@@ -3926,7 +3926,7 @@ glade_project_build_prefs_box (GladeProject *project)
gtk_size_group_add_widget (sizegroup, project->priv->resource_default_radio);
/* Project relative directory... */
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
project->priv->resource_relative_radio =
gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON
(project->priv->
@@ -3943,7 +3943,7 @@ glade_project_build_prefs_box (GladeProject *project)
/* fullpath directory... */
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
project->priv->resource_fullpath_radio =
gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON
(project->priv->resource_default_radio),
@@ -3979,7 +3979,7 @@ glade_project_build_prefs_box (GladeProject *project)
/* Target versions */
string = g_strdup_printf ("<b>%s</b>", _("Toolkit versions required:"));
frame = gtk_frame_new (NULL);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
alignment = gtk_alignment_new (0.5F, 0.5F, 1.0F, 1.0F);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 8, 0, 12, 0);
@@ -4018,7 +4018,7 @@ glade_project_build_prefs_box (GladeProject *project)
gtk_misc_set_alignment (GTK_MISC (label), 0.0F, 0.5F);
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 2);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
active_radio = NULL;
target_radio = NULL;
@@ -4068,7 +4068,7 @@ glade_project_build_prefs_box (GladeProject *project)
}
/* Run verify */
- hbox = gtk_hbox_new (FALSE, 2);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
button = gtk_button_new_from_stock (GTK_STOCK_EXECUTE);
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (verify_clicked), project);
diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c
index 0470a0c..4078dfb 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -739,7 +739,7 @@ glade_widget_adaptor_finalize (GObject *object)
g_free (adaptor->priv->special_child_type);
if (adaptor->priv->cursor != NULL)
- gdk_cursor_unref (adaptor->priv->cursor);
+ g_object_unref (adaptor->priv->cursor);
if (adaptor->priv->name)
g_free (adaptor->priv->name);
diff --git a/plugins/gtk+/glade-accels.c b/plugins/gtk+/glade-accels.c
index 3561d41..e011b0a 100644
--- a/plugins/gtk+/glade-accels.c
+++ b/plugins/gtk+/glade-accels.c
@@ -520,7 +520,7 @@ glade_eprop_accel_show_dialog (GtkWidget * dialog_button,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
@@ -593,7 +593,7 @@ glade_eprop_accel_create_input (GladeEditorProperty * eprop)
GtkWidget *hbox;
GtkWidget *button;
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
eprop_accel->entry = gtk_entry_new ();
gtk_editable_set_editable (GTK_EDITABLE (eprop_accel->entry), FALSE);
gtk_widget_show (eprop_accel->entry);
diff --git a/plugins/gtk+/glade-attributes.c b/plugins/gtk+/glade-attributes.c
index 5fb0d9b..9cf1fb5 100644
--- a/plugins/gtk+/glade-attributes.c
+++ b/plugins/gtk+/glade-attributes.c
@@ -1042,7 +1042,7 @@ glade_eprop_attrs_show_dialog (GtkWidget * dialog_button,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
@@ -1124,7 +1124,7 @@ glade_eprop_attrs_create_input (GladeEditorProperty * eprop)
GtkWidget *hbox;
GtkWidget *button;
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
button = gtk_button_new_from_stock (GTK_STOCK_EDIT);
gtk_widget_show (button);
diff --git a/plugins/gtk+/glade-button-editor.c b/plugins/gtk+/glade-button-editor.c
index 33ab3aa..f1cce8e 100644
--- a/plugins/gtk+/glade-button-editor.c
+++ b/plugins/gtk+/glade-button-editor.c
@@ -436,7 +436,7 @@ glade_button_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
0, 12, 0);
gtk_container_add (GTK_CONTAINER (frame), button_editor->standard_frame);
- vbox = gtk_vbox_new (FALSE, 8);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
gtk_container_add (GTK_CONTAINER (button_editor->standard_frame), vbox);
/* Populate stock frame here... */
diff --git a/plugins/gtk+/glade-cell-renderer-editor.c b/plugins/gtk+/glade-cell-renderer-editor.c
index 71f8de7..41beddf 100644
--- a/plugins/gtk+/glade-cell-renderer-editor.c
+++ b/plugins/gtk+/glade-cell-renderer-editor.c
@@ -344,8 +344,8 @@ glade_cell_renderer_editor_new (GladeWidgetAdaptor * adaptor,
tab->use_attr_pclass = use_attr_pclass;
/* Label appearance... */
- hbox_left = gtk_hbox_new (FALSE, 0);
- hbox_right = gtk_hbox_new (FALSE, 0);
+ hbox_left = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ hbox_right = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_set_hexpand (hbox_right, TRUE);
tab->attributes_check = gtk_check_button_new ();
@@ -567,7 +567,7 @@ glade_eprop_cell_attribute_create_input (GladeEditorProperty * eprop)
GtkAdjustment *adjustment;
GtkCellRenderer *cell;
- hbox = gtk_hbox_new (FALSE, 2);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
adjustment = glade_property_class_make_adjustment (glade_editor_property_get_pclass (eprop));
eprop_attribute->spin = gtk_spin_button_new (adjustment, 1.0, 0);
diff --git a/plugins/gtk+/glade-column-types.c b/plugins/gtk+/glade-column-types.c
index 7532c7e..8027970 100644
--- a/plugins/gtk+/glade-column-types.c
+++ b/plugins/gtk+/glade-column-types.c
@@ -808,7 +808,7 @@ glade_eprop_column_types_create_input (GladeEditorProperty * eprop)
GtkCellRenderer *cell;
gchar *string;
- vbox = gtk_vbox_new (FALSE, 2);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
/* hbox = gtk_hbox_new (FALSE, 4); */
diff --git a/plugins/gtk+/glade-entry-editor.c b/plugins/gtk+/glade-entry-editor.c
index 86320da..7b31695 100644
--- a/plugins/gtk+/glade-entry-editor.c
+++ b/plugins/gtk+/glade-entry-editor.c
@@ -513,7 +513,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
/* Text */
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "text", FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->text_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->text_radio, FALSE, FALSE,
2);
@@ -526,7 +526,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "buffer", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->buffer_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (entry_editor->text_radio));
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->buffer_radio, FALSE, FALSE,
@@ -596,7 +596,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, PIXBUF_NAME (TRUE),
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->primary_pixbuf_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->primary_pixbuf_radio, FALSE,
FALSE, 2);
@@ -609,7 +609,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, STOCK_NAME (TRUE),
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->primary_stock_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (entry_editor->primary_pixbuf_radio));
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->primary_stock_radio, FALSE,
@@ -623,7 +623,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, ICON_NAME_NAME (TRUE),
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->primary_icon_name_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (entry_editor->primary_pixbuf_radio));
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->primary_icon_name_radio,
@@ -690,7 +690,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, PIXBUF_NAME (FALSE),
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->secondary_pixbuf_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->secondary_pixbuf_radio,
FALSE, FALSE, 2);
@@ -703,7 +703,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, STOCK_NAME (FALSE),
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->secondary_stock_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (entry_editor->secondary_pixbuf_radio));
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->secondary_stock_radio,
@@ -718,7 +718,7 @@ glade_entry_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
glade_widget_adaptor_create_eprop_by_name (adaptor,
ICON_NAME_NAME (FALSE), FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
entry_editor->secondary_icon_name_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (entry_editor->secondary_pixbuf_radio));
gtk_box_pack_start (GTK_BOX (hbox), entry_editor->secondary_icon_name_radio,
diff --git a/plugins/gtk+/glade-icon-factory-editor.c b/plugins/gtk+/glade-icon-factory-editor.c
index f83b50f..eb317df 100644
--- a/plugins/gtk+/glade-icon-factory-editor.c
+++ b/plugins/gtk+/glade-icon-factory-editor.c
@@ -151,7 +151,7 @@ glade_icon_factory_editor_new (GladeWidgetAdaptor * adaptor,
alignment = gtk_alignment_new (0.5F, 0.5F, 1.0F, 1.0F);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (frame), alignment);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (alignment), vbox);
/* Add descriptive label */
diff --git a/plugins/gtk+/glade-icon-sources.c b/plugins/gtk+/glade-icon-sources.c
index 4feff85..0508bf8 100644
--- a/plugins/gtk+/glade-icon-sources.c
+++ b/plugins/gtk+/glade-icon-sources.c
@@ -948,8 +948,8 @@ glade_eprop_icon_sources_create_input (GladeEditorProperty * eprop)
GladeEPropIconSources *eprop_sources = GLADE_EPROP_ICON_SOURCES (eprop);
GtkWidget *vbox, *hbox, *button, *swin;
- vbox = gtk_vbox_new (FALSE, 2);
- hbox = gtk_hbox_new (FALSE, 4);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
/* hbox with comboboxentry add/remove source buttons on the right... */
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
diff --git a/plugins/gtk+/glade-image-editor.c b/plugins/gtk+/glade-image-editor.c
index 8e24dac..748b907 100644
--- a/plugins/gtk+/glade-image-editor.c
+++ b/plugins/gtk+/glade-image-editor.c
@@ -315,7 +315,7 @@ glade_image_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
/* Stock image... */
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "stock", FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
image_editor->stock_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), image_editor->stock_radio, FALSE, FALSE,
2);
@@ -328,7 +328,7 @@ glade_image_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "icon-name", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
image_editor->icon_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (image_editor->stock_radio));
gtk_box_pack_start (GTK_BOX (hbox), image_editor->icon_radio, FALSE, FALSE,
@@ -342,7 +342,7 @@ glade_image_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "pixbuf", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
image_editor->file_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (image_editor->stock_radio));
gtk_box_pack_start (GTK_BOX (hbox), image_editor->file_radio, FALSE, FALSE,
diff --git a/plugins/gtk+/glade-image-item-editor.c b/plugins/gtk+/glade-image-item-editor.c
index b5d9e4c..f64853b 100644
--- a/plugins/gtk+/glade-image-item-editor.c
+++ b/plugins/gtk+/glade-image-item-editor.c
@@ -332,7 +332,7 @@ glade_image_item_editor_new (GladeWidgetAdaptor * adaptor,
(GTK_RADIO_BUTTON (item_editor->stock_radio),
_("Custom label and image:"));
table_attach (main_table, item_editor->custom_radio, 0, 2);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_grid_attach (GTK_GRID (main_table), vbox, 0, 3, 2, 1);
gtk_widget_set_hexpand (vbox, TRUE);
diff --git a/plugins/gtk+/glade-label-editor.c b/plugins/gtk+/glade-label-editor.c
index c1ad58c..e0f4ad5 100644
--- a/plugins/gtk+/glade-label-editor.c
+++ b/plugins/gtk+/glade-label-editor.c
@@ -518,7 +518,7 @@ append_label_appearance (GladeLabelEditor * label_editor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "glade-attributes",
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->attributes_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), label_editor->attributes_radio, FALSE,
FALSE, 2);
@@ -531,7 +531,7 @@ append_label_appearance (GladeLabelEditor * label_editor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "use-markup", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->markup_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (label_editor->attributes_radio));
gtk_box_pack_start (GTK_BOX (hbox), label_editor->markup_radio, FALSE, FALSE,
@@ -545,7 +545,7 @@ append_label_appearance (GladeLabelEditor * label_editor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "pattern", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->pattern_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (label_editor->attributes_radio));
gtk_box_pack_start (GTK_BOX (hbox), label_editor->pattern_radio, FALSE, FALSE,
@@ -617,7 +617,7 @@ append_label_formatting (GladeLabelEditor * label_editor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "width-chars", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->width_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), label_editor->width_radio, FALSE, FALSE,
2);
@@ -630,7 +630,7 @@ append_label_formatting (GladeLabelEditor * label_editor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "max-width-chars",
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->max_width_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (label_editor->width_radio));
gtk_box_pack_start (GTK_BOX (hbox), label_editor->max_width_radio, FALSE,
@@ -671,7 +671,7 @@ append_label_wrapping (GladeLabelEditor * label_editor,
gtk_container_add (GTK_CONTAINER (alignment), table);
/* Append defaut epropless radio... */
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->wrap_free_radio = gtk_radio_button_new (NULL);
label_editor->wrap_free_label = gtk_label_new (_("Text wraps normally"));
gtk_misc_set_alignment (GTK_MISC (label_editor->wrap_free_label), 0.0F, 0.5F);
@@ -685,7 +685,7 @@ append_label_wrapping (GladeLabelEditor * label_editor,
single_line_eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "single-line-mode",
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->single_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (label_editor->wrap_free_radio));
gtk_box_pack_start (GTK_BOX (hbox), label_editor->single_radio, FALSE, FALSE,
@@ -700,7 +700,7 @@ append_label_wrapping (GladeLabelEditor * label_editor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "wrap-mode", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label_editor->wrap_mode_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (label_editor->wrap_free_radio));
gtk_box_pack_start (GTK_BOX (hbox), label_editor->wrap_mode_radio, FALSE,
diff --git a/plugins/gtk+/glade-model-data.c b/plugins/gtk+/glade-model-data.c
index c0b420a..86e6b84 100644
--- a/plugins/gtk+/glade-model-data.c
+++ b/plugins/gtk+/glade-model-data.c
@@ -1108,9 +1108,9 @@ glade_eprop_model_data_create_input (GladeEditorProperty * eprop)
GtkWidget *vbox, *hbox, *button, *swin, *label;
gchar *string;
- vbox = gtk_vbox_new (FALSE, 2);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- hbox = gtk_hbox_new (FALSE, 4);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
/* hbox with add/remove row buttons on the right... */
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
diff --git a/plugins/gtk+/glade-store-editor.c b/plugins/gtk+/glade-store-editor.c
index 392feec..4d045f9 100644
--- a/plugins/gtk+/glade-store-editor.c
+++ b/plugins/gtk+/glade-store-editor.c
@@ -146,7 +146,7 @@ glade_store_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
alignment = gtk_alignment_new (0.5F, 0.5F, 1.0F, 1.0F);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (frame), alignment);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (alignment), vbox);
/* Add descriptive label */
@@ -179,7 +179,7 @@ glade_store_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
alignment = gtk_alignment_new (0.5F, 0.5F, 1.0F, 1.0F);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (frame), alignment);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (alignment), vbox);
/* Add descriptive label */
diff --git a/plugins/gtk+/glade-text-button.c b/plugins/gtk+/glade-text-button.c
index 40f9cc0..7cb9682 100644
--- a/plugins/gtk+/glade-text-button.c
+++ b/plugins/gtk+/glade-text-button.c
@@ -65,7 +65,7 @@ glade_text_button_init (GladeTextButton * self)
gtk_alignment_set_padding (GTK_ALIGNMENT (self), 1, 1, 2, 2);
- self->hbox = gtk_hbox_new (FALSE, 2);
+ self->hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_container_add (GTK_CONTAINER (self), self->hbox);
diff --git a/plugins/gtk+/glade-tool-button-editor.c b/plugins/gtk+/glade-tool-button-editor.c
index 7703475..9e612a2 100644
--- a/plugins/gtk+/glade-tool-button-editor.c
+++ b/plugins/gtk+/glade-tool-button-editor.c
@@ -390,7 +390,7 @@ glade_tool_button_editor_new (GladeWidgetAdaptor * adaptor,
/* Standard label... */
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "label", FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
button_editor->standard_label_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), button_editor->standard_label_radio,
FALSE, FALSE, 2);
@@ -403,7 +403,7 @@ glade_tool_button_editor_new (GladeWidgetAdaptor * adaptor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "label-widget", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
button_editor->custom_label_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (button_editor->standard_label_radio));
gtk_box_pack_start (GTK_BOX (hbox), button_editor->custom_label_radio, FALSE,
@@ -438,7 +438,7 @@ glade_tool_button_editor_new (GladeWidgetAdaptor * adaptor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "stock-id", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
button_editor->stock_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), button_editor->stock_radio, FALSE, FALSE,
2);
@@ -451,7 +451,7 @@ glade_tool_button_editor_new (GladeWidgetAdaptor * adaptor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "icon-name", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
button_editor->icon_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (button_editor->stock_radio));
gtk_box_pack_start (GTK_BOX (hbox), button_editor->icon_radio, FALSE, FALSE,
@@ -465,7 +465,7 @@ glade_tool_button_editor_new (GladeWidgetAdaptor * adaptor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "icon-widget", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
button_editor->custom_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (button_editor->stock_radio));
gtk_box_pack_start (GTK_BOX (hbox), button_editor->custom_radio, FALSE, FALSE,
diff --git a/plugins/gtk+/glade-tool-item-group-editor.c b/plugins/gtk+/glade-tool-item-group-editor.c
index c8678a6..0fe1361 100644
--- a/plugins/gtk+/glade-tool-item-group-editor.c
+++ b/plugins/gtk+/glade-tool-item-group-editor.c
@@ -248,7 +248,7 @@ glade_tool_item_group_editor_new (GladeWidgetAdaptor *adaptor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "label", FALSE,
TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
group_editor->label_radio = gtk_radio_button_new (NULL);
gtk_box_pack_start (GTK_BOX (hbox), group_editor->label_radio, FALSE, FALSE,
2);
@@ -261,7 +261,7 @@ glade_tool_item_group_editor_new (GladeWidgetAdaptor *adaptor,
eprop =
glade_widget_adaptor_create_eprop_by_name (adaptor, "label-widget",
FALSE, TRUE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
group_editor->label_widget_radio = gtk_radio_button_new_from_widget
(GTK_RADIO_BUTTON (group_editor->label_radio));
gtk_box_pack_start (GTK_BOX (hbox), group_editor->label_widget_radio, FALSE,
diff --git a/plugins/gtk+/glade-treeview-editor.c b/plugins/gtk+/glade-treeview-editor.c
index 375152d..fa21a35 100644
--- a/plugins/gtk+/glade-treeview-editor.c
+++ b/plugins/gtk+/glade-treeview-editor.c
@@ -195,11 +195,11 @@ glade_tree_view_editor_new (GladeWidgetAdaptor * adaptor, GladeEditable * embed)
/* Pack the parent on the left... */
gtk_box_pack_start (GTK_BOX (view_editor), GTK_WIDGET (embed), TRUE, TRUE, 8);
- separator = gtk_vseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
gtk_box_pack_start (GTK_BOX (view_editor), separator, FALSE, FALSE, 0);
/* ...and the vbox with datastore/label on the right */
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (view_editor), vbox, TRUE, TRUE, 8);
str = g_strdup_printf ("<b>%s</b>", _("Choose a Data Model and define some\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]