[gnome-control-center] Make the fingerprint dialog play nice with gnome-shell



commit d711c58e702d61aadc04fe1bc3f149f469ef4956
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 21 15:57:12 2011 -0500

    Make the fingerprint dialog play nice with gnome-shell
    
    It needs some convincing to let itself be attached...

 panels/user-accounts/um-fingerprint-dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c
index 5df7ad7..cfab2ed 100644
--- a/panels/user-accounts/um-fingerprint-dialog.c
+++ b/panels/user-accounts/um-fingerprint-dialog.c
@@ -588,7 +588,8 @@ enroll_fingerprints (GtkWindow *parent,
         gtk_window_set_title (GTK_WINDOW (ass), _("Enable Fingerprint Login"));
         gtk_window_set_transient_for (GTK_WINDOW (ass), parent);
         gtk_window_set_modal (GTK_WINDOW (ass), TRUE);
-        gtk_window_set_position (GTK_WINDOW (ass), GTK_WIN_POS_CENTER_ON_PARENT);
+        gtk_window_set_resizable (GTK_WINDOW (ass), FALSE);
+        gtk_window_set_type_hint (GTK_WINDOW (ass), GDK_WINDOW_TYPE_HINT_DIALOG);
 
         gtk_widget_realize (ass);
         style = gtk_widget_get_style (ass);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]