summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-06 10:31:41 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-06 10:31:41 +0200
commite10994169fbae93890eb13af423aa89556eafb6e (patch)
treefd3fe53c4ae6df43ab8f7c91c52cff46f2c4aa87 /plugins
parent5ebe1b869b960078cbb26c0b90a848be9800ff18 (diff)
converter: fixed edit/remove buttons
Diffstat (limited to 'plugins')
-rw-r--r--plugins/converter/convgui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/converter/convgui.c b/plugins/converter/convgui.c
index e1ebdfb1..a1207da2 100644
--- a/plugins/converter/convgui.c
+++ b/plugins/converter/convgui.c
@@ -911,6 +911,7 @@ on_encoder_preset_cursor_changed (GtkTreeView *treeview,
gpointer user_data) {
GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (treeview));
GtkWidget *edit = lookup_widget (toplevel, "edit");
+ GtkWidget *remove = lookup_widget (toplevel, "remove");
GtkTreePath *path;
GtkTreeViewColumn *col;
@@ -918,6 +919,7 @@ on_encoder_preset_cursor_changed (GtkTreeView *treeview,
if (!path || !col) {
// nothing selected
gtk_widget_set_sensitive (edit, FALSE);
+ gtk_widget_set_sensitive (remove, FALSE);
return;
}
int *indices = gtk_tree_path_get_indices (path);
@@ -926,6 +928,7 @@ on_encoder_preset_cursor_changed (GtkTreeView *treeview,
ddb_encoder_preset_t *p = converter_plugin->encoder_preset_get_for_idx (idx);
gtk_widget_set_sensitive (edit, !p->readonly);
+ gtk_widget_set_sensitive (remove, !p->readonly);
}