comparison src/audacious/dbus.c @ 4577:c2d739b4c84d

revert DBus removals
author mf0102 <0102@gmx.at>
date Wed, 21 May 2008 15:50:36 +0200
parents 744953f257fb
children 51d82bf6ba63
comparison
equal deleted inserted replaced
4576:3789057a3f4f 4577:c2d739b4c84d
36 #include "input.h" 36 #include "input.h"
37 #include "playback.h" 37 #include "playback.h"
38 #include "playlist.h" 38 #include "playlist.h"
39 #include "tuple.h" 39 #include "tuple.h"
40 #include "strings.h" 40 #include "strings.h"
41
42 #include "ui_equalizer.h"
43 #include "ui_skin.h"
41 44
42 static DBusGConnection *dbus_conn = NULL; 45 static DBusGConnection *dbus_conn = NULL;
43 static guint signals[LAST_SIG] = { 0 }; 46 static guint signals[LAST_SIG] = { 0 };
44 47
45 G_DEFINE_TYPE(RemoteObject, audacious_rc, G_TYPE_OBJECT); 48 G_DEFINE_TYPE(RemoteObject, audacious_rc, G_TYPE_OBJECT);
838 gboolean audacious_rc_activate(RemoteObject *obj, GError **error) { 841 gboolean audacious_rc_activate(RemoteObject *obj, GError **error) {
839 gtk_window_present(GTK_WINDOW(mainwin)); 842 gtk_window_present(GTK_WINDOW(mainwin));
840 return TRUE; 843 return TRUE;
841 } 844 }
842 845
843 #if 0
844 /* TODO: these skin functions should be removed when skin functionality 846 /* TODO: these skin functions should be removed when skin functionality
845 * disappears --mf0102 */ 847 * disappears --mf0102 */
846 gboolean audacious_rc_get_skin(RemoteObject *obj, gchar **skin, GError **error) { 848 gboolean audacious_rc_get_skin(RemoteObject *obj, gchar **skin, GError **error) {
847 *skin = g_strdup(aud_active_skin->path); 849 *skin = g_strdup(aud_active_skin->path);
848 return TRUE; 850 return TRUE;
850 852
851 gboolean audacious_rc_set_skin(RemoteObject *obj, gchar *skin, GError **error) { 853 gboolean audacious_rc_set_skin(RemoteObject *obj, gchar *skin, GError **error) {
852 aud_active_skin_load(skin); 854 aud_active_skin_load(skin);
853 return TRUE; 855 return TRUE;
854 } 856 }
855 #endif
856 857
857 gboolean audacious_rc_get_info(RemoteObject *obj, gint *rate, gint *freq, gint *nch, GError **error) { 858 gboolean audacious_rc_get_info(RemoteObject *obj, gint *rate, gint *freq, gint *nch, GError **error) {
858 playback_get_sample_params(rate, freq, nch); 859 playback_get_sample_params(rate, freq, nch);
859 return TRUE; 860 return TRUE;
860 } 861 }
938 playlist_add_url(new_pl, url); 939 playlist_add_url(new_pl, url);
939 940
940 return TRUE; 941 return TRUE;
941 } 942 }
942 943
943 #if 0
944 /* New on Nov 7: Equalizer */ 944 /* New on Nov 7: Equalizer */
945 gboolean audacious_rc_get_eq(RemoteObject *obj, gdouble *preamp, GArray **bands, GError **error) 945 gboolean audacious_rc_get_eq(RemoteObject *obj, gdouble *preamp, GArray **bands, GError **error)
946 { 946 {
947 int i; 947 int i;
948 948
1002 gboolean audacious_rc_equalizer_activate(RemoteObject *obj, gboolean active, GError **error) 1002 gboolean audacious_rc_equalizer_activate(RemoteObject *obj, gboolean active, GError **error)
1003 { 1003 {
1004 equalizer_activate(active); 1004 equalizer_activate(active);
1005 return TRUE; 1005 return TRUE;
1006 } 1006 }
1007 #endif
1008 1007
1009 1008
1010 DBusGProxy *audacious_get_dbus_proxy(void) 1009 DBusGProxy *audacious_get_dbus_proxy(void)
1011 { 1010 {
1012 DBusGConnection *connection = NULL; 1011 DBusGConnection *connection = NULL;