diff options
author | Havoc Pennington <hp@pobox.com> | 2002-10-18 06:05:09 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-10-18 06:05:09 +0000 |
commit | 370982b812ff7d253d0ed175f8b5fb90d974ea9f (patch) | |
tree | 6ea1ad6ae4e42b2eb78890e76c88a4a75fa82bb8 /src/tools | |
parent | 5c5de1c6b32659d230f9e7d28795429107858d81 (diff) | |
download | mutter-370982b812ff7d253d0ed175f8b5fb90d974ea9f.tar.gz |
replace the old apply_constraints with wacky new approach involving
2002-10-18 Havoc Pennington <hp@pobox.com>
* src/stack.c (constrain_stacking): replace the old
apply_constraints with wacky new approach involving graphing all
the constraints then walking the graph. Fixes #94876 and probably
other stacking bugs as well, thanks to Arvind for tracking down
the issue.
(compute_layer): add FIXME and reference to bug #96140
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/metacity-window-demo.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/tools/metacity-window-demo.c b/src/tools/metacity-window-demo.c index 0102fbeca..215ab6d00 100644 --- a/src/tools/metacity-window-demo.c +++ b/src/tools/metacity-window-demo.c @@ -227,11 +227,12 @@ make_dialog (GtkWidget *parent, GtkWidget *dialog; char *str; - dialog = gtk_message_dialog_new (GTK_WINDOW (parent), + dialog = gtk_message_dialog_new (parent ? GTK_WINDOW (parent) : NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, - "Here is a dialog %d", + parent ? "Here is a dialog %d" : + "Here is a dialog %d with no transient parent", depth); str = g_strdup_printf ("%d dialog", depth); @@ -306,21 +307,7 @@ no_parent_dialog_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) { - GtkWidget *dialog; - - dialog = gtk_message_dialog_new (NULL, - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_INFO, - GTK_BUTTONS_CLOSE, - "Here is a dialog with no transient parent"); - - /* Close dialog on user response */ - g_signal_connect (G_OBJECT (dialog), - "response", - G_CALLBACK (gtk_widget_destroy), - NULL); - - gtk_widget_show (dialog); + make_dialog (NULL, 1); } static void |