libgimp: GimpFileChooser: fix #12847 inf loop in signal handler
This commit is contained in:
parent
5ea45737e5
commit
cdf7a58dd1
1 changed files with 6 additions and 0 deletions
|
|
@ -659,7 +659,13 @@ gimp_file_chooser_button_selection_changed (GtkFileChooser *widget,
|
||||||
GFile *file;
|
GFile *file;
|
||||||
|
|
||||||
file = gtk_file_chooser_get_file (widget);
|
file = gtk_file_chooser_get_file (widget);
|
||||||
|
g_signal_handlers_block_by_func (chooser->button,
|
||||||
|
G_CALLBACK (gimp_file_chooser_button_selection_changed),
|
||||||
|
chooser);
|
||||||
gimp_file_chooser_set_file (chooser, file);
|
gimp_file_chooser_set_file (chooser, file);
|
||||||
|
g_signal_handlers_unblock_by_func (chooser->button,
|
||||||
|
G_CALLBACK (gimp_file_chooser_button_selection_changed),
|
||||||
|
chooser);
|
||||||
g_clear_object (&file);
|
g_clear_object (&file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue