Mercurial > audlegacy
comparison src/audlegacy/dbus.c @ 4874:43eb8388760d
Enable opening jump to file dialog from audtool.
author | John Lindgren <john.lindgren@tds.net> |
---|---|
date | Sun, 26 Apr 2009 13:15:34 -0400 |
parents | 56af01cd5a5c |
children |
comparison
equal
deleted
inserted
replaced
4873:be6c7aea8665 | 4874:43eb8388760d |
---|---|
38 #include "playback.h" | 38 #include "playback.h" |
39 #include "playlist.h" | 39 #include "playlist.h" |
40 #include "strings.h" | 40 #include "strings.h" |
41 #include "tuple.h" | 41 #include "tuple.h" |
42 #include "ui_fileopener.h" | 42 #include "ui_fileopener.h" |
43 #include "ui_jumptotrack.h" | |
43 | 44 |
44 static DBusGConnection *dbus_conn = NULL; | 45 static DBusGConnection *dbus_conn = NULL; |
45 static guint signals[LAST_SIG] = { 0 }; | 46 static guint signals[LAST_SIG] = { 0 }; |
46 | 47 |
47 G_DEFINE_TYPE(RemoteObject, audacious_rc, G_TYPE_OBJECT); | 48 G_DEFINE_TYPE(RemoteObject, audacious_rc, G_TYPE_OBJECT); |
815 hook_call("aboutwin show", &show); | 816 hook_call("aboutwin show", &show); |
816 return TRUE; | 817 return TRUE; |
817 } | 818 } |
818 | 819 |
819 gboolean audacious_rc_show_jtf_box(RemoteObject *obj, gboolean show, GError **error) { | 820 gboolean audacious_rc_show_jtf_box(RemoteObject *obj, gboolean show, GError **error) { |
820 hook_call("ui jump to track show", &show); | 821 if (show) |
822 ui_jump_to_track (); | |
823 else | |
824 ui_jump_to_track_hide (); | |
821 return TRUE; | 825 return TRUE; |
822 } | 826 } |
823 | 827 |
824 gboolean audacious_rc_show_filebrowser(RemoteObject *obj, gboolean show, GError **error) | 828 gboolean audacious_rc_show_filebrowser(RemoteObject *obj, gboolean show, GError **error) |
825 { | 829 { |