rpms/vinagre/devel vinagre-prefs.patch, NONE, 1.1 vinagre.spec, 1.54, 1.55
Matthias Clasen
mclasen at fedoraproject.org
Sun Sep 6 02:59:50 UTC 2009
- Previous message (by thread): rpms/kdelibs3/F-11 kdelibs-3.5.10-CVE-2009-2702.patch, NONE, 1.1 kdelibs3.spec, 1.62, 1.63
- Next message (by thread): rpms/llvm/devel llvm-2.5-Base.td-x86_32.patch, NONE, 1.1 llvm-2.5-tclsh_check.patch, NONE, 1.1 .cvsignore, 1.6, 1.7 llvm.spec, 1.15, 1.16 sources, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/pkgs/rpms/vinagre/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26290
Modified Files:
vinagre.spec
Added Files:
vinagre-prefs.patch
Log Message:
Fix warnings at startup
vinagre-prefs.patch:
vinagre-prefs.c | 42 ++++++++++++++++++++++++++----------------
1 file changed, 26 insertions(+), 16 deletions(-)
--- NEW FILE vinagre-prefs.patch ---
--- vinagre-2.27.91/vinagre/vinagre-prefs.c 2009-07-30 16:13:29.000000000 -0400
+++ hacked/vinagre/vinagre-prefs.c 2009-09-05 22:51:22.750568356 -0400
@@ -152,41 +152,51 @@
static void
vinagre_prefs_set_bool (VinagrePrefs *prefs, const gchar* key, gboolean value)
{
- g_return_if_fail (gconf_client_key_is_writable (
- prefs->priv->gconf_client, key, NULL));
+ GError *error = NULL;
- gconf_client_set_bool (prefs->priv->gconf_client, key, value, NULL);
+ if (!gconf_client_set_bool (prefs->priv->gconf_client, key, value, &error))
+ {
+ g_warning ("Setting key %s failed: %s", key, error->message);
+ g_error_free (error);
+ }
}
static void
vinagre_prefs_set_int (VinagrePrefs *prefs, const gchar* key, gint value)
{
- g_return_if_fail (gconf_client_key_is_writable (
- prefs->priv->gconf_client, key, NULL));
+ GError *error = NULL;
- gconf_client_set_int (prefs->priv->gconf_client, key, value, NULL);
+ if (!gconf_client_set_int (prefs->priv->gconf_client, key, value, &error))
+ {
+ g_warning ("Setting key %s failed: %s", key, error->message);
+ g_error_free (error);
+ }
}
static void
vinagre_prefs_set_string (VinagrePrefs *prefs, const gchar *key, const gchar *value)
{
- g_return_if_fail (gconf_client_key_is_writable (
- prefs->priv->gconf_client, key, NULL));
+ GError *error = NULL;
- gconf_client_set_string (prefs->priv->gconf_client, key, value, NULL);
+ if (!gconf_client_set_string (prefs->priv->gconf_client, key, value, &error))
+ {
+ g_warning ("Setting key %s failed: %s", key, error->message);
+ g_error_free (error);
+ }
}
static void
vinagre_prefs_set_list (VinagrePrefs *prefs, const gchar* key, GSList *list)
{
- g_return_if_fail (gconf_client_key_is_writable (
- prefs->priv->gconf_client, key, NULL));
+ GError *error = NULL;
- gconf_client_set_list (prefs->priv->gconf_client,
- key,
- GCONF_VALUE_STRING,
- list,
- NULL);
+ if (!gconf_client_set_list (prefs->priv->gconf_client, key,
+ GCONF_VALUE_STRING, list,
+ &error))
+ {
+ g_warning ("Setting key %s failed: %s", key, error->message);
+ g_error_free (error);
+ }
}
static void
Index: vinagre.spec
===================================================================
RCS file: /cvs/pkgs/rpms/vinagre/devel/vinagre.spec,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
--- vinagre.spec 4 Sep 2009 00:15:50 -0000 1.54
+++ vinagre.spec 6 Sep 2009 02:59:50 -0000 1.55
@@ -1,6 +1,6 @@
Name: vinagre
Version: 2.27.91
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: VNC client for GNOME
Group: Applications/System
@@ -26,7 +26,10 @@ BuildRequires: telepathy-glib-devel
# for /usr/share/dbus-1/services
Requires: dbus
+# fixed upstream
Patch0: vinagre-unique-ids.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=594286
+Patch1: vinagre-prefs.patch
%description
Vinagre is a VNC client for the GNOME desktop.
@@ -52,6 +55,7 @@ to vinagre.
%prep
%setup -q
%patch0 -p1 -b .unique-ids
+%patch1 -p1 -b .prefs
%build
%configure --enable-avahi=yes --disable-static
@@ -158,6 +162,9 @@ fi
%changelog
+* Sat Sep 5 2009 Matthias Clasen <mclasen at redhat.com> - 2.27.91-3
+- Fix warnings at startup (#521382)
+
* Thu Sep 3 2009 Matthias Clasen <mclasen at redhat.com> - 2.27.91-2
- Make ids unique
- Previous message (by thread): rpms/kdelibs3/F-11 kdelibs-3.5.10-CVE-2009-2702.patch, NONE, 1.1 kdelibs3.spec, 1.62, 1.63
- Next message (by thread): rpms/llvm/devel llvm-2.5-Base.td-x86_32.patch, NONE, 1.1 llvm-2.5-tclsh_check.patch, NONE, 1.1 .cvsignore, 1.6, 1.7 llvm.spec, 1.15, 1.16 sources, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list