gossip r2854 - in trunk: . src
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gossip r2854 - in trunk: . src
- Date: Sun, 7 Sep 2008 19:29:09 +0000 (UTC)
Author: wbolster
Date: Sun Sep 7 19:29:08 2008
New Revision: 2854
URL: http://svn.gnome.org/viewvc/gossip?rev=2854&view=rev
Log:
2008-09-07 Wouter Bolsterlee <wbolster svn gnome org>
* src/gossip-preferences.c (preferences_hookup_spin_button),
(preferences_hookup_entry): Use G_GNUC_UNUSED to avoid
warnings about unused functions. Fixes bug #550434.
Modified:
trunk/ChangeLog
trunk/src/gossip-preferences.c
Modified: trunk/src/gossip-preferences.c
==============================================================================
--- trunk/src/gossip-preferences.c (original)
+++ trunk/src/gossip-preferences.c Sun Sep 7 19:29:08 2008
@@ -110,10 +110,10 @@
static void preferences_notify_sensitivity_cb (GossipConf *conf,
const gchar *key,
gpointer user_data);
-static void preferences_hookup_spin_button (GossipPreferences *preferences,
+G_GNUC_UNUSED static void preferences_hookup_spin_button (GossipPreferences *preferences,
const gchar *key,
GtkWidget *widget);
-static void preferences_hookup_entry (GossipPreferences *preferences,
+G_GNUC_UNUSED static void preferences_hookup_entry (GossipPreferences *preferences,
const gchar *key,
GtkWidget *widget);
static void preferences_hookup_toggle_button (GossipPreferences *preferences,
@@ -676,11 +676,6 @@
{
guint id;
- /* Silence warning. */
- if (0) {
- preferences_hookup_spin_button (preferences, key, widget);
- }
-
preferences_widget_sync_int (key, widget);
g_object_set_data_full (G_OBJECT (widget), "key",
@@ -707,10 +702,6 @@
{
guint id;
- if (0) { /* Silent warning before we use this function. */
- preferences_hookup_entry (preferences, key, widget);
- }
-
preferences_widget_sync_string (key, widget);
g_object_set_data_full (G_OBJECT (widget), "key",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]