truncate the passed dialog identifier at the first '|'. Fixes creating
2004-05-03 Michael Natterer <mitch@gimp.org> * app/actions/dockable-commands.c (dockable_add_tab_cmd_callback): truncate the passed dialog identifier at the first '|'. Fixes creating brushes, paterns etc. dialogs from the dockables' "Add Tab" menu.
This commit is contained in:
parent
ea5e1a72ea
commit
80cc1c0ef4
2 changed files with 19 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2004-05-03 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/actions/dockable-commands.c (dockable_add_tab_cmd_callback):
|
||||
truncate the passed dialog identifier at the first '|'. Fixes
|
||||
creating brushes, paterns etc. dialogs from the dockables'
|
||||
"Add Tab" menu.
|
||||
|
||||
2004-05-02 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimpframe.c (gimp_frame_size_request): take the
|
||||
|
|
|
|||
|
|
@ -50,11 +50,22 @@ dockable_add_tab_cmd_callback (GtkAction *action,
|
|||
if (value)
|
||||
{
|
||||
GtkWidget *dockable;
|
||||
gchar *identifier;
|
||||
gchar *p;
|
||||
|
||||
identifier = g_strdup (value);
|
||||
|
||||
p = strchr (identifier, '|');
|
||||
|
||||
if (p)
|
||||
*p = '\0';
|
||||
|
||||
dockable =
|
||||
gimp_dialog_factory_dockable_new (dockbook->dock->dialog_factory,
|
||||
dockbook->dock,
|
||||
value, -1);
|
||||
identifier, -1);
|
||||
|
||||
g_free (identifier);
|
||||
|
||||
/* Maybe gimp_dialog_factory_dockable_new() returned an already
|
||||
* existing singleton dockable, so check if it already is
|
||||
|
|
|
|||
Loading…
Reference in a new issue