diff src/audacious/input.c @ 3165:8775dfc57ead trunk

Remove mainwin_set_info_text() craq. Still some work to do.
author William Pitcock <nenolod@atheme-project.org>
date Wed, 25 Jul 2007 15:46:00 -0500
parents 0aaad77951c7
children 56121fc7a4cb
line wrap: on
line diff
--- a/src/audacious/input.c	Tue Jul 24 13:17:23 2007 -0500
+++ b/src/audacious/input.c	Wed Jul 25 15:46:00 2007 -0500
@@ -75,8 +75,6 @@
 
 static GList *vis_list = NULL;
 
-gchar *input_info_text = NULL;
-
 InputPlayback *
 get_current_input_playback(void)
 {
@@ -829,19 +827,12 @@
         vis_send_data(NULL, 0, 0);
 }
 
-
-gchar *
-input_get_info_text(void)
+/* FIXME: move this somewhere else */
+void
+input_set_info_text(gchar *text)
 {
-    return g_strdup(input_info_text);
-}
-
-void
-input_set_info_text(const gchar * text)
-{
-    g_free(input_info_text);
-    input_info_text = g_strdup(text);
-    mainwin_set_info_text();
+    gchar *title = g_strdup(text);
+    event_queue("title change", title);
 }
 
 void