aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-text-event-processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-text-event-processor.c')
-rw-r--r--e-util/e-text-event-processor.c103
1 files changed, 103 insertions, 0 deletions
diff --git a/e-util/e-text-event-processor.c b/e-util/e-text-event-processor.c
new file mode 100644
index 0000000000..47f028ca62
--- /dev/null
+++ b/e-util/e-text-event-processor.c
@@ -0,0 +1,103 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* e-text-event-processor.c
+ * Copyright (C) 2000 Helix Code, Inc.
+ * Author: Chris Lahey <clahey@helixcode.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include <gnome.h>
+#include "e-text-event-processor.h"
+static void e_text_event_processor_init (ETextEventProcessor *card);
+static void e_text_event_processor_class_init (ETextEventProcessorClass *klass);
+
+static GtkObjectClass *parent_class = NULL;
+
+/* The arguments we take */
+enum {
+ ARG_0
+};
+
+enum {
+ E_TEP_EVENT,
+ E_TEP_LAST_SIGNAL
+};
+
+static guint e_tep_signals[E_TEP_LAST_SIGNAL] = { 0 };
+
+GtkType
+e_text_event_processor_get_type (void)
+{
+ static GtkType text_event_processor_type = 0;
+
+ if (!text_event_processor_type)
+ {
+ static const GtkTypeInfo text_event_processor_info =
+ {
+ "ETextEventProcessor",
+ sizeof (ETextEventProcessor),
+ sizeof (ETextEventProcessorClass),
+ (GtkClassInitFunc) e_text_event_processor_class_init,
+ (GtkObjectInitFunc) e_text_event_processor_init,
+ /* reserved_1 */ NULL,
+ /* reserved_2 */ NULL,
+ (GtkClassInitFunc) NULL,
+ };
+
+ text_event_processor_type = gtk_type_unique (gtk_object_get_type (), &text_event_processor_info);
+ }
+
+ return text_event_processor_type;
+}
+
+static void
+e_text_event_processor_class_init (ETextEventProcessorClass *klass)
+{
+ GtkObjectClass *object_class;
+
+ object_class = (GtkObjectClass*) klass;
+
+ parent_class = gtk_type_class (gtk_object_get_type ());
+
+ e_tep_signals[E_TEP_EVENT] =
+ gtk_signal_new ("command",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (ETextEventProcessorClass, command),
+ gtk_marshal_NONE__POINTER,
+ GTK_TYPE_NONE, 1,
+ GTK_TYPE_POINTER);
+
+ gtk_object_class_add_signals (object_class, e_tep_signals, E_TEP_LAST_SIGNAL);
+
+ klass->event = NULL;
+ klass->command = NULL;
+}
+
+static void
+e_text_event_processor_init (ETextEventProcessor *tep)
+{
+}
+
+gint
+e_text_event_processor_handle_event (ETextEventProcessor *tep, ETextEventProcessorEvent *event)
+{
+ if (E_TEXT_EVENT_PROCESSOR_CLASS(GTK_OBJECT(tep)->klass)->event) {
+ return E_TEXT_EVENT_PROCESSOR_CLASS(GTK_OBJECT(tep)->klass)->event(tep, event);
+ } else {
+ return 0;
+ }
+}
itgraph'>| | | | | Release notes: https://github.com/AsamK/signal-cli/releases/tag/v0.6.12 * Update to 0.6.11Mateusz Piotrowski2020-10-151-1/+1 | | | | | Release notes: https://github.com/AsamK/signal-cli/releases/tag/v0.6.11 * net-im/signal-cli: Update to 0.6.10Mateusz Piotrowski2020-09-161-6/+6 | | | | | | | | | | | | | Release notes: - https://github.com/AsamK/signal-cli/releases/tag/v0.6.9 - https://github.com/AsamK/signal-cli/releases/tag/v0.6.10 Port changes: - Improve the comment about jffi-native to be a bit more clear. - Set JAVA_HOME for Gradle explicitly. Gradle was not picking up the right Java version automatically. - Remove post-patch; it is no longer needed. - Bump the required Java version to 11+ as documented by the upstream. * net-im/signal-cli: Include patches bringing B-Bus supportMateusz Piotrowski2020-08-111-7/+8 | | | | | | | | | | | | | | | | | | | | | This commit updates dbus-java and its dependencies to 3.2.2, which includes patches contributed by grembo@, which make signal-cli work nicely with D-Bus on FreeBSD. It is a great thing because now it is possible to use various TUI clients for Signal. Additionally, we include an rc(8) service now, which allows users to run signal-cli as a system service if they desire to use D-Bus system bus to talk to signal-cli. Other changes: - Make _get-links depend on patch instead of extract (sometimes we need to patch Gradle config files to get the versions we really want). - Introduce ORIGINAL_BUILD_GRADLE variable for robustness. - Put some documentation into pkg-message to help users start using signal-cli. - Set JAVA_HOME in the signal-cli script; it is a bug fix. Special thanks to: grembo@ * Update to 0.6.8Mateusz Piotrowski2020-08-051-11/+27 | | | | | | | | | | | | | - Set LICENSE_FILE. - Drop LIB_DEPENDS, libunix-java.so is no longer needed. - Use ${GMAKE} to call Gmake. - Bump JAVA_VERSION to 8+ - Update build.gradle.in to make it compatible with the recent Gradle versions. - Drop unnecessary JAVA_OPTS from signal-cli.in. Release notes: https://github.com/AsamK/signal-cli/releases/tag/v0.6.8 * Fix pkg-plistMateusz Piotrowski2020-04-191-2/+0 | | | | DBUS files are already handled via DBUS_PLIST_FILES. * Update to 0.6.7Mateusz Piotrowski2020-04-191-4/+6 | | | | | Release notes: https://github.com/AsamK/signal-cli/releases/tag/v0.6.7 * Update to 0.6.6Mateusz Piotrowski2020-03-311-6/+7 | | | | | | | | While here: - Add D-Bus as a runtime dependency. - Simplify do-install. Reported by: Repology * Add missing entries to pkg-plistMateusz Piotrowski2020-03-271-0/+3 |