From ed3ec54e93472b6c9d630e56dcb0c5cc9eaaeadd Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 8 May 2007 16:32:30 +0000 Subject: [PATCH] use GtkWindow::transient-for just for the fun of using another GTK+ 2.10 2007-05-08 Sven Neumann * app/widgets/gimptexteditor.c: use GtkWindow::transient-for just for the fun of using another GTK+ 2.10 feature. svn path=/trunk/; revision=22454 --- ChangeLog | 5 +++++ app/widgets/gimptexteditor.c | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4921a2efd8..af2ef4f9ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-08 Sven Neumann + + * app/widgets/gimptexteditor.c: use GtkWindow::transient-for just + for the fun of using another GTK+ 2.10 feature. + 2007-05-07 Sven Neumann * libgimpbase/gimpbaseenums.[ch] (GimpCloneType): changed strings. diff --git a/app/widgets/gimptexteditor.c b/app/widgets/gimptexteditor.c index c127d578ca..190cba97f9 100644 --- a/app/widgets/gimptexteditor.c +++ b/app/widgets/gimptexteditor.c @@ -140,10 +140,11 @@ gimp_text_editor_new (const gchar *title, g_return_val_if_fail (GIMP_IS_MENU_FACTORY (menu_factory), NULL); editor = g_object_new (GIMP_TYPE_TEXT_EDITOR, - "title", title, - "role", "gimp-text-editor", - "help-func", gimp_standard_help_func, - "help-id", GIMP_HELP_TEXT_EDITOR_DIALOG, + "title", title, + "role", "gimp-text-editor", + "transient-for", parent, + "help-func", gimp_standard_help_func, + "help-id", GIMP_HELP_TEXT_EDITOR_DIALOG, NULL); gtk_dialog_add_button (GTK_DIALOG (editor), @@ -153,9 +154,6 @@ gimp_text_editor_new (const gchar *title, G_CALLBACK (gtk_widget_destroy), NULL); - if (parent) - gtk_window_set_transient_for (GTK_WINDOW (editor), parent); - editor->ui_manager = gimp_menu_factory_manager_new (menu_factory, "", editor, FALSE);