Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: src/ibusenginedesc.h

Issue 1702015: Support engine specific hotkey. (Closed) Base URL: ssh://git@chromiumos-git/ibus.git
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ibus/enginedesc.py ('k') | src/ibusenginedesc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ibusenginedesc.h
diff --git a/src/ibusenginedesc.h b/src/ibusenginedesc.h
index 08141cdeaa7653da21274af53fdfec9a03cf8031..0d19d35c07a28dd2a580f3a0e66cf08eb1246f35 100644
--- a/src/ibusenginedesc.h
+++ b/src/ibusenginedesc.h
@@ -77,6 +77,8 @@ typedef struct _BusComponent BusComponent;
* @author: Author of the input method engine.
* @icon: Icon file of this engine.
* @layout: Keyboard layout
+ * @hotkeys: One or more hotkeys for switching to this engine, separated by
+ * semi-colon.
* @rank: Preference rank among engines, the highest ranked IME will put in
* the front.
*
@@ -95,6 +97,7 @@ struct _IBusEngineDesc {
gchar *author;
gchar *icon;
gchar *layout;
+ gchar *hotkeys;
guint rank;
};
@@ -127,6 +130,32 @@ IBusEngineDesc *ibus_engine_desc_new (const gchar *name,
const gchar *author,
const gchar *icon,
const gchar *layout);
+
+/**
+ * ibus_engine_desc_new2:
+ * @name: Name of the engine.
+ * @longname: Long name of the input method engine.
+ * @description: Input method engine description.
+ * @language: Language (e.g. zh, jp) supported by this input method engine.
+ * @license: License of the input method engine.
+ * @author: Author of the input method engine.
+ * @icon: Icon file of this engine.
+ * @layout: Keyboard layout
+ * @hotkeys: Hotkeys for switching to this engine.
+ * @returns: A newly allocated IBusEngineDesc.
+ *
+ * New a IBusEngineDesc.
+ */
+IBusEngineDesc *ibus_engine_desc_new2 (const gchar *name,
+ const gchar *longname,
+ const gchar *description,
+ const gchar *language,
+ const gchar *license,
+ const gchar *author,
+ const gchar *icon,
+ const gchar *layout,
+ const gchar *hotkeys);
+
/**
* ibus_engine_desc_new_from_xml_node:
* @node: An XML node
@@ -154,4 +183,3 @@ void ibus_engine_desc_output (IBusEngineDesc *info,
gint indent);
G_END_DECLS
#endif
-
« no previous file with comments | « ibus/enginedesc.py ('k') | src/ibusenginedesc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698