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
@ -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>
|
2007-09-12 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/base/tile.c (tile_data_pointer): use the offsets module
|
* app/base/tile.c (tile_data_pointer): use the offsets module
|
||||||
|
@ -571,12 +571,15 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
|
|||||||
GtkTreeSelection *sel;
|
GtkTreeSelection *sel;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
GtkTreePath *path;
|
GtkTreePath *path;
|
||||||
|
GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT;
|
||||||
GimpUnit unit;
|
GimpUnit unit;
|
||||||
gint num_units;
|
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",
|
menu->selection = gimp_dialog_new (_("Unit Selection"), "gimp-unit-selection",
|
||||||
parent,
|
parent, flags,
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
|
||||||
gimp_standard_help_func,
|
gimp_standard_help_func,
|
||||||
"gimp-unit-dialog",
|
"gimp-unit-dialog",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user