diff options
author | George Lebl <jirka@5z.com> | 2002-05-07 06:26:02 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2002-05-07 06:26:02 +0000 |
commit | e8df57a3c23386a262c867ba68aafa229691d02b (patch) | |
tree | e5cbff9875dc28af74f43e2f493fe60bef1e6155 /gui/gdmlogin.c | |
parent | b98f58904daa49b536680240d75923d89ad3bcc3 (diff) | |
download | gdm-e8df57a3c23386a262c867ba68aafa229691d02b.tar.gz |
a note to distributors about the welcome string, and add new greeter
Mon May 06 23:34:54 2002 George Lebl <jirka@5z.com>
* config/gdm.conf.in: a note to distributors about the welcome
string, and add new greeter config thingies
* gui/greeter/greeter-configuration.h, gui/greeter/greeter.c,
gui/greeter/greeter-canvas-item.c, daemon/gdm.h: use the global
gdm header file for defining config keys
* gui/greeter/greeter.c: start using the GdmGreeterTheme.info file
for figuring out the theme and the GraphicalTheme key now just
specifies the subdir in which to find under the GraphicalThemeDir
directory. Also fix the gettext stuff a bit.
* gui/greeter/themes/cirlces/screenshot.png,
gui/greeter/themes/cirlces/GdmGreeterTheme.info:
gui/greeter/themes/cirlces/Makefile.am: add circles screenshot
* gui/gdmlogin.c: use the circles in entry config key. Also reado
how translation is done for the welcome string
* gui/gdmsetup.(c|glade): start implementing a cool theme browser and
start connecting more widgets. Make the welcome string editting
work by just whacking ALL translations and using the current string
when it is editted.
Diffstat (limited to 'gui/gdmlogin.c')
-rw-r--r-- | gui/gdmlogin.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gui/gdmlogin.c b/gui/gdmlogin.c index c9be02b5..24d9ed49 100644 --- a/gui/gdmlogin.c +++ b/gui/gdmlogin.c @@ -126,6 +126,8 @@ static gboolean GdmShowGnomeFailsafeSession; static gboolean GdmShowXtermFailsafeSession; static gboolean GdmShowLastSession; +static gboolean GdmUseCirclesInEntry; + static GtkWidget *login; static GtkWidget *welcome; static GtkWidget *label; @@ -822,10 +824,11 @@ gdm_login_parse_config (void) GdmLocaleFile = gnome_config_get_string (GDM_KEY_LOCFILE); GdmDefaultLocale = gnome_config_get_string (GDM_KEY_LOCALE); GdmSessionDir = gnome_config_get_string (GDM_KEY_SESSDIR); - GdmWelcome = gnome_config_get_translated_string (GDM_KEY_WELCOME_TR); - if (ve_string_empty (GdmWelcome)) { + GdmWelcome = gnome_config_get_translated_string (GDM_KEY_WELCOME); + /* A hack! */ + if (strcmp (ve_sure_string (GdmWelcome), "Welcome to %n") == 0) { g_free (GdmWelcome); - GdmWelcome = gnome_config_get_string (GDM_KEY_WELCOME); + GdmWelcome = g_strdup (_("Welcome to %n")); } GdmBackgroundProg = gnome_config_get_string (GDM_KEY_BACKGROUNDPROG); GdmBackgroundImage = gnome_config_get_string (GDM_KEY_BACKGROUNDIMAGE); @@ -841,6 +844,7 @@ gdm_login_parse_config (void) GdmIconMaxWidth = gnome_config_get_int (GDM_KEY_ICONWIDTH); GdmIconMaxHeight = gnome_config_get_int (GDM_KEY_ICONHEIGHT); GdmXineramaScreen = gnome_config_get_int (GDM_KEY_XINERAMASCREEN); + GdmUseCirclesInEntry = gnome_config_get_bool (GDM_KEY_ENTRY_CIRCLES); GdmLockPosition = gnome_config_get_bool (GDM_KEY_LOCK_POSITION); GdmSetPosition = gnome_config_get_bool (GDM_KEY_SET_POSITION); GdmPositionX = gnome_config_get_int (GDM_KEY_POSITIONX); @@ -3162,6 +3166,8 @@ gdm_login_gui_init (void) gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); entry = gtk_entry_new (); + if (GdmUseCirclesInEntry) + gtk_entry_set_invisible_char (GTK_ENTRY (entry), 0x25cf); gtk_entry_set_max_length (GTK_ENTRY (entry), 32); gtk_widget_set_size_request (entry, 250, -1); gtk_widget_ref (entry); @@ -3725,10 +3731,11 @@ gdm_reread_config (int sig) g_free (str); } - str = gnome_config_get_translated_string (GDM_KEY_WELCOME_TR); - if (ve_string_empty (str)) { + str = gnome_config_get_translated_string (GDM_KEY_WELCOME); + /* A hack */ + if (strcmp (ve_sure_string (str), "Welcome to %n") == 0) { g_free (str); - str = gnome_config_get_string (GDM_KEY_WELCOME); + str = g_strdup (_("Welcome to %n")); } if (strcmp (ve_sure_string (str), ve_sure_string (GdmWelcome)) != 0) { char *greeting; |