Commit dd40ef0e authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

input-sources: add getter for display name in GfInputSource

parent 6d45e2ee
......@@ -295,6 +295,12 @@ gf_input_source_get_id (GfInputSource *source)
return source->id;
}
const gchar *
gf_input_source_get_display_name (GfInputSource *source)
{
return source->display_name;
}
const gchar *
gf_input_source_get_short_name (GfInputSource *source)
{
......
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment