mirror of https://github.com/GNOME/gimp.git
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:
parent
ebbb44d063
commit
71443ad04a
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
||||
2007-09-12 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/tile.c (tile_data_pointer): use the offsets module
|
||||
|
|
|
@ -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",
|
||||
|
||||
|
|
Loading…
Reference in New Issue