Commit fc938fa9 authored by William Jon McCann's avatar William Jon McCann Committed by William Jon McCann

Use black circle for invisible char if '*' is currently default.

2007-09-21  William Jon McCann  <mccann@jhu.edu>

	* gui/simple-greeter/gdm-simple-greeter.c: (create_greeter):
	Use black circle for invisible char if '*' is currently default.


svn path=/branches/mccann-gobject/; revision=5310
parent 154a1074
2007-09-21 William Jon McCann <mccann@jhu.edu>
* gui/simple-greeter/gdm-simple-greeter.c: (create_greeter):
Use black circle for invisible char if '*' is currently default.
2007-09-19 William Jon McCann <mccann@jhu.edu>
* gui/simple-greeter/gdm-language-chooser-widget.c:
......
......@@ -400,11 +400,18 @@ suspend_button_clicked (GtkButton *button,
g_object_unref (proxy);
}
#define INVISIBLE_CHAR_DEFAULT '*'
#define INVISIBLE_CHAR_BLACK_CIRCLE 0x25cf
#define INVISIBLE_CHAR_WHITE_BULLET 0x25e6
#define INVISIBLE_CHAR_BULLET 0x2022
#define INVISIBLE_CHAR_NONE 0
static void
create_greeter (GdmSimpleGreeter *greeter)
{
GError *error;
GtkWidget *dialog;
GtkWidget *entry;
GtkWidget *button;
#if 0
......@@ -451,6 +458,14 @@ create_greeter (GdmSimpleGreeter *greeter)
g_signal_connect (button, "clicked", G_CALLBACK (cancel_button_clicked), greeter);
}
entry = glade_xml_get_widget (GDM_SIMPLE_GREETER (greeter)->priv->xml, "auth-entry");
/* Only change the invisible character if it '*' otherwise assume it is OK */
if ('*' == gtk_entry_get_invisible_char (GTK_ENTRY (entry))) {
gunichar invisible_char;
invisible_char = INVISIBLE_CHAR_BLACK_CIRCLE;
gtk_entry_set_invisible_char (GTK_ENTRY (entry), invisible_char);
}
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
gtk_window_set_deletable (GTK_WINDOW (dialog), FALSE);
gtk_window_set_decorated (GTK_WINDOW (dialog), FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment