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

Unified Diff: src/IBusChewingEngine.gob

Issue 6538084: Remove dependency on get-text, gtk2 and gconf2 (Closed) Base URL: http://git.chromium.org/git/ibus-chewing.git@master
Patch Set: Code review fix Created 9 years, 10 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 | « src/CMakeLists.txt ('k') | src/main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IBusChewingEngine.gob
diff --git a/src/IBusChewingEngine.gob b/src/IBusChewingEngine.gob
index 35c2c78cc5ae8656787a7809121b360c934bf7db..ec34b054a007aaac7a4a9a069b05e2c4dd8a230d 100644
--- a/src/IBusChewingEngine.gob
+++ b/src/IBusChewingEngine.gob
@@ -112,7 +112,49 @@ enum ENGINE_STATUS{
} Engine:Status;
%h{
-#include "maker-dialog.h"
+// Chromium change: Remove reference to maker-dialog, and stub in the required
+// structures and enums here.
+//#include "maker-dialog.h"
+
+enum {
+ MAKER_DIALOG_PROPERTY_FLAG_INVISIBLE =0x1,
+ MAKER_DIALOG_PROPERTY_FLAG_INSENSITIVE =0x2,
+ MAKER_DIALOG_PROPERTY_FLAG_INEDITABLE =0x4,
+ MAKER_DIALOG_PROPERTY_FLAG_HAS_TRANSLATION =0x8,
+ MAKER_DIALOG_PROPERTY_FLAG_TRANSLATION_WITH_CONTEXT =0x10,
+};
+typedef guint MakerDialogPropertyFlags;
+typedef struct _PropertyContext PropertyContext;
+typedef GValue *(* CallbackGetFunc)(PropertyContext *ctx);
+typedef void(* CallbackSetFunc)(PropertyContext *ctx, GValue *value);
+typedef struct{
+ GType valueType;
+ gchar key[30];
+ gchar pageName[50];
+ gchar label[200];
+ gchar defaultValue[100];
+ const gchar **validValues;
+ gchar *translationContext;
+
+ gint min;
+ gint max;
+
+ CallbackGetFunc getFunc;
+ CallbackSetFunc setFunc;
+
+ MakerDialogPropertyFlags propertyFlags;
+ gint width;
+ gint height;
+ const gchar *tooltip;
+ gpointer userData;
+} PropertySpec;
+struct _PropertyContext{
+ PropertySpec *spec;
+ gpointer userData; //<! User data to be used in callback.
+
+};
+// END Chromium change
+
#define GCONF_KEY_PREFIX "/desktop/ibus/engine/Chewing/"
/* For easy symbol input work around */
#define EASY_SYMBOL_INPUT_WORK_AROUND
« no previous file with comments | « src/CMakeLists.txt ('k') | src/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698