[gnome-flashback] input-sources: add getter for display name in GfInputSource
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] input-sources: add getter for display name in GfInputSource
- Date: Thu, 24 Sep 2015 20:08:43 +0000 (UTC)
commit dd40ef0e0a3cd13316275d28d9543691cee0e9b2
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Sep 24 18:05:40 2015 +0300
input-sources: add getter for display name in GfInputSource
gnome-flashback/libinput-sources/gf-input-source.c | 6 ++++
gnome-flashback/libinput-sources/gf-input-source.h | 28 ++++++++++---------
2 files changed, 21 insertions(+), 13 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-input-source.c
b/gnome-flashback/libinput-sources/gf-input-source.c
index 90f373d..124190f 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.c
+++ b/gnome-flashback/libinput-sources/gf-input-source.c
@@ -296,6 +296,12 @@ gf_input_source_get_id (GfInputSource *source)
}
const gchar *
+gf_input_source_get_display_name (GfInputSource *source)
+{
+ return source->display_name;
+}
+
+const gchar *
gf_input_source_get_short_name (GfInputSource *source)
{
return source->short_name;
diff --git a/gnome-flashback/libinput-sources/gf-input-source.h
b/gnome-flashback/libinput-sources/gf-input-source.h
index e2c4af7..7cd6ac3 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.h
+++ b/gnome-flashback/libinput-sources/gf-input-source.h
@@ -25,24 +25,26 @@
G_DECLARE_FINAL_TYPE (GfInputSource, gf_input_source,
GF, INPUT_SOURCE, GObject)
-GfInputSource *gf_input_source_new (GfIBusManager *ibus_manager,
- const gchar *type,
- const gchar *id,
- const gchar *display_name,
- const gchar *short_name,
- guint index);
+GfInputSource *gf_input_source_new (GfIBusManager *ibus_manager,
+ const gchar *type,
+ const gchar *id,
+ const gchar *display_name,
+ const gchar *short_name,
+ guint index);
-const gchar *gf_input_source_get_source_type (GfInputSource *source);
+const gchar *gf_input_source_get_source_type (GfInputSource *source);
-const gchar *gf_input_source_get_id (GfInputSource *source);
+const gchar *gf_input_source_get_id (GfInputSource *source);
-const gchar *gf_input_source_get_short_name (GfInputSource *source);
+const gchar *gf_input_source_get_display_name (GfInputSource *source);
-void gf_input_source_set_short_name (GfInputSource *source,
- const gchar *short_name);
+const gchar *gf_input_source_get_short_name (GfInputSource *source);
-const gchar *gf_input_source_get_xkb_id (GfInputSource *source);
+void gf_input_source_set_short_name (GfInputSource *source,
+ const gchar *short_name);
-void gf_input_source_activate (GfInputSource *source);
+const gchar *gf_input_source_get_xkb_id (GfInputSource *source);
+
+void gf_input_source_activate (GfInputSource *source);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]