Change all the GtkHbox widgets

Change all GtkHBox widgets to GtkBox with orientation HORIZONTAL
This commit is contained in:
Robert Fewell 2017-06-16 12:10:36 +01:00
parent 5c2a70bcab
commit 409e43715a
45 changed files with 191 additions and 103 deletions

View File

@ -114,7 +114,9 @@ owner_set_widget (GNCOption *option, GtkBox *page_box,
GtkWidget *value; GtkWidget *value;
GtkWidget *label; GtkWidget *label;
*enclosing = gtk_hbox_new (FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
label = make_name_label (name); label = make_name_label (name);
gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0);
@ -183,7 +185,9 @@ customer_set_widget (GNCOption *option, GtkBox *page_box,
GtkWidget *value; GtkWidget *value;
GtkWidget *label; GtkWidget *label;
*enclosing = gtk_hbox_new (FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
label = make_name_label (name); label = make_name_label (name);
gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0);
@ -241,7 +245,9 @@ vendor_set_widget (GNCOption *option, GtkBox *page_box,
GtkWidget *value; GtkWidget *value;
GtkWidget *label; GtkWidget *label;
*enclosing = gtk_hbox_new (FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
label = make_name_label (name); label = make_name_label (name);
gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0);
@ -298,7 +304,9 @@ employee_set_widget (GNCOption *option, GtkBox *page_box,
GtkWidget *value; GtkWidget *value;
GtkWidget *label; GtkWidget *label;
*enclosing = gtk_hbox_new (FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
label = make_name_label (name); label = make_name_label (name);
gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0);
@ -372,7 +380,9 @@ invoice_set_widget (GNCOption *option, GtkBox *page_box,
GtkWidget *value; GtkWidget *value;
GtkWidget *label; GtkWidget *label;
*enclosing = gtk_hbox_new (FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
label = make_name_label (name); label = make_name_label (name);
gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0);
@ -450,7 +460,9 @@ taxtable_set_widget (GNCOption *option, GtkBox *page_box,
GtkWidget *value; GtkWidget *value;
GtkWidget *label; GtkWidget *label;
*enclosing = gtk_hbox_new (FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
label = make_name_label (name); label = make_name_label (name);
gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (*enclosing), label, FALSE, FALSE, 0);

View File

@ -1204,7 +1204,8 @@ add_summary_label (GtkWidget *summarybar, const char *label_str)
GtkWidget *hbox; GtkWidget *hbox;
GtkWidget *label; GtkWidget *label;
hbox = gtk_hbox_new(FALSE, 2); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start (GTK_BOX(summarybar), hbox, FALSE, FALSE, 5); gtk_box_pack_start (GTK_BOX(summarybar), hbox, FALSE, FALSE, 5);
label = gtk_label_new (label_str); label = gtk_label_new (label_str);
@ -1229,7 +1230,8 @@ gnc_invoice_window_create_summary_bar (InvoiceWindow *iw)
iw->total_subtotal_label = NULL; iw->total_subtotal_label = NULL;
iw->total_tax_label = NULL; iw->total_tax_label = NULL;
summarybar = gtk_hbox_new (FALSE, 4); summarybar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_box_set_homogeneous (GTK_BOX (summarybar), FALSE);
iw->total_label = add_summary_label (summarybar, _("Total:")); iw->total_label = add_summary_label (summarybar, _("Total:"));

View File

@ -274,14 +274,16 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (IS_GNCSEARCH_OWNER (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_OWNER (fi), NULL);
priv = GNC_SEARCH_OWNER_GET_PRIVATE(fi); priv = GNC_SEARCH_OWNER_GET_PRIVATE(fi);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the "how" option menu. */ /* Build and connect the "how" option menu. */
how_menu = make_how_menu (fe); how_menu = make_how_menu (fe);
gtk_box_pack_start (GTK_BOX (box), how_menu, FALSE, FALSE, 3); gtk_box_pack_start (GTK_BOX (box), how_menu, FALSE, FALSE, 3);
/* Create the owner box */ /* Create the owner box */
priv->owner_box = gtk_hbox_new (FALSE, 0); priv->owner_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (priv->owner_box), FALSE);
/* Build and connect the "type" option menu. /* Build and connect the "type" option menu.
* Note that this will build the owner_choice and * Note that this will build the owner_choice and

View File

@ -852,7 +852,9 @@ get_element_widget (GNCSearchWindow *sw, GNCSearchCoreType *element)
data->element = element; data->element = element;
data->dialog = GTK_DIALOG (sw->dialog); data->dialog = GTK_DIALOG (sw->dialog);
hbox = gtk_hbox_new (FALSE, 0); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
/* only set to automatically clean up the memory */ /* only set to automatically clean up the memory */
g_object_set_data_full (G_OBJECT (hbox), "data", data, g_free); g_object_set_data_full (G_OBJECT (hbox), "data", data, g_free);

View File

@ -77,7 +77,7 @@ struct _GNCGeneralSearchPrivate
#define _PRIVATE(o) \ #define _PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_GENERAL_SEARCH, GNCGeneralSearchPrivate)) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_GENERAL_SEARCH, GNCGeneralSearchPrivate))
static GtkHBoxClass *parent_class; static GtkBoxClass *parent_class;
static guint general_search_signals[LAST_SIGNAL]; static guint general_search_signals[LAST_SIGNAL];
@ -106,7 +106,7 @@ gnc_general_search_get_type (void)
(GInstanceInitFunc) gnc_general_search_init, (GInstanceInitFunc) gnc_general_search_init,
}; };
general_search_type = g_type_register_static (GTK_TYPE_HBOX, general_search_type = g_type_register_static (GTK_TYPE_BOX,
"GNCGeneralSearch", "GNCGeneralSearch",
&our_info, 0); &our_info, 0);
} }
@ -140,6 +140,8 @@ gnc_general_search_class_init (GNCGeneralSearchClass *klass)
static void static void
gnc_general_search_init (GNCGeneralSearch *gsl) gnc_general_search_init (GNCGeneralSearch *gsl)
{ {
gtk_orientable_set_orientation (GTK_ORIENTABLE(gsl), GTK_ORIENTATION_HORIZONTAL);
gsl->selected_item = NULL; gsl->selected_item = NULL;
} }

View File

@ -55,7 +55,7 @@ typedef GNCSearchWindow *(*GNCSearchCB) (gpointer start, gpointer user_data);
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
GtkWidget * entry; /* display of selection name */ GtkWidget * entry; /* display of selection name */
GtkWidget * button; /* button for popping up search window */ GtkWidget * button; /* button for popping up search window */
@ -67,7 +67,7 @@ typedef struct
typedef struct typedef struct
{ {
GtkHBoxClass parent_class; GtkBoxClass parent_class;
void (*changed) (GNCGeneralSearch *edit); void (*changed) (GNCGeneralSearch *edit);
} GNCGeneralSearchClass; } GNCGeneralSearchClass;

View File

@ -296,7 +296,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (fi, NULL); g_return_val_if_fail (fi, NULL);
g_return_val_if_fail (IS_GNCSEARCH_ACCOUNT (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_ACCOUNT (fi), NULL);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu */ /* Build and connect the option menu */
menu = make_menu (fe); menu = make_menu (fe);

View File

@ -171,7 +171,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (fi, NULL); g_return_val_if_fail (fi, NULL);
g_return_val_if_fail (IS_GNCSEARCH_BOOLEAN (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_BOOLEAN (fi), NULL);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the toggle */ /* Build and connect the toggle */
toggle = gtk_check_button_new (); toggle = gtk_check_button_new ();

View File

@ -243,7 +243,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (IS_GNCSEARCH_DATE (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_DATE (fi), NULL);
priv = _PRIVATE(fi); priv = _PRIVATE(fi);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu */ /* Build and connect the option menu */
menu = make_menu (fe); menu = make_menu (fe);

View File

@ -235,7 +235,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (IS_GNCSEARCH_DOUBLE (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_DOUBLE (fi), NULL);
priv = _PRIVATE(fi); priv = _PRIVATE(fi);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu */ /* Build and connect the option menu */
menu = make_menu (fe); menu = make_menu (fe);

View File

@ -237,7 +237,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (IS_GNCSEARCH_INT64 (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_INT64 (fi), NULL);
priv = _PRIVATE(fi); priv = _PRIVATE(fi);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu */ /* Build and connect the option menu */
menu = make_menu (fe); menu = make_menu (fe);

View File

@ -298,7 +298,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (IS_GNCSEARCH_NUMERIC (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_NUMERIC (fi), NULL);
priv = _PRIVATE(fi); priv = _PRIVATE(fi);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu(s) */ /* Build and connect the option menu(s) */
if (priv->is_debcred) if (priv->is_debcred)

View File

@ -216,7 +216,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (fi, NULL); g_return_val_if_fail (fi, NULL);
g_return_val_if_fail (IS_GNCSEARCH_RECONCILED (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_RECONCILED (fi), NULL);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu */ /* Build and connect the option menu */
menu = make_menu (fe); menu = make_menu (fe);

View File

@ -312,7 +312,8 @@ gncs_get_widget (GNCSearchCoreType *fe)
g_return_val_if_fail (IS_GNCSEARCH_STRING (fi), NULL); g_return_val_if_fail (IS_GNCSEARCH_STRING (fi), NULL);
priv = _PRIVATE(fi); priv = _PRIVATE(fi);
box = gtk_hbox_new (FALSE, 3); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
/* Build and connect the option menu */ /* Build and connect the option menu */
menu = make_menu (fe); menu = make_menu (fe);

View File

@ -649,7 +649,8 @@ verify_children_compatible (AccountWindow *aw)
gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE);
hbox = gtk_hbox_new (FALSE, 12); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE); gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE);

View File

@ -708,7 +708,8 @@ gnc_option_create_date_widget (GNCOption *option)
} }
else if (g_strcmp0(type, "both") == 0) else if (g_strcmp0(type, "both") == 0)
{ {
box = gtk_hbox_new(FALSE, 5); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
ab_button = gtk_radio_button_new(NULL); ab_button = gtk_radio_button_new(NULL);
g_signal_connect(G_OBJECT(ab_button), "toggled", g_signal_connect(G_OBJECT(ab_button), "toggled",
@ -820,7 +821,8 @@ gnc_option_create_radiobutton_widget(char *name, GNCOption *option)
frame = gtk_frame_new (name); frame = gtk_frame_new (name);
/* Create the button box */ /* Create the button box */
box = gtk_hbox_new (FALSE, 5); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
gtk_container_add (GTK_CONTAINER (frame), box); gtk_container_add (GTK_CONTAINER (frame), box);
/* Iterate over the options and create a radio button for each one */ /* Iterate over the options and create a radio button for each one */
@ -891,7 +893,8 @@ gnc_option_create_currency_accounting_widget (char *name, GNCOption *option)
gtk_widget_set_tooltip_text(widget, tip && *tip ? _(tip) : ""); gtk_widget_set_tooltip_text(widget, tip && *tip ? _(tip) : "");
/* Use hbox & vbox2 for all buttons so they are all at the same level; /* Use hbox & vbox2 for all buttons so they are all at the same level;
easier to get in set/get ui functions */ easier to get in set/get ui functions */
hbox = gtk_hbox_new(FALSE, 5); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_box_set_homogeneous (GTK_BOX (vbox2), FALSE); gtk_box_set_homogeneous (GTK_BOX (vbox2), FALSE);
@ -1195,7 +1198,8 @@ gnc_option_create_list_widget(GNCOption *option, char *name)
gint i; gint i;
frame = gtk_frame_new(name); frame = gtk_frame_new(name);
hbox = gtk_hbox_new(FALSE, 0); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_container_add(GTK_CONTAINER(frame), hbox); gtk_container_add(GTK_CONTAINER(frame), hbox);
store = gtk_list_store_new(1, G_TYPE_STRING); store = gtk_list_store_new(1, G_TYPE_STRING);
@ -1891,7 +1895,8 @@ gnc_option_set_ui_widget_boolean (GNCOption *option, GtkBox *page_box,
{ {
GtkWidget *value; GtkWidget *value;
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gtk_check_button_new_with_label(name); value = gtk_check_button_new_with_label(name);
gnc_option_set_widget (option, value); gnc_option_set_widget (option, value);
@ -1921,7 +1926,8 @@ gnc_option_set_ui_widget_string (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gtk_entry_new(); value = gtk_entry_new();
gnc_option_set_widget (option, value); gnc_option_set_widget (option, value);
@ -1957,7 +1963,8 @@ gnc_option_set_ui_widget_text (GNCOption *option, GtkBox *page_box,
gtk_container_add(GTK_CONTAINER(frame), scroll); gtk_container_add(GTK_CONTAINER(frame), scroll);
*enclosing = gtk_hbox_new(FALSE, 10); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gtk_text_view_new(); value = gtk_text_view_new();
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(value), GTK_WRAP_WORD); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(value), GTK_WRAP_WORD);
gtk_text_view_set_editable(GTK_TEXT_VIEW(value), TRUE); gtk_text_view_set_editable(GTK_TEXT_VIEW(value), TRUE);
@ -1990,7 +1997,8 @@ gnc_option_set_ui_widget_currency (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_currency_edit_new(); value = gnc_currency_edit_new();
gnc_option_set_widget (option, value); gnc_option_set_widget (option, value);
@ -2020,7 +2028,8 @@ gnc_option_set_ui_widget_commodity (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_general_select_new(GNC_GENERAL_SELECT_TYPE_SELECT, value = gnc_general_select_new(GNC_GENERAL_SELECT_TYPE_SELECT,
gnc_commodity_edit_get_string, gnc_commodity_edit_get_string,
gnc_commodity_edit_new_select, gnc_commodity_edit_new_select,
@ -2057,7 +2066,8 @@ gnc_option_set_ui_widget_multichoice (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_option_create_multichoice_widget(option); value = gnc_option_create_multichoice_widget(option);
gnc_option_set_widget (option, value); gnc_option_set_widget (option, value);
@ -2085,7 +2095,8 @@ gnc_option_set_ui_widget_date (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_option_create_date_widget(option); value = gnc_option_create_date_widget(option);
@ -2167,7 +2178,8 @@ gnc_option_set_ui_widget_account_sel (GNCOption *option, GtkBox *page_box,
TRUE? */ TRUE? */
gnc_option_set_ui_value(option, TRUE); gnc_option_set_ui_value(option, TRUE);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
gtk_box_pack_start(GTK_BOX(*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(*enclosing), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(*enclosing), value, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(*enclosing), value, FALSE, FALSE, 0);
gtk_widget_show_all(*enclosing); gtk_widget_show_all(*enclosing);
@ -2220,7 +2232,8 @@ gnc_option_set_ui_widget_number_range (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
gnc_option_get_range_info(option, &lower_bound, &upper_bound, gnc_option_get_range_info(option, &lower_bound, &upper_bound,
&num_decimals, &step_size); &num_decimals, &step_size);
@ -2281,7 +2294,8 @@ gnc_option_set_ui_widget_color (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
use_alpha = gnc_option_use_alpha(option); use_alpha = gnc_option_use_alpha(option);
@ -2316,7 +2330,8 @@ gnc_option_set_ui_widget_font (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gtk_font_button_new(); value = gtk_font_button_new();
g_object_set(G_OBJECT(value), g_object_set(G_OBJECT(value),
"use-font", TRUE, "use-font", TRUE,
@ -2354,7 +2369,8 @@ gnc_option_set_ui_widget_pixmap (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
button = gtk_button_new_with_label(_("Clear")); button = gtk_button_new_with_label(_("Clear"));
gtk_widget_set_tooltip_text(button, _("Clear any selected image file.")); gtk_widget_set_tooltip_text(button, _("Clear any selected image file."));
@ -2397,7 +2413,8 @@ gnc_option_set_ui_widget_radiobutton (GNCOption *option, GtkBox *page_box,
{ {
GtkWidget *value; GtkWidget *value;
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_option_create_radiobutton_widget(name, option); value = gnc_option_create_radiobutton_widget(name, option);
gnc_option_set_widget (option, value); gnc_option_set_widget (option, value);
@ -2493,9 +2510,11 @@ gnc_option_set_ui_widget_plot_size (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
hbox = gtk_hbox_new(FALSE, 5); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
gtk_box_pack_start(GTK_BOX(*enclosing), label, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(*enclosing), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(*enclosing), hbox, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(*enclosing), hbox, FALSE, FALSE, 0);
@ -2582,7 +2601,8 @@ gnc_option_set_ui_widget_budget (GNCOption *option, GtkBox *page_box,
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
g_free(colon_name); g_free(colon_name);
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_option_create_budget_widget(option); value = gnc_option_create_budget_widget(option);
@ -2609,7 +2629,8 @@ gnc_option_set_ui_widget_currency_accounting (GNCOption *option,
{ {
GtkWidget *value; GtkWidget *value;
*enclosing = gtk_hbox_new(FALSE, 5); *enclosing = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (*enclosing), FALSE);
value = gnc_option_create_currency_accounting_widget(name, option); value = gnc_option_create_currency_accounting_widget(name, option);
gnc_option_set_widget (option, value); gnc_option_set_widget (option, value);

View File

@ -1144,7 +1144,7 @@ gnc_prefs_connect_one (const gchar *name,
DEBUG(" %s - entry", name); DEBUG(" %s - entry", name);
gnc_prefs_connect_entry(GTK_ENTRY(widget)); gnc_prefs_connect_entry(GTK_ENTRY(widget));
} }
else if (GTK_IS_HBOX(widget)) else if (GTK_IS_BOX(widget))
{ {
/* Test custom widgets are all children of a hbox */ /* Test custom widgets are all children of a hbox */
GtkWidget *widget_child; GtkWidget *widget_child;

View File

@ -65,7 +65,7 @@ static void gas_populate_list (GNCAccountSel *gas);
static void gas_new_account_click (GtkButton *b, gpointer ud); static void gas_new_account_click (GtkButton *b, gpointer ud);
static GtkHBox *parent_class; static GtkBox *parent_class;
GType GType
gnc_account_sel_get_type (void) gnc_account_sel_get_type (void)
@ -87,7 +87,7 @@ gnc_account_sel_get_type (void)
(GInstanceInitFunc) gnc_account_sel_init (GInstanceInitFunc) gnc_account_sel_init
}; };
account_sel_type = g_type_register_static (GTK_TYPE_HBOX, account_sel_type = g_type_register_static (GTK_TYPE_BOX,
"GNCAccountSel", "GNCAccountSel",
&account_sel_info, 0); &account_sel_info, 0);
} }
@ -146,6 +146,8 @@ gnc_account_sel_init (GNCAccountSel *gas)
{ {
GtkWidget *widget; GtkWidget *widget;
gtk_orientable_set_orientation (GTK_ORIENTABLE(gas), GTK_ORIENTATION_HORIZONTAL);
gas->initDone = FALSE; gas->initDone = FALSE;
gas->acctTypeFilters = FALSE; gas->acctTypeFilters = FALSE;
gas->newAccountButton = NULL; gas->newAccountButton = NULL;

View File

@ -40,7 +40,7 @@
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
gboolean initDone; gboolean initDone;
gboolean isModal; gboolean isModal;
GtkListStore *store; GtkListStore *store;
@ -59,7 +59,7 @@ typedef struct
typedef struct typedef struct
{ {
GtkHBoxClass parent_class; GtkBoxClass parent_class;
/* Signals for notification/filtering of changes */ /* Signals for notification/filtering of changes */
void (*account_sel_changed) (GNCAccountSel *gas); void (*account_sel_changed) (GNCAccountSel *gas);

View File

@ -97,7 +97,8 @@ gnc_popup_entry_init (GncPopupEntry *widget)
{ {
GtkWidget *arrow; GtkWidget *arrow;
widget->hbox = gtk_hbox_new (FALSE, 0); widget->hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (widget->hbox), FALSE);
gtk_widget_show (widget->hbox); gtk_widget_show (widget->hbox);
widget->entry = g_object_new (GTK_TYPE_ENTRY, "has_frame", FALSE, NULL); widget->entry = g_object_new (GTK_TYPE_ENTRY, "has_frame", FALSE, NULL);

View File

@ -134,7 +134,7 @@ gnc_combott_get_type (void)
(GInstanceInitFunc) gctt_init, (GInstanceInitFunc) gctt_init,
}; };
combott_type = g_type_register_static (GTK_TYPE_HBOX, combott_type = g_type_register_static (GTK_TYPE_BOX,
"GncCombott", "GncCombott",
&combott_info, 0); &combott_info, 0);
} }
@ -211,11 +211,14 @@ gctt_init (GncCombott *combott)
GncCombottPrivate *priv = GNC_COMBOTT_GET_PRIVATE (combott); GncCombottPrivate *priv = GNC_COMBOTT_GET_PRIVATE (combott);
gtk_orientable_set_orientation (GTK_ORIENTABLE(combott), GTK_ORIENTATION_HORIZONTAL);
priv->active = 0; priv->active = 0;
priv->text_col = 0; priv->text_col = 0;
priv->tip_col = 1; priv->tip_col = 1;
hbox = gtk_hbox_new(FALSE, 0); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX(hbox), FALSE);
arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT); arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_box_pack_end (GTK_BOX (hbox), arrow, FALSE, FALSE, 0); gtk_box_pack_end (GTK_BOX (hbox), arrow, FALSE, FALSE, 0);

View File

@ -46,7 +46,7 @@ typedef struct _GncCombottClass GncCombottClass;
struct _GncCombott struct _GncCombott
{ {
GtkHBox hbox; GtkBox hbox;
}; };
struct _GncCombottClass struct _GncCombottClass

View File

@ -65,7 +65,7 @@ static void gnc_date_delta_forall (GtkContainer *container,
GtkCallback callback, GtkCallback callback,
gpointer callbabck_data); gpointer callbabck_data);
static GtkHBoxClass *parent_class; static GtkBoxClass *parent_class;
/** /**
* gnc_date_delta_get_type: * gnc_date_delta_get_type:
@ -92,7 +92,7 @@ gnc_date_delta_get_type (void)
(GInstanceInitFunc) gnc_date_delta_init (GInstanceInitFunc) gnc_date_delta_init
}; };
date_delta_type = g_type_register_static (gtk_hbox_get_type (), date_delta_type = g_type_register_static (gtk_box_get_type (),
"GNCDateDelta", "GNCDateDelta",
&date_delta_info, &date_delta_info,
0); 0);
@ -159,6 +159,8 @@ gnc_date_delta_class_init (GNCDateDeltaClass *klass)
static void static void
gnc_date_delta_init (GNCDateDelta *gdd) gnc_date_delta_init (GNCDateDelta *gdd)
{ {
gtk_orientable_set_orientation (GTK_ORIENTABLE(gdd), GTK_ORIENTATION_HORIZONTAL);
gdd->value_spin = NULL; gdd->value_spin = NULL;
gdd->units_combo = NULL; gdd->units_combo = NULL;
gdd->polarity_combo = NULL; gdd->polarity_combo = NULL;

View File

@ -54,7 +54,7 @@ typedef enum
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
GtkWidget *value_spin; GtkWidget *value_spin;
GtkWidget *units_combo; GtkWidget *units_combo;
@ -68,7 +68,7 @@ typedef struct
typedef struct typedef struct
{ {
GtkHBoxClass parent_class; GtkBoxClass parent_class;
void (*value_changed) (GNCDateDelta *gdd); void (*value_changed) (GNCDateDelta *gdd);
void (*units_changed) (GNCDateDelta *gdd); void (*units_changed) (GNCDateDelta *gdd);
void (*polarity_changed) (GNCDateDelta *gdd); void (*polarity_changed) (GNCDateDelta *gdd);

View File

@ -80,7 +80,7 @@ static int date_accel_key_press(GtkWidget *widget,
gpointer data); gpointer data);
static GtkHBoxClass *parent_class; static GtkBoxClass *parent_class;
/** /**
* gnc_date_edit_get_type: * gnc_date_edit_get_type:
@ -108,7 +108,7 @@ gnc_date_edit_get_type (void)
NULL, NULL,
}; };
date_edit_type = g_type_register_static (GTK_TYPE_HBOX, date_edit_type = g_type_register_static (GTK_TYPE_BOX,
"GNCDateEdit", "GNCDateEdit",
&date_edit_info, 0); &date_edit_info, 0);
} }
@ -606,7 +606,7 @@ gnc_date_edit_class_init (GNCDateEditClass *klass)
object_class->dispose = gnc_date_edit_dispose; object_class->dispose = gnc_date_edit_dispose;
object_class->finalize = gnc_date_edit_finalize; object_class->finalize = gnc_date_edit_finalize;
parent_class = g_type_class_ref(GTK_TYPE_HBOX); parent_class = g_type_class_ref(GTK_TYPE_BOX);
date_edit_signals [TIME_CHANGED] = date_edit_signals [TIME_CHANGED] =
g_signal_new ("time_changed", g_signal_new ("time_changed",
@ -643,6 +643,8 @@ gnc_date_edit_class_init (GNCDateEditClass *klass)
static void static void
gnc_date_edit_init (GNCDateEdit *gde) gnc_date_edit_init (GNCDateEdit *gde)
{ {
gtk_orientable_set_orientation (GTK_ORIENTABLE(gde), GTK_ORIENTATION_HORIZONTAL);
gde->disposed = FALSE; gde->disposed = FALSE;
gde->popup_in_progress = FALSE; gde->popup_in_progress = FALSE;
gde->lower_hour = 7; gde->lower_hour = 7;
@ -856,7 +858,8 @@ create_children (GNCDateEdit *gde)
G_CALLBACK (gnc_date_edit_button_toggled), gde); G_CALLBACK (gnc_date_edit_button_toggled), gde);
gtk_box_pack_start (GTK_BOX (gde), gde->date_button, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (gde), gde->date_button, FALSE, FALSE, 0);
hbox = gtk_hbox_new (FALSE, 3); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_container_add (GTK_CONTAINER (gde->date_button), hbox); gtk_container_add (GTK_CONTAINER (gde->date_button), hbox);
gtk_widget_show (GTK_WIDGET(hbox)); gtk_widget_show (GTK_WIDGET(hbox));

View File

@ -57,7 +57,7 @@ typedef enum
**/ **/
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
GtkWidget *date_entry; GtkWidget *date_entry;
GtkWidget *date_button; GtkWidget *date_button;
@ -84,7 +84,7 @@ typedef struct
typedef struct typedef struct
{ {
GtkHBoxClass parent_class; GtkBoxClass parent_class;
void (*date_changed) (GNCDateEdit *gde); void (*date_changed) (GNCDateEdit *gde);
void (*time_changed) (GNCDateEdit *gde); void (*time_changed) (GNCDateEdit *gde);
} GNCDateEditClass; } GNCDateEditClass;

View File

@ -87,7 +87,7 @@ static void gnc_date_format_compute_format(GNCDateFormat *gdf);
void gnc_ui_date_format_changed_cb(GtkWidget *unused, gpointer user_data); void gnc_ui_date_format_changed_cb(GtkWidget *unused, gpointer user_data);
static GtkHBoxClass *parent_class; static GtkBoxClass *parent_class;
/** /**
* gnc_date_format_get_type: * gnc_date_format_get_type:
@ -115,7 +115,7 @@ gnc_date_format_get_type (void)
NULL, NULL,
}; };
date_format_type = g_type_register_static(GTK_TYPE_HBOX, date_format_type = g_type_register_static(GTK_TYPE_BOX,
"GNCDateFormat", "GNCDateFormat",
&date_format_info, 0); &date_format_info, 0);
} }
@ -158,6 +158,8 @@ gnc_date_format_init (GNCDateFormat *gdf)
g_return_if_fail(gdf); g_return_if_fail(gdf);
g_return_if_fail(GNC_IS_DATE_FORMAT(gdf)); g_return_if_fail(GNC_IS_DATE_FORMAT(gdf));
gtk_orientable_set_orientation (GTK_ORIENTABLE(gdf), GTK_ORIENTATION_HORIZONTAL);
/* Open up the Glade and set the signals */ /* Open up the Glade and set the signals */
builder = gtk_builder_new(); builder = gtk_builder_new();
gnc_builder_add_from_file (builder, "gnc-date-format.glade", "format-liststore"); gnc_builder_add_from_file (builder, "gnc-date-format.glade", "format-liststore");

View File

@ -40,12 +40,12 @@
**/ **/
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
} GNCDateFormat; } GNCDateFormat;
typedef struct typedef struct
{ {
GtkHBoxClass hbox_class; GtkBoxClass hbox_class;
void (*format_changed) (GNCDateFormat *gdf); void (*format_changed) (GNCDateFormat *gdf);
} GNCDateFormatClass; } GNCDateFormatClass;

View File

@ -51,7 +51,7 @@ static void gnc_general_select_class_init (GNCGeneralSelectClass *klass);
static void gnc_general_select_dispose (GObject *object); static void gnc_general_select_dispose (GObject *object);
static void gnc_general_select_finalize (GObject *object); static void gnc_general_select_finalize (GObject *object);
static GtkHBoxClass *parent_class; static GtkBoxClass *parent_class;
static guint general_select_signals[LAST_SIGNAL]; static guint general_select_signals[LAST_SIGNAL];
@ -81,7 +81,7 @@ gnc_general_select_get_type (void)
NULL, NULL,
}; };
general_select_type = g_type_register_static(GTK_TYPE_HBOX, general_select_type = g_type_register_static(GTK_TYPE_BOX,
"GNCGeneralSelect", "GNCGeneralSelect",
&general_select_info, 0); &general_select_info, 0);
} }
@ -119,7 +119,7 @@ gnc_general_select_class_init (GNCGeneralSelectClass *klass)
object_class = (GObjectClass*) klass; object_class = (GObjectClass*) klass;
parent_class = g_type_class_ref(GTK_TYPE_HBOX); parent_class = g_type_class_ref(GTK_TYPE_BOX);
general_select_signals[SELECTION_CHANGED] = general_select_signals[SELECTION_CHANGED] =
g_signal_new("changed", g_signal_new("changed",
@ -142,6 +142,8 @@ gnc_general_select_class_init (GNCGeneralSelectClass *klass)
static void static void
gnc_general_select_init (GNCGeneralSelect *gsl) gnc_general_select_init (GNCGeneralSelect *gsl)
{ {
gtk_orientable_set_orientation (GTK_ORIENTABLE(gsl), GTK_ORIENTATION_HORIZONTAL);
gsl->disposed = FALSE; gsl->disposed = FALSE;
gsl->selected_item = NULL; gsl->selected_item = NULL;
} }

View File

@ -48,7 +48,7 @@ typedef enum
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
GtkWidget *entry; /* display of selection name */ GtkWidget *entry; /* display of selection name */
GtkWidget *button; /* button for popping up selection window */ GtkWidget *button; /* button for popping up selection window */
@ -64,7 +64,7 @@ typedef struct
typedef struct typedef struct
{ {
GtkHBoxClass parent_class; GtkBoxClass parent_class;
void (*changed) (GNCGeneralSelect *edit); void (*changed) (GNCGeneralSelect *edit);
} GNCGeneralSelectClass; } GNCGeneralSelectClass;

View File

@ -2125,7 +2125,7 @@ main_window_find_tab_items (GncMainWindow *window,
page->notebook_page); page->notebook_page);
if (GTK_IS_EVENT_BOX (tab_widget)) if (GTK_IS_EVENT_BOX (tab_widget))
tab_hbox = gtk_bin_get_child(GTK_BIN(tab_widget)); tab_hbox = gtk_bin_get_child(GTK_BIN(tab_widget));
else if (GTK_IS_HBOX (tab_widget)) else if (GTK_IS_BOX (tab_widget))
tab_hbox = tab_widget; tab_hbox = tab_widget;
else else
{ {

View File

@ -526,7 +526,7 @@ gnc_period_select_get_type (void)
NULL NULL
}; };
period_select_type = g_type_register_static(GTK_TYPE_HBOX, period_select_type = g_type_register_static(GTK_TYPE_BOX,
"GncPeriodSelect", "GncPeriodSelect",
&period_select_info, 0); &period_select_info, 0);
} }
@ -613,6 +613,8 @@ gnc_period_select_init (GncPeriodSelect *period)
{ {
GncPeriodSelectPrivate *priv; GncPeriodSelectPrivate *priv;
gtk_orientable_set_orientation (GTK_ORIENTABLE(period), GTK_ORIENTATION_HORIZONTAL);
priv = GNC_PERIOD_SELECT_GET_PRIVATE(period); priv = GNC_PERIOD_SELECT_GET_PRIVATE(period);
priv->start = TRUE; priv->start = TRUE;
} }

View File

@ -44,12 +44,12 @@ G_BEGIN_DECLS
/* typedefs & structures */ /* typedefs & structures */
typedef struct typedef struct
{ {
GtkHBox hbox; GtkBox hbox;
} GncPeriodSelect; } GncPeriodSelect;
typedef struct typedef struct
{ {
GtkHBoxClass hbox; GtkBoxClass hbox;
/* Signals */ /* Signals */
void (*changed) (GncPeriodSelect *period); void (*changed) (GncPeriodSelect *period);

View File

@ -181,7 +181,7 @@ static void
gnc_recurrence_init( GncRecurrence *gr ) gnc_recurrence_init( GncRecurrence *gr )
{ {
GtkBox *vb; GtkBox *vb;
GtkHBox *hb; GtkBox *hb;
GtkWidget *w; GtkWidget *w;
GtkBuilder *builder; GtkBuilder *builder;
@ -194,7 +194,7 @@ gnc_recurrence_init( GncRecurrence *gr )
gnc_builder_add_from_file (builder, "gnc-recurrence.glade", "RecurrenceEntryVBox"); gnc_builder_add_from_file (builder, "gnc-recurrence.glade", "RecurrenceEntryVBox");
vb = GTK_BOX(gtk_builder_get_object (builder, "RecurrenceEntryVBox")); vb = GTK_BOX(gtk_builder_get_object (builder, "RecurrenceEntryVBox"));
hb = GTK_HBOX(gtk_builder_get_object (builder, "Startdate_hbox")); hb = GTK_BOX(gtk_builder_get_object (builder, "Startdate_hbox"));
w = gnc_date_edit_new (gnc_time (NULL), FALSE, FALSE); w = gnc_date_edit_new (gnc_time (NULL), FALSE, FALSE);
gr->gde_start = w; gr->gde_start = w;
gtk_box_pack_start (GTK_BOX (hb), w, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hb), w, TRUE, TRUE, 0);
@ -405,7 +405,7 @@ struct _GncRecurrenceComp
GtkScrolledWindow widget; GtkScrolledWindow widget;
GtkWidget *vbox; GtkWidget *vbox;
GtkHBox *hbox; GtkWidget *hbox;
GtkHButtonBox *hbb; GtkHButtonBox *hbb;
gint num_rec; gint num_rec;
GtkButton *buttRemove; GtkButton *buttRemove;

View File

@ -87,7 +87,8 @@ gnc_show_splash_screen (void)
frame = gtk_frame_new (NULL); frame = gtk_frame_new (NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE); gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE);
hbox = gtk_hbox_new (FALSE, 3); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
#ifdef GNUCASH_SCM #ifdef GNUCASH_SCM
/* Development version */ /* Development version */
/* Translators: 1st %s is the GnuCash version (eg 2.4.11); /* Translators: 1st %s is the GnuCash version (eg 2.4.11);

View File

@ -530,7 +530,9 @@ gnc_main_window_summary_new (void)
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_STRING); G_TYPE_STRING);
retval->hbox = gtk_hbox_new (FALSE, 5); retval->hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (retval->hbox), FALSE);
retval->totals_combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (retval->datamodel)); retval->totals_combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (retval->datamodel));
g_object_unref (retval->datamodel); g_object_unref (retval->datamodel);

View File

@ -244,7 +244,7 @@ typedef struct LoanAssistantData_
/* opt = options */ /* opt = options */
GtkBox *optVBox; GtkBox *optVBox;
GtkCheckButton *optEscrowCb; GtkCheckButton *optEscrowCb;
GtkHBox *optEscrowHBox; GtkBox *optEscrowHBox;
GNCAccountSel *optEscrowGAS; GNCAccountSel *optEscrowGAS;
/* rep = repayment */ /* rep = repayment */
@ -501,7 +501,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd )
{ {
ldd->optVBox = GTK_BOX(gtk_builder_get_object(builder, "loan_options_page")); ldd->optVBox = GTK_BOX(gtk_builder_get_object(builder, "loan_options_page"));
ldd->optEscrowCb = GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "opt_escrow_cb")); ldd->optEscrowCb = GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "opt_escrow_cb"));
ldd->optEscrowHBox = GTK_HBOX(gtk_builder_get_object(builder, "opt_escrow_hbox")); ldd->optEscrowHBox = GTK_BOX(gtk_builder_get_object(builder, "opt_escrow_hbox"));
} }
/* Payment Page */ /* Payment Page */
{ {
@ -797,16 +797,16 @@ gnc_loan_assistant_create( LoanAssistantData *ldd )
G_CALLBACK(loan_pay_freq_toggle_cb), ldd ); G_CALLBACK(loan_pay_freq_toggle_cb), ldd );
{ {
GtkHBox *hbox; GtkBox *hbox;
hbox = GTK_HBOX(gtk_builder_get_object(builder, "type_freq_hbox")); hbox = GTK_BOX(gtk_builder_get_object(builder, "type_freq_hbox"));
ldd->prmVarGncFreq = GNC_FREQUENCY(gnc_frequency_new( NULL, NULL )); ldd->prmVarGncFreq = GNC_FREQUENCY(gnc_frequency_new( NULL, NULL ));
gtk_box_pack_start( GTK_BOX(hbox) , GTK_WIDGET(ldd->prmVarGncFreq), TRUE, FALSE, 0 ); gtk_box_pack_start( GTK_BOX(hbox) , GTK_WIDGET(ldd->prmVarGncFreq), TRUE, FALSE, 0 );
g_signal_connect (ldd->prmVarGncFreq, "changed", g_signal_connect (ldd->prmVarGncFreq, "changed",
G_CALLBACK (loan_info_page_valid_cb), ldd); G_CALLBACK (loan_info_page_valid_cb), ldd);
} }
{ {
GtkHBox *hbox; GtkBox *hbox;
hbox = GTK_HBOX(gtk_builder_get_object(builder, "freq_frame_hbox")); hbox = GTK_BOX(gtk_builder_get_object(builder, "freq_frame_hbox"));
ldd->repGncFreq = GNC_FREQUENCY(gnc_frequency_new( NULL, NULL )); ldd->repGncFreq = GNC_FREQUENCY(gnc_frequency_new( NULL, NULL ));
gtk_box_pack_start( GTK_BOX(hbox) , GTK_WIDGET(ldd->repGncFreq), TRUE, FALSE, 0 ); gtk_box_pack_start( GTK_BOX(hbox) , GTK_WIDGET(ldd->repGncFreq), TRUE, FALSE, 0 );
g_signal_connect (ldd->repGncFreq, "changed", g_signal_connect (ldd->repGncFreq, "changed",

View File

@ -1986,7 +1986,8 @@ add_summary_label (GtkWidget *summarybar, const char *label_str)
GtkWidget *hbox; GtkWidget *hbox;
GtkWidget *label; GtkWidget *label;
hbox = gtk_hbox_new(FALSE, 2); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start( GTK_BOX(summarybar), hbox, FALSE, FALSE, 5 ); gtk_box_pack_start( GTK_BOX(summarybar), hbox, FALSE, FALSE, 5 );
label = gtk_label_new( label_str ); label = gtk_label_new( label_str );
@ -2019,7 +2020,8 @@ gsr_create_summary_bar( GNCSplitReg *gsr )
return NULL; return NULL;
} }
summarybar = gtk_hbox_new (FALSE, 4); summarybar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_box_set_homogeneous (GTK_BOX (summarybar), FALSE);
if (!xaccAccountIsPriced(gnc_ledger_display_leader(gsr->ledger))) if (!xaccAccountIsPriced(gnc_ledger_display_leader(gsr->ledger)))
{ {

View File

@ -279,7 +279,8 @@ gsr2_create_table (GNCSplitReg2 *gsr)
"show-column-menu", FALSE, NULL); "show-column-menu", FALSE, NULL);
// Create a hbox for treeview and scrollbar. // Create a hbox for treeview and scrollbar.
hbox = gtk_hbox_new (FALSE, 0); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_widget_show (hbox); gtk_widget_show (hbox);
scrolled_window = gtk_scrolled_window_new (NULL, NULL); scrolled_window = gtk_scrolled_window_new (NULL, NULL);
@ -769,7 +770,8 @@ add_summary_label (GtkWidget *summarybar, const char *label_str)
GtkWidget *hbox; GtkWidget *hbox;
GtkWidget *label; GtkWidget *label;
hbox = gtk_hbox_new (FALSE, 2); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start (GTK_BOX (summarybar), hbox, FALSE, FALSE, 5); gtk_box_pack_start (GTK_BOX (summarybar), hbox, FALSE, FALSE, 5);
label = gtk_label_new (label_str); label = gtk_label_new (label_str);
@ -802,7 +804,8 @@ gnc_split_reg2_create_summary_bar (GNCSplitReg2 *gsr)
return NULL; return NULL;
} }
summarybar = gtk_hbox_new (FALSE, 4); summarybar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_box_set_homogeneous (GTK_BOX (summarybar), FALSE);
if (!xaccAccountIsPriced(gnc_ledger_display2_leader(gsr->ledger))) if (!xaccAccountIsPriced(gnc_ledger_display2_leader(gsr->ledger)))
{ {

View File

@ -1175,7 +1175,8 @@ gnc_reconcile_window_create_view_box(Account *account,
gtk_container_add(GTK_CONTAINER(scrollWin), view); gtk_container_add(GTK_CONTAINER(scrollWin), view);
gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
hbox = gtk_hbox_new(FALSE, 5); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new(_("Total:")); label = gtk_label_new(_("Total:"));
@ -1820,7 +1821,8 @@ recnWindowWithBalance (GtkWidget *parent, Account *account,
GtkWidget *totals_hbox, *frame, *title, *value; GtkWidget *totals_hbox, *frame, *title, *value;
/* lower horizontal bar below reconcile lists */ /* lower horizontal bar below reconcile lists */
hbox = gtk_hbox_new(FALSE, 5); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start(GTK_BOX(main_area), hbox, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(main_area), hbox, FALSE, FALSE, 0);
/* frame to hold totals */ /* frame to hold totals */
@ -1828,7 +1830,8 @@ recnWindowWithBalance (GtkWidget *parent, Account *account,
gtk_box_pack_end(GTK_BOX(hbox), frame, FALSE, FALSE, 0); gtk_box_pack_end(GTK_BOX(hbox), frame, FALSE, FALSE, 0);
/* hbox to hold title/value vboxes */ /* hbox to hold title/value vboxes */
totals_hbox = gtk_hbox_new(FALSE, 3); totals_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (totals_hbox), FALSE);
gtk_container_add(GTK_CONTAINER(frame), totals_hbox); gtk_container_add(GTK_CONTAINER(frame), totals_hbox);
gtk_container_set_border_width(GTK_CONTAINER(totals_hbox), 5); gtk_container_set_border_width(GTK_CONTAINER(totals_hbox), 5);

View File

@ -1138,7 +1138,8 @@ gnc_reconcile_window_create_view_box (Account *account,
gtk_container_add (GTK_CONTAINER (scrollWin), view); gtk_container_add (GTK_CONTAINER (scrollWin), view);
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
hbox = gtk_hbox_new (FALSE, 5); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_("Total:")); label = gtk_label_new (_("Total:"));
@ -1780,7 +1781,8 @@ recnWindow2WithBalance (GtkWidget *parent, Account *account,
GtkWidget *totals_hbox, *frame, *title, *value; GtkWidget *totals_hbox, *frame, *title, *value;
/* lower horizontal bar below reconcile lists */ /* lower horizontal bar below reconcile lists */
hbox = gtk_hbox_new (FALSE, 5); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_box_pack_start (GTK_BOX (main_area), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (main_area), hbox, FALSE, FALSE, 0);
/* frame to hold totals */ /* frame to hold totals */
@ -1788,7 +1790,8 @@ recnWindow2WithBalance (GtkWidget *parent, Account *account,
gtk_box_pack_end (GTK_BOX (hbox), frame, FALSE, FALSE, 0); gtk_box_pack_end (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
/* hbox to hold title/value vboxes */ /* hbox to hold title/value vboxes */
totals_hbox = gtk_hbox_new (FALSE, 3); totals_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_set_homogeneous (GTK_BOX (totals_hbox), FALSE);
gtk_container_add (GTK_CONTAINER (frame), totals_hbox); gtk_container_add (GTK_CONTAINER (frame), totals_hbox);
gtk_container_set_border_width (GTK_CONTAINER (totals_hbox), 5); gtk_container_set_border_width (GTK_CONTAINER (totals_hbox), 5);

View File

@ -921,7 +921,8 @@ csv_export_assistant_create (CsvExportInfo *info)
button = gtk_button_new_from_stock (GTK_STOCK_OK); button = gtk_button_new_from_stock (GTK_STOCK_OK);
gtk_widget_set_size_request (button, 100, -1); gtk_widget_set_size_request (button, 100, -1);
gtk_widget_show (button); gtk_widget_show (button);
h_box = gtk_hbox_new (TRUE, 0); h_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (h_box), TRUE);
gtk_box_pack_start(GTK_BOX(h_box), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(h_box), button, FALSE, FALSE, 0);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER(info->file_chooser), h_box); gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER(info->file_chooser), h_box);
g_signal_connect (G_OBJECT(button), "clicked", g_signal_connect (G_OBJECT(button), "clicked",

View File

@ -610,7 +610,8 @@ csv_import_assistant_create (CsvImportInfo *info)
button = gtk_button_new_from_stock (GTK_STOCK_OK); button = gtk_button_new_from_stock (GTK_STOCK_OK);
gtk_widget_set_size_request (button, 100, -1); gtk_widget_set_size_request (button, 100, -1);
gtk_widget_show (button); gtk_widget_show (button);
h_box = gtk_hbox_new (TRUE, 0); h_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (h_box), TRUE);
gtk_box_pack_start (GTK_BOX(h_box), button, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX(h_box), button, FALSE, FALSE, 0);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER(info->file_chooser), h_box); gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER(info->file_chooser), h_box);
g_signal_connect (G_OBJECT(button), "clicked", g_signal_connect (G_OBJECT(button), "clicked",

View File

@ -423,7 +423,9 @@ CsvImpTransAssist::CsvImpTransAssist ()
auto button = gtk_button_new_from_stock (GTK_STOCK_OK); auto button = gtk_button_new_from_stock (GTK_STOCK_OK);
gtk_widget_set_size_request (button, 100, -1); gtk_widget_set_size_request (button, 100, -1);
gtk_widget_show (button); gtk_widget_show (button);
auto h_box = gtk_hbox_new (TRUE, 0); auto h_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (h_box), TRUE);
gtk_box_pack_start (GTK_BOX(h_box), button, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX(h_box), button, FALSE, FALSE, 0);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER(file_chooser), h_box); gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER(file_chooser), h_box);
g_signal_connect (G_OBJECT(button), "clicked", g_signal_connect (G_OBJECT(button), "clicked",

View File

@ -443,7 +443,10 @@ AccountPickerDialog* gnc_import_account_assist_setup(GtkWidget *parent)
/* Add the New Account Button */ /* Add the New Account Button */
picker->new_button = gtk_button_new_with_mnemonic ("_New Account"); picker->new_button = gtk_button_new_with_mnemonic ("_New Account");
h_box = gtk_hbox_new(TRUE, 0);
h_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (h_box), TRUE);
gtk_box_pack_start(GTK_BOX(h_box), picker->new_button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(h_box), picker->new_button, FALSE, FALSE, 0);
gtk_box_pack_start( GTK_BOX(box), h_box, FALSE, FALSE, 6); gtk_box_pack_start( GTK_BOX(box), h_box, FALSE, FALSE, 6);
gtk_button_set_use_stock (GTK_BUTTON(picker->new_button), TRUE); gtk_button_set_use_stock (GTK_BUTTON(picker->new_button), TRUE);