[gnome-initial-setup] account: Fix a warning



commit 731c7f3ff1031f3e0a7ccfa7d6a392e28560ab3a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Dec 14 15:52:32 2012 -0500

    account: Fix a warning

 .../pages/account/gis-account-page.c               |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c b/gnome-initial-setup/pages/account/gis-account-page.c
index f814296..f149dcd 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -284,7 +284,7 @@ update_password_entries (GisAccountPage *page)
   GtkWidget *password_entry;
   GtkWidget *confirm_entry;
   GtkWidget *username_combo;
-  GtkLevelBar *password_strength;
+  GtkWidget *password_strength;
   gdouble strength;
   gint strength_level;
   const gchar *hint;
@@ -300,8 +300,7 @@ update_password_entries (GisAccountPage *page)
   username = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (username_combo));
 
   strength = pw_strength (password, NULL, username, &hint, &long_hint, &strength_level);
-
-  gtk_level_bar_set_value (password_strength, strength_level);
+  gtk_level_bar_set_value (GTK_LEVEL_BAR (password_strength), strength_level);
 
   if (strength == 0.0) {
     priv->valid_password = FALSE;



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