[accounts-dialog/control-center-panel: 5/15] Use standard icon names



commit 6f79fb32a2c201ca44e1dd2635b8a0aa2736d32d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 12 23:37:48 2010 -0400

    Use standard icon names
    
    stock_lock is now known as security-medium.

 src/um-user-panel.c |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/src/um-user-panel.c b/src/um-user-panel.c
index 4a1ef3b..c9e1431 100644
--- a/src/um-user-panel.c
+++ b/src/um-user-panel.c
@@ -1234,7 +1234,7 @@ lockbutton_changed (PolkitLockButton *button,
                 setup_tooltip_with_embedded_icon (widget,
                                                   _("To create a user,\nclick the * icon first"),
                                                   "*",
-                                                  "stock_lock");
+                                                  "security-medium");
         }
 
         widget = get_widget (d, "delete-user-button");
@@ -1246,7 +1246,7 @@ lockbutton_changed (PolkitLockButton *button,
                 setup_tooltip_with_embedded_icon (widget,
                                                   _("To delete the selected user,\nclick the * icon first"),
                                                   "*",
-                                                  "stock_lock");
+                                                  "security-medium");
         }
 
         if (is_authorized) {
@@ -1455,7 +1455,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To make changes,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1463,7 +1463,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To make changes,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1479,7 +1479,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To change the account type,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1492,7 +1492,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To make changes,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1503,7 +1503,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To make changes,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1518,7 +1518,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To make changes,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1535,7 +1535,7 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To make changes,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         g_signal_connect (button, "button-release-event",
                            G_CALLBACK (show_tooltip_now), NULL);
 
@@ -1563,12 +1563,12 @@ setup_main_window (UmUserPanelPrivate *d)
         setup_tooltip_with_embedded_icon (button,
                                           _("To create a user,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
         button = get_widget (d, "delete-user-button");
         setup_tooltip_with_embedded_icon (button,
                                           _("To delete the selected user,\nclick the * icon first"),
                                           "*",
-                                          "stock_lock");
+                                          "security-medium");
 }
 
 static void
@@ -1590,6 +1590,7 @@ um_user_panel_init (UmUserPanel *self)
 
         d->builder = gtk_builder_new ();
         d->um = um_user_manager_ref_default ();
+        d->authority = polkit_authority_get ();
 
         filename = UIDIR "/user-accounts-dialog.ui";
         if (!g_file_test (filename, G_FILE_TEST_EXISTS))
@@ -1601,15 +1602,13 @@ um_user_panel_init (UmUserPanel *self)
                 exit (1);
         }
 
-        d->authority = polkit_authority_get ();
-
         setup_main_window (d);
         d->login_options = um_login_options_new (d->builder);
         d->account_dialog = um_account_dialog_new ();
         d->password_dialog = um_password_dialog_new ();
         button = get_widget (d, "user-icon-button");
-        d->notebook = get_widget (d, "top-level-notebook");
         d->photo_dialog = um_photo_dialog_new (button);
+        d->notebook = get_widget (d, "top-level-notebook");
         gtk_widget_reparent (d->notebook, GTK_WIDGET (self));
 }
 



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