Chromium Code Reviews| 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" |
|
satorux1
2011/02/25 01:54:47
What about using #ifdef NO_CONFIG_UI or something,
Zachary Kuznia
2011/02/25 02:04:29
As discussed, adding an ifdef wouldn't be that use
|
| + |
| +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 |