[file-roller/wip/jtojnar/gtk4] debug checkbox not updating



commit 604604e1e34c5cecc384d16a573ae9d9c988583e
Author: Jan Tojnar <jtojnar gmail com>
Date:   Mon Dec 13 23:59:42 2021 +0100

    debug checkbox not updating

 src/fr-file-selector-dialog.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/fr-file-selector-dialog.c b/src/fr-file-selector-dialog.c
index 8b759ae1..193bc487 100644
--- a/src/fr-file-selector-dialog.c
+++ b/src/fr-file-selector-dialog.c
@@ -644,6 +644,7 @@ show_hidden_files_toggled_cb (GSimpleAction *action,
        GFile                *folder;
        GList                *selected_files;
 
+       printf("show_hidden_files_toggled_cb: %d\n", g_variant_get_boolean (state));
        self->show_hidden = g_variant_get_boolean (state);
        folder = fr_file_selector_dialog_get_current_folder (self);
        selected_files = fr_file_selector_dialog_get_selected_files (self);
@@ -662,6 +663,7 @@ activate_toggle (GSimpleAction *action,
        GVariant *state;
 
        state = g_action_get_state (G_ACTION (action));
+       printf("activate_toggle: %d\n", g_variant_get_boolean (state));
        g_action_change_state (G_ACTION (action), g_variant_new_boolean (!g_variant_get_boolean (state)));
        g_variant_unref (state);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]