commit 438a9f617a4323d01c3425b4b0d30841ccd9f9d3
parent 52782405e9a28558c4b000d47cb7a7a18518b714
Author: lash <dev@holbrook.no>
Date: Sun, 24 Mar 2024 16:07:42 +0000
Activate chcek on button click import
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gtk/kee-import.c b/src/gtk/kee-import.c
@@ -104,7 +104,6 @@ static void kee_import_handle_camera_change(GtkDropDown *chooser, GParamSpec *sp
}
static void kee_import_handle_import_data_focus(KeeImport *o, const char *data, GtkStack *stack) {
- //gtk_stack_set_visible_child_name(stack, KEE_ACT_SCAN_TEXT);
gtk_widget_activate(o->toggler_text);
}
@@ -126,8 +125,9 @@ static void kee_import_handle_import_data_accept(KeeImport *o, const char *data)
}
static void kee_import_handle_import_data_check(KeeImport *o, const char *data, GtkActionable *act) {
- g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "accept click");
+ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "checking import data");
}
+
static void kee_import_handle_scan_select(GActionGroup *act, char *action_name, gpointer user_data, GtkStack *stack) {
GVariant *v;
const char *s;
@@ -224,6 +224,7 @@ static GtkWidget* kee_import_build_import_text(KeeImport *o, GtkStack *stack) {
g_signal_connect(o, "data_available", G_CALLBACK(kee_import_handle_import_data_accept), NULL);
g_signal_connect(o, "data_available", G_CALLBACK(kee_import_handle_import_data_focus), stack);
g_signal_connect(o, "data_available", G_CALLBACK(kee_import_handle_import_data_check), butt);
+ g_signal_connect(butt, "clicked", G_CALLBACK(kee_import_handle_import_data_check), butt);
return box;
}