[gnome-flashback] input-sources: add gf_input_source_get_index to GfInputSource
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] input-sources: add gf_input_source_get_index to GfInputSource
- Date: Mon, 28 Sep 2015 04:34:30 +0000 (UTC)
commit ef8aaeb257c86f379c5933cdcaad9888b4b07eb2
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 36f27af..d2aff34 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.c
+++ b/gnome-flashback/libinput-sources/gf-input-source.c
@@ -320,6 +320,12 @@ gf_input_source_set_short_name (GfInputSource *source,
g_signal_emit (source, signals[SIGNAL_CHANGED], 0);
}
+guint
+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 7cd6ac3..2635566 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.h
+++ b/gnome-flashback/libinput-sources/gf-input-source.h
@@ -43,6 +43,8 @@ const gchar *gf_input_source_get_short_name (GfInputSource *source);
void gf_input_source_set_short_name (GfInputSource *source,
const gchar *short_name);
+guint 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]