comparison src/audacious/dbus.c @ 4574:744953f257fb

uncomment last dbus functions that need UI access
author mf0102 <0102@gmx.at>
date Wed, 21 May 2008 13:58:45 +0200
parents 084dbc8d23da
children c2d739b4c84d
comparison
equal deleted inserted replaced
4573:11f7874f3a95 4574:744953f257fb
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 #include "ui_equalizer.h"
42 #include "ui_skin.h"
43 41
44 static DBusGConnection *dbus_conn = NULL; 42 static DBusGConnection *dbus_conn = NULL;
45 static guint signals[LAST_SIG] = { 0 }; 43 static guint signals[LAST_SIG] = { 0 };
46 44
47 G_DEFINE_TYPE(RemoteObject, audacious_rc, G_TYPE_OBJECT); 45 G_DEFINE_TYPE(RemoteObject, audacious_rc, G_TYPE_OBJECT);
840 gboolean audacious_rc_activate(RemoteObject *obj, GError **error) { 838 gboolean audacious_rc_activate(RemoteObject *obj, GError **error) {
841 gtk_window_present(GTK_WINDOW(mainwin)); 839 gtk_window_present(GTK_WINDOW(mainwin));
842 return TRUE; 840 return TRUE;
843 } 841 }
844 842
843 #if 0
845 /* TODO: these skin functions should be removed when skin functionality 844 /* TODO: these skin functions should be removed when skin functionality
846 * disappears --mf0102 */ 845 * disappears --mf0102 */
847 gboolean audacious_rc_get_skin(RemoteObject *obj, gchar **skin, GError **error) { 846 gboolean audacious_rc_get_skin(RemoteObject *obj, gchar **skin, GError **error) {
848 *skin = g_strdup(aud_active_skin->path); 847 *skin = g_strdup(aud_active_skin->path);
849 return TRUE; 848 return TRUE;
851 850
852 gboolean audacious_rc_set_skin(RemoteObject *obj, gchar *skin, GError **error) { 851 gboolean audacious_rc_set_skin(RemoteObject *obj, gchar *skin, GError **error) {
853 aud_active_skin_load(skin); 852 aud_active_skin_load(skin);
854 return TRUE; 853 return TRUE;
855 } 854 }
855 #endif
856 856
857 gboolean audacious_rc_get_info(RemoteObject *obj, gint *rate, gint *freq, gint *nch, GError **error) { 857 gboolean audacious_rc_get_info(RemoteObject *obj, gint *rate, gint *freq, gint *nch, GError **error) {
858 playback_get_sample_params(rate, freq, nch); 858 playback_get_sample_params(rate, freq, nch);
859 return TRUE; 859 return TRUE;
860 } 860 }
938 playlist_add_url(new_pl, url); 938 playlist_add_url(new_pl, url);
939 939
940 return TRUE; 940 return TRUE;
941 } 941 }
942 942
943 #if 0
943 /* New on Nov 7: Equalizer */ 944 /* New on Nov 7: Equalizer */
944 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)
945 { 946 {
946 int i; 947 int i;
947 948
1001 gboolean audacious_rc_equalizer_activate(RemoteObject *obj, gboolean active, GError **error) 1002 gboolean audacious_rc_equalizer_activate(RemoteObject *obj, gboolean active, GError **error)
1002 { 1003 {
1003 equalizer_activate(active); 1004 equalizer_activate(active);
1004 return TRUE; 1005 return TRUE;
1005 } 1006 }
1007 #endif
1006 1008
1007 1009
1008 DBusGProxy *audacious_get_dbus_proxy(void) 1010 DBusGProxy *audacious_get_dbus_proxy(void)
1009 { 1011 {
1010 DBusGConnection *connection = NULL; 1012 DBusGConnection *connection = NULL;