[gnome-flashback] input-sources: add signals to GfIBusManager
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] input-sources: add signals to GfIBusManager
- Date: Tue, 22 Sep 2015 12:29:36 +0000 (UTC)
commit 2d49836ad63092cf051d3b872ca118850374c3da
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Sep 19 19:31:42 2015 +0200
input-sources: add signals to GfIBusManager
gnome-flashback/libinput-sources/gf-ibus-manager.c | 34 +++++++++++++++++++-
1 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-ibus-manager.c
b/gnome-flashback/libinput-sources/gf-ibus-manager.c
index 9b9151c..257f6e6 100644
--- a/gnome-flashback/libinput-sources/gf-ibus-manager.c
+++ b/gnome-flashback/libinput-sources/gf-ibus-manager.c
@@ -17,8 +17,8 @@
#include "config.h"
-#include "gf-ibus-manager.h"
#include "gf-candidate-popup.h"
+#include "gf-ibus-manager.h"
struct _GfIBusManager
{
@@ -27,6 +27,18 @@ struct _GfIBusManager
GfCandidatePopup *candidate_popup;
};
+enum
+{
+ SIGNAL_READY,
+ SIGNAL_PROPERTIES_REGISTERED,
+ SIGNAL_PROPERTY_UPDATED,
+ SIGNAL_SET_CONTENT_TYPE,
+
+ LAST_SIGNAL
+};
+
+static guint signals[LAST_SIGNAL] = { 0 };
+
G_DEFINE_TYPE (GfIBusManager, gf_ibus_manager, G_TYPE_OBJECT)
static void
@@ -49,6 +61,26 @@ gf_ibus_manager_class_init (GfIBusManagerClass *manager_class)
object_class = G_OBJECT_CLASS (manager_class);
object_class->dispose = gf_ibus_manager_dispose;
+
+ signals[SIGNAL_READY] =
+ g_signal_new ("ready", G_TYPE_FROM_CLASS (manager_class),
+ G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
+ G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+
+ signals[SIGNAL_PROPERTIES_REGISTERED] =
+ g_signal_new ("properties-registered", G_TYPE_FROM_CLASS (manager_class),
+ G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
+ G_TYPE_NONE, 2, G_TYPE_STRING, IBUS_TYPE_PROP_LIST);
+
+ signals[SIGNAL_PROPERTY_UPDATED] =
+ g_signal_new ("property-updated", G_TYPE_FROM_CLASS (manager_class),
+ G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
+ G_TYPE_NONE, 2, G_TYPE_STRING, IBUS_TYPE_PROPERTY);
+
+ signals[SIGNAL_SET_CONTENT_TYPE] =
+ g_signal_new ("set-content-type", G_TYPE_FROM_CLASS (manager_class),
+ G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
+ G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]