[gnome-settings-daemon] media-keys: Fix compilation failure



commit 4ce99a451481e43cf45a4dcbe75d200dbb9525c8
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 1 14:52:49 2014 +0200

    media-keys: Fix compilation failure
    
    ../../../plugins/media-keys/gsd-media-keys-manager.c:998:39: error: 'sound_theme_changed' undeclared 
(first use in this function)

 plugins/media-keys/gsd-media-keys-manager.c |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index d818bf8..c667120 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -977,6 +977,19 @@ do_lock_screensaver (GsdMediaKeysManager *manager)
 }
 
 static void
+sound_theme_changed (GtkSettings         *settings,
+                     GParamSpec          *pspec,
+                     GsdMediaKeysManager *manager)
+{
+        char *theme_name;
+
+        g_object_get (G_OBJECT (manager->priv->gtksettings), "gtk-sound-theme-name", &theme_name, NULL);
+        if (theme_name)
+                ca_context_change_props (manager->priv->ca, CA_PROP_CANBERRA_XDG_THEME_NAME, theme_name, 
NULL);
+        g_free (theme_name);
+}
+
+static void
 ensure_canberra (GsdMediaKeysManager *manager)
 {
        char *theme_name;
@@ -1222,19 +1235,6 @@ do_sound_action (GsdMediaKeysManager *manager,
 }
 
 static void
-sound_theme_changed (GtkSettings         *settings,
-                     GParamSpec          *pspec,
-                     GsdMediaKeysManager *manager)
-{
-        char *theme_name;
-
-        g_object_get (G_OBJECT (manager->priv->gtksettings), "gtk-sound-theme-name", &theme_name, NULL);
-        if (theme_name)
-                ca_context_change_props (manager->priv->ca, CA_PROP_CANBERRA_XDG_THEME_NAME, theme_name, 
NULL);
-        g_free (theme_name);
-}
-
-static void
 update_default_sink (GsdMediaKeysManager *manager)
 {
         GvcMixerStream *stream;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]