diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-06 10:31:41 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-06 10:31:41 +0200 |
commit | e10994169fbae93890eb13af423aa89556eafb6e (patch) | |
tree | fd3fe53c4ae6df43ab8f7c91c52cff46f2c4aa87 /plugins | |
parent | 5ebe1b869b960078cbb26c0b90a848be9800ff18 (diff) |
converter: fixed edit/remove buttons
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/converter/convgui.c | 3 |
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); } |