diff options
author | waker <wakeroid@gmail.com> | 2010-12-28 22:18:58 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-12-28 22:18:58 +0100 |
commit | e1bec0e410440034be6457e3dafe490e07683f55 (patch) | |
tree | b2c1aa2be9827ec840e3f08abe523c609410d282 /plugins/gtkui/prefwin.c | |
parent | fb04911887b9003d5fc99694cf556f32fab7f125 (diff) |
nuked old plugin activate/deactivate/nostop code;
improved plugin start and connect code
Diffstat (limited to 'plugins/gtkui/prefwin.c')
-rw-r--r-- | plugins/gtkui/prefwin.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/plugins/gtkui/prefwin.c b/plugins/gtkui/prefwin.c index 163459d9..38167165 100644 --- a/plugins/gtkui/prefwin.c +++ b/plugins/gtkui/prefwin.c @@ -67,27 +67,6 @@ gtk_enum_sound_callback (const char *name, const char *desc, void *userdata) { } void -on_plugin_active_toggled (GtkCellRendererToggle *cell_renderer, gchar *path, GtkTreeModel *model) { - GtkTreePath *p = gtk_tree_path_new_from_string (path); - if (p) { - int *indices = gtk_tree_path_get_indices (p); - //gtk_tree_path_free (p); // wtf?? gtk crashes on this - if (indices) { - DB_plugin_t **plugins = deadbeef->plug_get_list (); - DB_plugin_t *plug = plugins[*indices]; - gboolean state; - GtkTreeIter iter; - gtk_tree_model_get_iter (model, &iter, p); - gtk_tree_model_get (model, &iter, 0, &state, -1); - if (!deadbeef->plug_activate (plug, !state)) { - gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, !state, -1); - } - } - g_free (indices); - } -} - -void preferences_fill_soundcards (void) { if (!prefwin) { return; |