use the toplevel widget as the dialog's parent.

2006-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpunitmenu.c: use the toplevel widget as the
	dialog's parent.
This commit is contained in:
Sven Neumann
2006-12-28 19:09:57 +00:00
committed by Sven Neumann
parent 5a56ca0795
commit 311e21dfa9
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
2006-12-28 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpunitmenu.c: minor cleanup.
* libgimpwidgets/gimpunitmenu.c: use the toplevel widget as the
dialog's parent.
2006-12-28 Sven Neumann <sven@gimp.org>

View File

@ -564,6 +564,7 @@ gimp_unit_menu_selection_row_activated_callback (GtkTreeView *tv,
static void
gimp_unit_menu_create_selection (GimpUnitMenu *menu)
{
GtkWidget *parent = gtk_widget_get_toplevel (GTK_WIDGET (menu));
GtkWidget *vbox;
GtkWidget *scrolled_win;
GtkListStore *list;
@ -574,7 +575,7 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
gint num_units;
menu->selection = gimp_dialog_new (_("Unit Selection"), "gimp-unit-selection",
GTK_WIDGET (menu),
parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
gimp_standard_help_func,
"gimp-unit-dialog",