if the parent toplevel is modal, make the unit selection dialog modal too.
2007-09-12 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpunitmenu.c (gimp_unit_menu_create_selection): if the parent toplevel is modal, make the unit selection dialog modal too. Fixes bug #389358. svn path=/trunk/; revision=23520
This commit is contained in:

committed by
Michael Natterer

parent
ebbb44d063
commit
71443ad04a
@ -571,12 +571,15 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
|
||||
GtkTreeSelection *sel;
|
||||
GtkTreeIter iter;
|
||||
GtkTreePath *path;
|
||||
GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT;
|
||||
GimpUnit unit;
|
||||
gint num_units;
|
||||
|
||||
if (gtk_window_get_modal (GTK_WINDOW (parent)))
|
||||
flags |= GTK_DIALOG_MODAL;
|
||||
|
||||
menu->selection = gimp_dialog_new (_("Unit Selection"), "gimp-unit-selection",
|
||||
parent,
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
parent, flags,
|
||||
gimp_standard_help_func,
|
||||
"gimp-unit-dialog",
|
||||
|
||||
|
Reference in New Issue
Block a user