mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add a label to the budget selection combobox. Bug#334501
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13686 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7ef1d30ecd
commit
e274670ddc
@ -2126,6 +2126,13 @@ gnc_option_set_ui_widget_budget (GNCOption *option, GtkBox *page_box,
|
||||
GtkWidget **enclosing, gboolean *packed)
|
||||
{
|
||||
GtkWidget *value;
|
||||
GtkWidget *label;
|
||||
gchar *colon_name;
|
||||
|
||||
colon_name = g_strconcat(name, ":", NULL);
|
||||
label = gtk_label_new(colon_name);
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
|
||||
g_free(colon_name);
|
||||
|
||||
*enclosing = gtk_hbox_new(FALSE, 5);
|
||||
|
||||
@ -2138,6 +2145,7 @@ gnc_option_set_ui_widget_budget (GNCOption *option, GtkBox *page_box,
|
||||
g_signal_connect(G_OBJECT(value), "changed",
|
||||
G_CALLBACK(gnc_option_changed_widget_cb), option);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(*enclosing), label, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start(GTK_BOX(*enclosing), value, FALSE, FALSE, 0);
|
||||
gtk_widget_show_all(*enclosing);
|
||||
return value;
|
||||
|
Loading…
Reference in New Issue
Block a user