mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Change register GtkHbox widgets
Change all GtkHBox widgets to GtkBox with orientation HORIZONTAL
This commit is contained in:
parent
409e43715a
commit
9cefa509c7
@ -66,6 +66,7 @@ gnc_date_picker_get_date (GNCDatePicker *date_picker,
|
||||
static void
|
||||
gnc_date_picker_init (GNCDatePicker *date_picker)
|
||||
{
|
||||
gtk_orientable_set_orientation (GTK_ORIENTABLE(date_picker), GTK_ORIENTATION_HORIZONTAL);
|
||||
date_picker->calendar = NULL;
|
||||
}
|
||||
|
||||
@ -167,7 +168,7 @@ gnc_date_picker_get_type (void)
|
||||
};
|
||||
|
||||
gnc_date_picker_type =
|
||||
g_type_register_static (GTK_TYPE_HBOX,
|
||||
g_type_register_static (GTK_TYPE_BOX,
|
||||
"GNCDatePicker",
|
||||
&type_info, 0);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkHBox hbox;
|
||||
GtkBox hbox;
|
||||
|
||||
GtkCalendar *calendar;
|
||||
} GNCDatePicker;
|
||||
@ -59,7 +59,7 @@ void gnc_date_picker_get_date (GNCDatePicker *date_picker,
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkHBoxClass parent_class;
|
||||
GtkBoxClass parent_class;
|
||||
|
||||
void (*date_selected) (GNCDatePicker *date_picker);
|
||||
|
||||
|
@ -522,7 +522,9 @@ gnucash_register_create_widget (Table *table)
|
||||
* hierarchy so they can be realized. Stick them in a box
|
||||
* underneath the register, but don't show the box to the
|
||||
* user. */
|
||||
box = gtk_hbox_new(FALSE, 0);
|
||||
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
|
||||
|
||||
gtk_widget_set_no_show_all(GTK_WIDGET(box), TRUE);
|
||||
gtk_box_pack_start(GTK_BOX(box),
|
||||
GNUCASH_SHEET(sheet)->header_color, TRUE, TRUE, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user