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

Unified Diff: src/main.c

Issue 2899003: Add signal handlers to ibus-chewing to listen for config changes. (Closed) Base URL: ssh://gitrw.chromium.org/ibus-chewing.git
Patch Set: Code Review fixes Created 10 years, 5 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/IBusChewingEngine-keys.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/main.c
diff --git a/src/main.c b/src/main.c
index 027d05fe2333279bc8f6022806a47cbd90e3e3e9..5e3349a872d3aebc332f0677b7903ab28261967d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -35,6 +35,7 @@ static IBusFactory *factory = NULL;
/* options */
static gboolean ibus = FALSE;
int ibus_chewing_verbose= 0;
+IBusConfig *iConfig = NULL;
static const GOptionEntry entries[] =
{
@@ -60,6 +61,9 @@ start_component (void)
{
bus = ibus_bus_new ();
g_signal_connect (bus, "disconnected", G_CALLBACK (ibus_disconnected_cb), NULL);
+ iConfig = ibus_bus_get_config (bus);
+ if (iConfig)
+ g_object_ref_sink (iConfig);
IBusConnection *iConnection=ibus_bus_get_connection (bus);
factory = ibus_factory_new (iConnection);
« no previous file with comments | « src/IBusChewingEngine-keys.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698