[gthumb] shortcuts: hide the revert button without changing the list layout
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] shortcuts: hide the revert button without changing the list layout
- Date: Sun, 24 Nov 2019 12:31:02 +0000 (UTC)
commit 83c97a81a17ce19f4ff9319f32a57ed3112ab83f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Nov 12 12:23:21 2019 +0100
shortcuts: hide the revert button without changing the list layout
gthumb/dlg-preferences-shortcuts.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/dlg-preferences-shortcuts.c b/gthumb/dlg-preferences-shortcuts.c
index f8f0fc08..84b15bc1 100644
--- a/gthumb/dlg-preferences-shortcuts.c
+++ b/gthumb/dlg-preferences-shortcuts.c
@@ -109,15 +109,15 @@ row_data_update_accel_label (RowData *row_data)
esc_text = g_markup_escape_text (row_data->shortcut->label, -1);
markup_text = g_strdup_printf ("<b>%s</b>", esc_text);
gtk_label_set_markup (GTK_LABEL (row_data->accel_label), markup_text);
- gtk_widget_show (row_data->revert_button);
g_free (markup_text);
g_free (esc_text);
}
- else {
+ else
gtk_label_set_text (GTK_LABEL (row_data->accel_label), row_data->shortcut->label);
- gtk_widget_hide (row_data->revert_button);
- }
+
+ gtk_widget_set_sensitive (row_data->revert_button, modified);
+ gtk_widget_set_child_visible (row_data->revert_button, modified);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]