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

Unified Diff: memconf/config.h

Issue 1539001: Reimplement ibus-gconf so it does not depend on GConf-2 database (Closed)
Patch Set: fix Created 10 years, 9 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 | « memconf/Makefile.am ('k') | memconf/config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: memconf/config.h
diff --git a/memconf/config.h b/memconf/config.h
new file mode 100644
index 0000000000000000000000000000000000000000..f4253f1647901841804d53292ed36a274cfc8f90
--- /dev/null
+++ b/memconf/config.h
@@ -0,0 +1,42 @@
+/* ibus - The Input Bus
+ * Copyright (c) 2010, Google Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef MEMCONF_CONFIG_H_
+#define MEMCONF_CONFIG_H_
+
+#include <map>
+#include <string>
+
+#include <ibus.h>
+
+struct IBusConfigMemConf {
+ IBusConfigService parent;
+ // We have to use pointer type here for |entries| since g_object_new() uses
+ // malloc rather than new to create IBusConfigMemConf object.
+ std::map<std::string, GValue*>* entries;
+};
+
+IBusConfigMemConf* ibus_config_memconf_new(IBusConnection* connection);
+
+// These tiny hacks are necessary since memconf/main.cc which is copied
+// from gconf/main.c on compile-time uses "gconf" rather than "memconf."
+typedef IBusConfigMemConf IBusConfigGConf;
+#define ibus_config_gconf_new ibus_config_memconf_new
+
+#endif // MEMCONF_CONFIG_H_
« no previous file with comments | « memconf/Makefile.am ('k') | memconf/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698