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.
This commit is contained in:
Jehan 2019-08-05 15:12:16 +02:00
parent acbe229427
commit a76c9305bb
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}