mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix GtkLabel error for autoclear status_label
Move setting up the callback that clears the status_label till after setting up the status_label.
This commit is contained in:
parent
f3ba84921b
commit
5df7949a87
@ -212,9 +212,6 @@ autoClearWindow (GtkWidget *parent, Account *account)
|
||||
g_signal_connect(GTK_WIDGET(data->end_value), "activate",
|
||||
G_CALLBACK(gnc_autoclear_window_ok_cb), data);
|
||||
|
||||
g_signal_connect (GTK_WIDGET(data->end_value), "changed",
|
||||
G_CALLBACK(clear_status_label_cb), data);
|
||||
|
||||
box = GTK_BOX(gtk_builder_get_object (builder, "end_value_box"));
|
||||
gtk_box_pack_start(box, GTK_WIDGET(data->end_value), TRUE, TRUE, 0);
|
||||
|
||||
@ -231,6 +228,9 @@ autoClearWindow (GtkWidget *parent, Account *account)
|
||||
|
||||
data->status_label = GTK_LABEL(gtk_builder_get_object (builder, "status_label"));
|
||||
|
||||
g_signal_connect (GTK_WIDGET(data->end_value), "changed",
|
||||
G_CALLBACK(clear_status_label_cb), data);
|
||||
|
||||
if (parent != NULL)
|
||||
gtk_window_set_transient_for (GTK_WINDOW (data->window), GTK_WINDOW (parent));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user