mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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;
|
||||
|
||||
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);
|
||||
g_signal_handlers_unblock_by_func (chooser->button,
|
||||
G_CALLBACK (gimp_file_chooser_button_selection_changed),
|
||||
chooser);
|
||||
g_clear_object (&file);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue