Change all Gtk horizontal and vertical widgets

Change Gtk horizontal and vertical widgets to there equivalent with
orientation
This commit is contained in:
Robert Fewell 2017-06-16 12:40:17 +01:00
parent 9cefa509c7
commit b3c5b1cb5d
8 changed files with 12 additions and 12 deletions

View File

@ -1088,7 +1088,7 @@ gnc_option_create_account_widget(GNCOption *option, char *name)
gtk_container_set_border_width(GTK_CONTAINER(scroll_win), 5);
gtk_container_add(GTK_CONTAINER(scroll_win), tree);
bbox = gtk_hbutton_box_new();
bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_SPREAD);
gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 10);
@ -1127,7 +1127,7 @@ gnc_option_create_account_widget(GNCOption *option, char *name)
{
/* Put the "Show hidden" checkbox on a separate line since the 4 buttons make
the dialog too wide. */
bbox = gtk_hbutton_box_new();
bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_START);
gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
}
@ -1233,7 +1233,7 @@ gnc_option_create_list_widget(GNCOption *option, char *name)
g_signal_connect(selection, "changed",
G_CALLBACK(gnc_option_list_changed_cb), option);
bbox = gtk_vbutton_box_new();
bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_SPREAD);
gtk_box_pack_start(GTK_BOX(hbox), bbox, FALSE, FALSE, 10);
@ -1410,7 +1410,7 @@ gnc_options_dialog_append_page(GNCOptionWin * propertybox,
}
/* Add a button box at the bottom of the page */
buttonbox = gtk_hbutton_box_new();
buttonbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (buttonbox),
GTK_BUTTONBOX_EDGE);
gtk_container_set_border_width(GTK_CONTAINER (buttonbox), 5);

View File

@ -153,7 +153,7 @@ gcrd_init (GncCellRendererDate *date)
popup->focus_window = date->calendar;
gtk_box_pack_start (GTK_BOX (vbox), date->calendar, TRUE, TRUE, 0);
date->button_box = gtk_hbutton_box_new ();
date->button_box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_set_spacing (GTK_BOX (date->button_box), 6);
gtk_box_pack_start (GTK_BOX (vbox), date->button_box, FALSE, FALSE, 0);

View File

@ -223,7 +223,7 @@ gctt_init (GncCombott *combott)
arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_box_pack_end (GTK_BOX (hbox), arrow, FALSE, FALSE, 0);
sep = gtk_vseparator_new();
sep = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
gtk_box_pack_end (GTK_BOX (hbox), sep, FALSE, FALSE, 0);
label = gtk_label_new(NULL);

View File

@ -406,7 +406,7 @@ struct _GncRecurrenceComp
GtkWidget *vbox;
GtkWidget *hbox;
GtkHButtonBox *hbb;
GtkWidget *hbb;
gint num_rec;
GtkButton *buttRemove;
GtkButton *buttAdd;
@ -536,7 +536,7 @@ gnc_recurrence_comp_init(GncRecurrenceComp *grc)
gtk_orientable_set_orientation (GTK_ORIENTABLE(grc), GTK_ORIENTATION_VERTICAL);
grc->hbb = GTK_HBUTTON_BOX(gtk_hbutton_box_new());
grc->hbb = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
grc->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
gtk_box_set_homogeneous (GTK_BOX (grc->vbox), FALSE);
grc->rlist = NULL;

View File

@ -112,7 +112,7 @@ gnc_show_splash_screen (void)
gtk_label_set_markup(GTK_LABEL(version), markup);
g_free(markup);
g_free(ver_string);
separator = gtk_hseparator_new();
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
progress = gtk_label_new(NULL);
/* the set_max_width avoids "bumping" of the splash screen

View File

@ -412,7 +412,7 @@ gbv_create_widget(GncBudgetView *view)
gtk_box_pack_end(GTK_BOX(inner_vbox), GTK_WIDGET(totals_tree_view), /*expand*/FALSE, /*fill*/TRUE, 0);
h_separator = gtk_hseparator_new();
h_separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_show(h_separator);
gtk_box_pack_end(GTK_BOX(inner_vbox), h_separator, /*expand*/FALSE, /*fill*/TRUE, 0);

View File

@ -367,7 +367,7 @@ gnc_plugin_page_sx_list_create_widget (GncPluginPage *plugin_page)
return priv->widget;
/* Create Vpaned widget for top level */
widget = gtk_vpaned_new();
widget = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
priv->widget = widget;
gtk_widget_show (priv->widget);

View File

@ -296,7 +296,7 @@ gsr2_create_table (GNCSplitReg2 *gsr)
gsr->scroll_adj = GTK_ADJUSTMENT (gtk_adjustment_new (model->position_of_trans_in_full_tlist, 0.0, num_of_trans + 10, 1.0, 10.0, 10.0));
gsr->scroll_bar = gtk_vscrollbar_new (GTK_ADJUSTMENT (gsr->scroll_adj));
gsr->scroll_bar = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, GTK_ADJUSTMENT (gsr->scroll_adj));
gtk_widget_show (gsr->scroll_bar);
gtk_box_pack_start (GTK_BOX (hbox), gsr->scroll_bar, FALSE, FALSE, 2);