mirror of https://github.com/GNOME/gimp.git
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:
parent
acbe229427
commit
a76c9305bb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue