[cheese] window: set the about dialog transient and modal
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] window: set the about dialog transient and modal
- Date: Tue, 29 Mar 2011 13:23:23 +0000 (UTC)
commit 85754c6deb1bb72267db70378175aa26cc6dafd9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Mar 28 16:06:32 2011 -0400
window: set the about dialog transient and modal
So that mutter can apply the GNOME 3 modal dialog effect to it.
https://bugzilla.gnome.org/show_bug.cgi?id=646007
src/cheese-window.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 797be80..2822964 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -370,6 +370,8 @@ public class Cheese.MainWindow : Gtk.Window
{
Gtk.AboutDialog about_dialog;
about_dialog = (Gtk.AboutDialog)gtk_builder.get_object ("aboutdialog");
+ about_dialog.set_transient_for (this);
+ about_dialog.set_modal (true);
about_dialog.version = Config.VERSION;
about_dialog.run ();
about_dialog.hide ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]