[rs-commit] r39 - in /redwax-signtext/trunk/src/linux: message.c signtext.c
rs-commit at redwax.eu
rs-commit at redwax.eu
Mon Sep 5 19:11:22 CEST 2022
Author: minfrin at redwax.eu
Date: Mon Sep 5 19:11:22 2022
New Revision: 39
Log:
Wire through the sign click event. Set sign to off by default.
Modified:
redwax-signtext/trunk/src/linux/message.c
redwax-signtext/trunk/src/linux/signtext.c
Modified: redwax-signtext/trunk/src/linux/message.c
==============================================================================
--- redwax-signtext/trunk/src/linux/message.c (original)
+++ redwax-signtext/trunk/src/linux/message.c Mon Sep 5 19:11:22 2022
@@ -25,6 +25,15 @@
#include "crypto.h"
#include "message.h"
#include "config.h"
+
+void message_sign_clicked(GtkButton *button,
+ gpointer user_data)
+{
+ SignTextInstance *instance = user_data;
+
+ g_printerr("message_sign_clicked\n");
+
+}
void message_cancel_clicked(GtkButton *button,
gpointer user_data)
@@ -216,6 +225,7 @@
instance->stack = signtext->stack;
g_signal_connect(instance->cancel, "clicked", (GCallback)message_cancel_clicked, instance);
+ g_signal_connect(instance->sign, "clicked", (GCallback)message_sign_clicked, instance);
gtk_widget_show_all (GTK_WIDGET(instance->box));
Modified: redwax-signtext/trunk/src/linux/signtext.c
==============================================================================
--- redwax-signtext/trunk/src/linux/signtext.c (original)
+++ redwax-signtext/trunk/src/linux/signtext.c Mon Sep 5 19:11:22 2022
@@ -111,6 +111,7 @@
gtk_button_box_set_layout(instance->buttons, GTK_BUTTONBOX_EXPAND);
instance->cancel = GTK_BUTTON(gtk_button_new_with_label("Cancel"));
instance->sign = GTK_BUTTON(gtk_button_new_with_label("Sign"));
+ gtk_widget_set_sensitive(GTK_WIDGET(instance->sign), FALSE);
#ifdef HAVE_GTK_BOX_APPEND
gtk_box_append (GTK_BOX(instance->buttons), GTK_WIDGET(instance->cancel));
More information about the rs-commit
mailing list