[gdm] gui/simple-greeter: Fix minor compiler warnings
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] gui/simple-greeter: Fix minor compiler warnings
- Date: Mon, 3 Dec 2012 22:17:37 +0000 (UTC)
commit f2db409a3e1294c5a95475c7f18d192b76d3cd24
Author: Colin Walters <walters verbum org>
Date: Mon Dec 3 14:12:14 2012 -0500
gui/simple-greeter: Fix minor compiler warnings
Unused variables.
https://bugzilla.gnome.org/show_bug.cgi?id=689569
.../extensions/smartcard/gdm-smartcard-extension.c | 4 +---
gui/simple-greeter/gdm-chooser-widget.c | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gui/simple-greeter/extensions/smartcard/gdm-smartcard-extension.c b/gui/simple-greeter/extensions/smartcard/gdm-smartcard-extension.c
index faaca8d..eb33f78 100644
--- a/gui/simple-greeter/extensions/smartcard/gdm-smartcard-extension.c
+++ b/gui/simple-greeter/extensions/smartcard/gdm-smartcard-extension.c
@@ -425,9 +425,7 @@ gdm_smartcard_extension_is_visible (GdmLoginExtension *login_extension)
{
GdmSmartcardExtension *extension = GDM_SMARTCARD_EXTENSION (login_extension);
- char *contents, **lines, *pid_dir;
- gboolean ret;
- guint i;
+ char *contents, *pid_dir;
pid_t pid;
if (!g_settings_get_boolean (extension->priv->settings, "enable-smartcard-authentication")) {
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index e49ddc9..cab506c 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -699,7 +699,7 @@ update_chooser_visibility (GdmChooserWidget *widget)
if (gdm_chooser_widget_get_number_of_items (widget) > 0) {
gtk_widget_show (widget->priv->frame);
- set_chooser_list_visible (widget, gtk_widget_get_visible (widget));
+ set_chooser_list_visible (widget, gtk_widget_get_visible (GTK_WIDGET (widget)));
} else {
gtk_widget_hide (widget->priv->frame);
set_chooser_list_visible (widget, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]