[gimp] libgimp: run the first search of GimpProcBrowserDialog in init().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: run the first search of GimpProcBrowserDialog in init().
- Date: Mon, 5 Aug 2019 13:16:10 +0000 (UTC)
commit a76c9305bb73459b234b76847786ef3da1deb712
Author: Jehan <jehan girinstud io>
Date: Mon Aug 5 15:12:16 2019 +0200
libgimp: run the first search of GimpProcBrowserDialog in init().
Otherwise, if run in gimp_proc_browser_dialog_new(), this initial search
does not happen when constructing with g_object_new(). This is
especially bad for non-C plug-ins as gimp_proc_browser_dialog_new() is
not introspectable because of variable arguments.
libgimp/gimpprocbrowserdialog.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgimp/gimpprocbrowserdialog.c b/libgimp/gimpprocbrowserdialog.c
index 10757ba877..7bbfcd1422 100644
--- a/libgimp/gimpprocbrowserdialog.c
+++ b/libgimp/gimpprocbrowserdialog.c
@@ -221,6 +221,10 @@ gimp_proc_browser_dialog_init (GimpProcBrowserDialog *dialog)
parent = gtk_widget_get_parent (parent);
gtk_widget_set_size_request (parent, DBL_WIDTH - DBL_LIST_WIDTH, -1);
+
+ /* first search (all procedures) */
+ browser_search (GIMP_BROWSER (dialog->priv->browser),
+ "", SEARCH_TYPE_ALL, dialog);
}
@@ -269,10 +273,6 @@ gimp_proc_browser_dialog_new (const gchar *title,
va_end (args);
- /* first search (all procedures) */
- browser_search (GIMP_BROWSER (dialog->priv->browser),
- "", SEARCH_TYPE_ALL, dialog);
-
return GTK_WIDGET (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]