[seahorse] Fixed two warnings at compile time
- From: Pablo Castellano <pablog src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seahorse] Fixed two warnings at compile time
- Date: Sat, 13 Feb 2010 15:08:12 +0000 (UTC)
commit 353446a7d6308316b1b4525eae17a09fce6e429b
Author: Pablo Castellano <pablog src gnome org>
Date: Sat Feb 13 15:53:58 2010 +0100
Fixed two warnings at compile time
- Added missing cast GTK_TOGGLE_BUTTON
- Corrected case syntax
gkr/seahorse-gkr-item-properties.c | 2 +-
pgp/seahorse-gpgme-key-op.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gkr/seahorse-gkr-item-properties.c b/gkr/seahorse-gkr-item-properties.c
index b8bbf08..f0168b9 100644
--- a/gkr/seahorse-gkr-item-properties.c
+++ b/gkr/seahorse-gkr-item-properties.c
@@ -431,7 +431,7 @@ setup_main (SeahorseWidget *swidget)
seahorse_bind_objects ("has-secret", object, (SeahorseTransfer)transfer_password, swidget);
widget = seahorse_widget_get_widget (swidget, "show-password-check");
- on_item_show_password_toggled (widget, swidget);
+ on_item_show_password_toggled (GTK_TOGGLE_BUTTON (widget), swidget);
}
/* -----------------------------------------------------------------------------
diff --git a/pgp/seahorse-gpgme-key-op.c b/pgp/seahorse-gpgme-key-op.c
index 2fc7da4..ea40597 100644
--- a/pgp/seahorse-gpgme-key-op.c
+++ b/pgp/seahorse-gpgme-key-op.c
@@ -113,7 +113,8 @@ seahorse_gpgme_key_op_generate (SeahorseGpgmeSource *psrc, const gchar *name,
if (length < DSA_MIN || length > DSA_MAX)
*err = GPG_E (GPG_ERR_INV_VALUE);
break;
- case RSA_RSA: RSA_SIGN:
+ case RSA_RSA:
+ case RSA_SIGN:
if (length < RSA_MIN || length > LENGTH_MAX)
*err = GPG_E (GPG_ERR_INV_VALUE);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]