Commit c098f785 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

Removed use of deprecated GtkHBox, GtkVBox and others

parent 41b5ef80
......@@ -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)
......
......@@ -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);
......
......@@ -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;
}
}
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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:"));
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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... */
......
......@@ -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);
......
......@@ -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); */
......
......@@ -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,
......
......@@ -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 */
......
......@@ -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);
......
......@@ -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,
......
......@@ -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);
......
Markdown is supported
0%