[bijiben] import-dialog: Set import button inactive on no selection
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] import-dialog: Set import button inactive on no selection
- Date: Tue, 14 Nov 2017 00:54:49 +0000 (UTC)
commit ec7bb6b8794f17c9caba4c59df3e8f1e0bfb786f
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Mon Nov 13 13:50:32 2017 +0530
import-dialog: Set import button inactive on no selection
Now, when nothing is selected, the "suggested-action" style
is removed, rather than making the button insensitive.
The import action won't work when nothing is selected. So Let
it be insensitive when no item is selected.
https://bugzilla.gnome.org/show_bug.cgi?id=790278
src/bjb-import-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/bjb-import-dialog.c b/src/bjb-import-dialog.c
index 9d76828..53b02d5 100644
--- a/src/bjb-import-dialog.c
+++ b/src/bjb-import-dialog.c
@@ -204,7 +204,7 @@ toggle_widget (BjbImportDialog *self,
else
{
- gtk_style_context_remove_class (context, "suggested-action");
+ gtk_widget_set_sensitive (self->go_go_go, FALSE);
}
gtk_widget_reset_style (self->go_go_go);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]