diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-10-26 21:11:31 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-10-26 21:11:31 +0000 |
commit | 24b19cde293b9ebd017799403763fa04981ec11a (patch) | |
tree | 4161dbca124d920e0965061b05793fc858c649e3 /gui/simple-greeter/gdm-user-chooser-dialog.c | |
parent | 8197eda937852835a9d10f878aee49ffd672cff1 (diff) | |
download | gdm-24b19cde293b9ebd017799403763fa04981ec11a.tar.gz |
Hide other users when one is chosen.
2007-10-26 William Jon McCann <mccann@jhu.edu>
* gui/simple-greeter/gdm-greeter-login-window.c: (do_cancel),
(on_user_chosen), (gdm_greeter_login_window_init):
* gui/simple-greeter/gdm-user-chooser-dialog.c:
(gdm_user_chooser_dialog_get_chosen_user_name),
(gdm_user_chooser_dialog_init):
* gui/simple-greeter/gdm-user-chooser-dialog.h:
* gui/simple-greeter/gdm-user-chooser-widget.c:
(gdm_user_chooser_widget_set_show_only_chosen),
(gdm_user_chooser_widget_get_chosen_user_name), (activate_name),
(choose_user_id), (choose_selected_user),
(gdm_user_chooser_widget_set_chosen_user_name),
(gdm_user_chooser_widget_dispose),
(gdm_user_chooser_widget_class_init), (on_selection_changed),
(on_row_activated), (add_user_to_model), (on_user_added),
(user_visible_cb), (gdm_user_chooser_widget_init):
* gui/simple-greeter/gdm-user-chooser-widget.h:
* gui/simple-greeter/test-user-chooser.c: (main):
Hide other users when one is chosen.
svn path=/trunk/; revision=5420
Diffstat (limited to 'gui/simple-greeter/gdm-user-chooser-dialog.c')
-rw-r--r-- | gui/simple-greeter/gdm-user-chooser-dialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/simple-greeter/gdm-user-chooser-dialog.c b/gui/simple-greeter/gdm-user-chooser-dialog.c index 89552a0e..a8660ae9 100644 --- a/gui/simple-greeter/gdm-user-chooser-dialog.c +++ b/gui/simple-greeter/gdm-user-chooser-dialog.c @@ -51,13 +51,13 @@ static void gdm_user_chooser_dialog_finalize (GObject G_DEFINE_TYPE (GdmUserChooserDialog, gdm_user_chooser_dialog, GTK_TYPE_DIALOG) char * -gdm_user_chooser_dialog_get_current_user_name (GdmUserChooserDialog *dialog) +gdm_user_chooser_dialog_get_chosen_user_name (GdmUserChooserDialog *dialog) { char *user_name; g_return_val_if_fail (GDM_IS_USER_CHOOSER_DIALOG (dialog), NULL); - user_name = gdm_user_chooser_widget_get_current_user_name (GDM_USER_CHOOSER_WIDGET (dialog->priv->chooser_widget)); + user_name = gdm_user_chooser_widget_get_chosen_user_name (GDM_USER_CHOOSER_WIDGET (dialog->priv->chooser_widget)); return user_name; } @@ -154,7 +154,7 @@ gdm_user_chooser_dialog_init (GdmUserChooserDialog *dialog) dialog->priv = GDM_USER_CHOOSER_DIALOG_GET_PRIVATE (dialog); dialog->priv->chooser_widget = gdm_user_chooser_widget_new (); - + gdm_user_chooser_widget_set_show_only_chosen (GDM_USER_CHOOSER_WIDGET (dialog->priv->chooser_widget), TRUE); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), dialog->priv->chooser_widget); gtk_dialog_add_buttons (GTK_DIALOG (dialog), |