changeset 297:6862a829540c trunk

[svn] Use GTK_SIGNAL_FUNC() where needed and remove a totally random const qualifier.
author chainsaw
date Fri, 16 Dec 2005 17:34:26 -0800
parents 53751ea823c3
children 4f42c8bcf186
files Plugins/Effect/ladspa/ladspa.c
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Effect/ladspa/ladspa.c	Fri Dec 16 17:20:04 2005 -0800
+++ b/Plugins/Effect/ladspa/ladspa.c	Fri Dec 16 17:34:26 2005 -0800
@@ -276,7 +276,7 @@
   state.running = FALSE;
   G_LOCK (running_plugins);
   for (list= running_plugins; list != NULL; list = g_slist_next(list)) {
-    const plugin_instance *instance = (plugin_instance *) list->data;
+    plugin_instance *instance = (plugin_instance *) list->data;
     gchar *section = g_strdup_printf("plugin%d", plugins++);
     int port, ports= 0;
 
@@ -299,11 +299,7 @@
   G_UNLOCK (running_plugins);
 
   xmms_cfg_write_int(cfg, "session", "plugins", plugins);
-  #ifdef BUILD_FOR_BMP
-    filename= g_strdup_printf("%s/%s", g_get_home_dir(), "/.bmp/ladsparc");
-  #else
-    filename= g_strdup_printf("%s/%s", g_get_home_dir(), "/.xmms/ladsparc");
-  #endif
+  filename= g_strdup_printf("%s/%s", g_get_home_dir(), "/.audacious/ladsparc");
   xmms_cfg_write_file(cfg, filename);
   g_free(filename);
   xmms_cfg_free(cfg);
@@ -631,7 +627,7 @@
     if (LADSPA_IS_HINT_TOGGLED(hints[k].HintDescriptor)) {
       widget = gtk_toggle_button_new_with_label("Press");
       gtk_signal_connect(GTK_OBJECT(widget), "toggled",
-                       toggled, &(instance->knobs[k]));
+                       GTK_SIGNAL_FUNC(toggled), &(instance->knobs[k]));
       gtk_container_add(GTK_CONTAINER(hbox), widget);
       gtk_container_add(GTK_CONTAINER(vbox), hbox);
       continue;