[gnome-flashback/wip/segeiger/inputmethods: 2/4] input-sources: add gf_input_source_get_index to GfInputSource
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/wip/segeiger/inputmethods: 2/4] input-sources: add gf_input_source_get_index to GfInputSource
- Date: Wed, 23 Sep 2015 21:33:07 +0000 (UTC)
commit d5d33eb647a2b99064ab03f59ecc3d955d5b1116
Author: Sebastian Geiger <sbastig gmx net>
Date: Wed Sep 23 22:37:52 2015 +0200
input-sources: add gf_input_source_get_index to GfInputSource
gnome-flashback/libinput-sources/gf-input-source.c | 6 ++++++
gnome-flashback/libinput-sources/gf-input-source.h | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-input-source.c
b/gnome-flashback/libinput-sources/gf-input-source.c
index 90f373d..cf283d8 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.c
+++ b/gnome-flashback/libinput-sources/gf-input-source.c
@@ -314,6 +314,12 @@ gf_input_source_set_short_name (GfInputSource *source,
g_signal_emit (source, signals[SIGNAL_CHANGED], 0);
}
+gint
+gf_input_source_get_index (GfInputSource *source)
+{
+ return source->index;
+}
+
const gchar *
gf_input_source_get_xkb_id (GfInputSource *source)
{
diff --git a/gnome-flashback/libinput-sources/gf-input-source.h
b/gnome-flashback/libinput-sources/gf-input-source.h
index e2c4af7..e05fdba 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.h
+++ b/gnome-flashback/libinput-sources/gf-input-source.h
@@ -41,6 +41,8 @@ const gchar *gf_input_source_get_short_name (GfInputSource *source);
void gf_input_source_set_short_name (GfInputSource *source,
const gchar *short_name);
+gint gf_input_source_get_index (GfInputSource *source);
+
const gchar *gf_input_source_get_xkb_id (GfInputSource *source);
void gf_input_source_activate (GfInputSource *source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]