use GtkWindow::transient-for just for the fun of using another GTK+ 2.10

2007-05-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptexteditor.c: use GtkWindow::transient-for just
	for the fun of using another GTK+ 2.10 feature.

svn path=/trunk/; revision=22454
This commit is contained in:
Sven Neumann 2007-05-08 16:32:30 +00:00 committed by Sven Neumann
parent 123a170acf
commit ed3ec54e93
2 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2007-05-08 Sven Neumann <sven@gimp.org>
* app/widgets/gimptexteditor.c: use GtkWindow::transient-for just
for the fun of using another GTK+ 2.10 feature.
2007-05-07 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpbaseenums.[ch] (GimpCloneType): changed strings.

View File

@ -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,
"<TextEditor>",
editor, FALSE);