user-accounts: fix compilation warning and function name
https://bugzilla.gnome.org/show_bug.cgi?id=704741
This commit is contained in:
parent
f342aa4254
commit
8c43927d83
4 changed files with 4 additions and 4 deletions
|
@ -162,7 +162,7 @@ pw_strength (const gchar *password,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
pw_strenght_hint_get_width_chars ()
|
pw_strength_hint_get_width_chars (void)
|
||||||
{
|
{
|
||||||
gint len;
|
gint len;
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,4 @@ gdouble pw_strength (const gchar *password,
|
||||||
const gchar **hint,
|
const gchar **hint,
|
||||||
const gchar **long_hints,
|
const gchar **long_hints,
|
||||||
gint *strength_level);
|
gint *strength_level);
|
||||||
int pw_strenght_hint_get_width_chars ();
|
int pw_strength_hint_get_width_chars (void);
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ um_account_dialog_show (UmAccountDialog *self,
|
||||||
gtk_widget_grab_focus (self->local_name);
|
gtk_widget_grab_focus (self->local_name);
|
||||||
|
|
||||||
/* Allocate enought width for strength hint */
|
/* Allocate enought width for strength hint */
|
||||||
len = pw_strenght_hint_get_width_chars ();
|
len = pw_strength_hint_get_width_chars ();
|
||||||
gtk_label_set_width_chars (GTK_LABEL (self->local_strength), len);
|
gtk_label_set_width_chars (GTK_LABEL (self->local_strength), len);
|
||||||
|
|
||||||
/* Allocate enought space for password and username hints and do not change */
|
/* Allocate enought space for password and username hints and do not change */
|
||||||
|
|
|
@ -516,7 +516,7 @@ um_password_dialog_new (void)
|
||||||
um->password_entry_timeout_id = 0;
|
um->password_entry_timeout_id = 0;
|
||||||
|
|
||||||
widget = (GtkWidget *) gtk_builder_get_object (builder, "strength-indicator-label");
|
widget = (GtkWidget *) gtk_builder_get_object (builder, "strength-indicator-label");
|
||||||
len = pw_strenght_hint_get_width_chars ();
|
len = pw_strength_hint_get_width_chars ();
|
||||||
gtk_label_set_width_chars (GTK_LABEL (widget), len);
|
gtk_label_set_width_chars (GTK_LABEL (widget), len);
|
||||||
um->strength_indicator_label = widget;
|
um->strength_indicator_label = widget;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue