summaryrefslogtreecommitdiff
path: root/drivemount/drive-button.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-24 18:19:46 +0100
committerStefano Karapetsas <[email protected]>2012-11-24 18:19:46 +0100
commit23536328cce34467f2a106662e2bb2c0d8507467 (patch)
tree4ea6149d1d6e8020a39eac943db7d19402cb5055 /drivemount/drive-button.c
parent8c30f31702202aed1b7e8c21b204a44ac2dc37cc (diff)
downloadmate-applets-23536328cce34467f2a106662e2bb2c0d8507467.tar.bz2
mate-applets-23536328cce34467f2a106662e2bb2c0d8507467.tar.xz
drivemount: remove mateconf usage
Diffstat (limited to 'drivemount/drive-button.c')
-rw-r--r--drivemount/drive-button.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c
index d692b490..bd738fb5 100644
--- a/drivemount/drive-button.c
+++ b/drivemount/drive-button.c
@@ -29,7 +29,6 @@
#include "drive-button.h"
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
-#include <mateconf/mateconf-client.h>
#include <string.h>
@@ -40,8 +39,6 @@ enum {
CMD_EJECT
};
-#define MATECONF_ROOT_AUTOPLAY "/desktop/mate/volume_manager/"
-
/* type registration boilerplate code */
G_DEFINE_TYPE(DriveButton, drive_button, GTK_TYPE_BUTTON)
@@ -809,34 +806,23 @@ eject_drive (DriveButton *self, GtkWidget *item)
}
}
static void
-play_autoplay_media (DriveButton *self, const char *autoplay_key,
- const char *dflt)
+play_autoplay_media (DriveButton *self, const char *dflt)
{
- MateConfClient *mateconf_client = mateconf_client_get_default ();
- char *command = mateconf_client_get_string (mateconf_client,
- autoplay_key, NULL);
-
- if (!command)
- command = g_strdup (dflt);
-
- run_command (self, command);
-
- g_free (command);
- g_object_unref (mateconf_client);
+ run_command (self, dflt);
}
static void
play_dvd (DriveButton *self, GtkWidget *item)
{
- play_autoplay_media (self, MATECONF_ROOT_AUTOPLAY "autoplay_dvd_command",
- "totem %d");
+ /* FIXME add an option to set this */
+ play_autoplay_media (self, "totem %d");
}
static void
play_cda (DriveButton *self, GtkWidget *item)
{
- play_autoplay_media (self, MATECONF_ROOT_AUTOPLAY "autoplay_cda_command",
- "sound-juicer -d %d");
+ /* FIXME add an option to set this */
+ play_autoplay_media (self, "sound-juicer -d %d");
}
static void