diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-04-30 23:44:14 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-04-30 23:44:14 +0000 |
commit | 087fd22c506799b896b39239664ea0aa41ba2639 (patch) | |
tree | c0c3a8776f66de37826aa8abb0c0ccba7f93e6b9 /tests/prop-editor.c | |
parent | 6aa88ee1f4294cf86ced7556a55780a23155bee7 (diff) | |
download | gtk+-087fd22c506799b896b39239664ea0aa41ba2639.tar.gz |
Make it work, even if the window is already realized or mapped.
Tue Apr 30 18:42:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_set_screen): Make it
work, even if the window is already realized or
mapped.
* tests/testgtk.c: Erwann's multihead changes, slightly
dumbed down. (Removed logic for pulling windows onto
the current screen, people can click twice on the demo
to destroy and create again.)
* tests/prop-editor.c: Set the screen on the property
editor if the edited object is a widget.
Diffstat (limited to 'tests/prop-editor.c')
-rw-r--r-- | tests/prop-editor.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/prop-editor.c b/tests/prop-editor.c index 7b86a2a870..7da76d5143 100644 --- a/tests/prop-editor.c +++ b/tests/prop-editor.c @@ -735,7 +735,8 @@ properties_from_type (GObject *object, /* Pass zero for type if you want all properties */ GtkWidget* -create_prop_editor (GObject *object, GType type) +create_prop_editor (GObject *object, + GType type) { GtkWidget *win; GtkWidget *notebook; @@ -751,7 +752,10 @@ create_prop_editor (GObject *object, GType type) } win = gtk_window_new (GTK_WINDOW_TOPLEVEL); - + if (GTK_IS_WIDGET (object)) + gtk_window_set_screen (GTK_WINDOW (win), + gtk_widget_get_screen (GTK_WIDGET (object))); + tips = gtk_tooltips_new (); gtk_signal_connect_object (GTK_OBJECT (win), "destroy", GTK_SIGNAL_FUNC (gtk_object_destroy), GTK_OBJECT (tips)); |