summaryrefslogtreecommitdiff
path: root/bus
AgeCommit message (Collapse)AuthorFilesLines
2014-05-26Fix GVariantBuilder leaksChristophe Fergeau2-3/+5
When using g_variant_builder_new(), we must call g_variant_builder_unref() to free it: "You should call g_variant_builder_unref() on the return value when it is no longer needed. The memory will not be automatically freed by any other call. In most cases it is easier to place a GVariantBuilder directly on the stack of the calling function and initialise it with g_variant_builder_init()." One of these leaks showed up in valgrind as: ==20702== 16,416 bytes in 114 blocks are definitely lost in loss record 2,114 of 2,115 ==20702== at 0x4A0645D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==20702== by 0x56EDDF2: g_malloc (gmem.c:97) ==20702== by 0x570691C: g_slice_alloc (gslice.c:1007) ==20702== by 0x5729743: g_variant_builder_new (gvariant.c:3169) ==20702== by 0x40297B: ibus_config_dconf_get_values (config.c:413) ==20702== by 0x4E44FF2: ibus_config_service_service_method_call (ibusconfigservice.c:214) ==20702== by 0x4E33249: ibus_service_service_method_call_cb (ibusservice.c:395) ==20702== by 0x51880D8: call_in_idle_cb (gdbusconnection.c:4875) ==20702== by 0x56E81D7: g_idle_dispatch (gmain.c:5319) ==20702== by 0x56E58F1: g_main_dispatch (gmain.c:3064) ==20702== by 0x56E6667: g_main_context_dispatch (gmain.c:3663) ==20702== by 0x56E6859: g_main_context_iterate (gmain.c:3734)
2014-04-07Keep track of content-type change after focus-inDaiki Ueno3-0/+38
This is an amendment to 6ca5ddb3. As content-type (input-purpose and hints) can change after focus-in, we should monitor the changes. BUG= R=takao.fujiwara1@gmail.com Review URL: https://codereview.appspot.com/83920043
2014-04-03Send panel input purpose.fujiwarat4-64/+140
gnome-shell gets input purpose so that disables IME with password mode. Review URL: https://codereview.appspot.com/81770044
2013-10-02Always save the content-type cache for gnome-shell password.fujiwarat1-0/+5
GDBusProxy updates the cache immediatelly with the first call only and has to save the next call in the cache by manual. BUG=RH#1013948 TEST=password on gnome-shell 3.10. Review URL: https://codereview.appspot.com/14196043
2013-10-02Replace datadir/man with mandir.fujiwarat1-1/+1
BUG=http://code.google.com/p/ibus/issues/detail?id=1660 TEST=make install Review URL: https://codereview.appspot.com/14119043
2013-08-28Implement IME state per window.fujiwarat3-44/+85
BUG=http://code.google.com/p/ibus/issues/detail?id=1568 TEST=Disable global engine with ibus-setup. Review URL: https://codereview.appspot.com/12957046
2013-08-14Notify engines of the content-type of input contextDaiki Ueno3-136/+374
Add a new D-Bus method SetContentType to InputContext and Engine, to notify engines of the content-type (primary purpose and hints) of input context. This is useful to implement intelligent features in engines, such as automatic input-mode switch and text prediction. The "purpose" and "hints" arguments are compatible with GtkInputPurpose and GtkInputHints: https://developer.gnome.org/gtk3/unstable/GtkEntry.html#GtkInputPurpose https://developer.gnome.org/gtk3/unstable/GtkEntry.html#GtkInputHints and the API is similar to the content_type event in the Wayland Input Method Framework: http://cgit.freedesktop.org/wayland/weston/tree/protocol/input-method.xml#n202 BUG= Review URL: https://codereview.appspot.com/11422043
2013-08-09Update source files with LGP 2.1 according to COPYING.fujiwarat28-140/+140
BUG=http://code.google.com/p/ibus/issues/detail?id=1424 TEST=rpmlint Review URL: https://codereview.appspot.com/12526043
2013-07-25daemon: fix PropertiesChanged signal emissionDaiki Ueno1-59/+47
This fixes a few problems of PropertiesChanged signal emission. First, it should be sent only when the properties have changed. Second, invalidated_properties should be set when the properties have been reset, not on error. Finally, the sender should be "org.freedesktop.IBus" rather than "org.freedesktop.DBus". BUG= R=takao.fujiwara1@gmail.com Review URL: https://codereview.appspot.com/11465045
2013-07-23Remove reference to primary owner on ReleaseNameEduardo Lima (Etrunko)1-1/+16
BUG=http://code.google.com/p/ibus/issues/detail?id=1636 TEST=src/tests/ibus-bus.c Review URL: https://codereview.appspot.com/11004043 Patch from Eduardo Lima (Etrunko) <eduardo.lima@intel.com>.
2013-07-19Fix error with gcc -Wformat -Werror=format-securityOsamu Aoki1-2/+2
BUG=http://code.google.com/p/ibus/issues/detail?id=1638 TEST=bus/ibusimpl.c Review URL: https://codereview.appspot.com/11471044 Patch from Osamu Aoki <osamu@debian.org>.
2013-07-17Remove ibus_bus_list_active_engines in bus/test-client.cfujiwarat1-35/+1
BUG=http://code.google.com/p/ibus/issues/detail?id=1637 TEST=bus/test-client.c Review URL: https://codereview.appspot.com/11336044
2013-07-10Load the system registry cache prior to the user one.fujiwarat9-860/+218
gnome-settings-daemon runs ibus-daemon after the user configures any input method engines and causes a delay to show the engines on UI because no cache exists for ibus-daemon. The system cache can avoid the user timing. Review URL: https://codereview.appspot.com/10364043
2013-06-14Refactor old getter and setter to dbus property in bus/ibusimpl.cfujiwarat1-131/+393
Review URL: https://codereview.appspot.com/9477043
2013-06-10Suppress warnings with Automake 1.13Daiki Ueno1-2/+1
The make variable INCLUDES is now obsoleted by AM_CPPFLAGS. BUG= R=Shawn.P.Huang@gmail.com Review URL: https://codereview.appspot.com/9915054
2013-06-04Remove g_type_init() calls.fujiwarat3-1/+6
https://git.gnome.org/browse/glib/commit/?id=1dc774a653e992e1153fbed16f90097fa8db467f https://git.gnome.org/browse/vala/commit/?id=f1fbafdfdc91fadaa57d2e073fc29cc6804d6ae3 Review URL: https://codereview.appspot.com/9727047
2013-05-29Delete ibus.desktopColin Walters2-23/+0
This is not an actual application, it just starts the daemon in the background. That's not something that should be in the application list. It should be started in the background when necessary. BUG=http://code.google.com/p/ibus/issues/detail?id=1628 Review URL: https://codereview.appspot.com/9833043 Patch from Colin Walters <walters@verbum.org>.
2013-05-15Add man files of /usr/bin files.fujiwarat2-2/+96
Review URL: https://codereview.appspot.com/9413043
2013-04-30Implement embed_preedit_text.fujiwarat1-41/+269
BUG=http://code.google.com/p/ibus/issues/detail?id=1606 Review URL: https://codereview.appspot.com/8112044
2013-03-26Fix build error and warnings in Fedora 18.Peng Huang2-17/+17
BUG=None TEST=Manual Review URL: https://codereview.appspot.com/7531047
2013-03-08Launch the second ibus engine too to reduce the launching time.fujiwarat1-0/+68
Currently the first ibus engine only is running but the second engine is also frequently used. It is good to run the second engine before user types Ctrl+space. BUG=RH#838734 TEST=src/tests/ibus-bus Review URL: https://codereview.appspot.com/7433049
2013-02-26daemon: allow "eavesdrop" match ruleDaiki Ueno2-18/+28
Recent dbus-monitor supplies "eavesdrop" match rule which ibus-daemon does not accept. This patch silently ignores the rule so ibus-daemon behave the same as before. BUG=none Review URL: https://codereview.appspot.com/7225062
2012-11-05Fix some build warnings.Peng Huang1-2/+0
BUG=None Review URL: https://codereview.appspot.com/6775097
2012-10-26ibus-daemon: use GFileMonitor instead of pollingDaiki Ueno7-116/+89
BUG=Issue#1514 Review URL: https://codereview.appspot.com/6589065
2012-10-23ibus-daemon: ignore standard component path if IBUS_COMPONENT_PATH is setDaiki Ueno1-9/+13
Don't load components from /usr/share/ibus/components if IBUS_COMPONENT_PATH is set. Currently the envvar is only useful for testing and appending the standard path makes little sense. BUG=none Review URL: https://codereview.appspot.com/6753044
2012-10-15Fix a typo.fujiwarat1-4/+4
TEST=Manually Review URL: https://codereview.appspot.com/6651061
2012-09-17Fix SIGABRT in bus_panel_proxy_register_propertiesfujiwarat1-3/+12
TEST=Manually Review URL: https://codereview.appspot.com/6499112
2012-09-12ibus-daemon: trigger engine to send RegisterProperties when panel appearsDaiki Ueno3-4/+71
BUG=none Review URL: https://codereview.appspot.com/6506094
2012-09-07Prevent IME menu being empty when focus outDaiki Ueno1-7/+1
Previously ibus-daemon did not make fake_context focused when focus-out, while it is supposed to do. BUG=none Review URL: https://codereview.appspot.com/6492086
2012-08-24tests: add engine-switch testDaiki Ueno1-3/+9
Moved engine specific test from ibus-bus.c to a separate file, so that it can be conditionally built depending on --enable-engine. Also do not register duplicate engine when loading component files. This is for the case when two engine descs with the same name are in different directories in IBUS_COMPONENT_PATH. BUG=none Review URL: https://codereview.appspot.com/6480052
2012-08-09Fix testcase failure when IBus is not installed.Daiki Ueno1-16/+25
BUG=none Review URL: https://codereview.appspot.com/6455068
2012-07-12bus: Own a name on the DBus session busRui Matos1-0/+4
This makes it easier for third parties to track the ibus-daemon life cycle. BUG=http://code.google.com/p/ibus/issues/detail?id=1476 TEST= Review URL: https://codereview.appspot.com/6374058 Patch from Rui Matos <tiagomatos@gmail.com>.
2012-04-27Fix some test codes.fujiwarat2-8/+18
BUG=http://code.google.com/p/ibus/issues/detail?id=1438 TEST=Linux desktop Review URL: https://codereview.appspot.com/6121053
2012-03-15ibus-daemon: make sure to focus out engine when unset.Daiki Ueno1-0/+4
BUG=none TEST=manual Review URL: https://codereview.appspot.com/5824046
2012-03-07Remove some unused code.Peng Huang1-20/+0
BUG=None TEST=Make Review URL: https://codereview.appspot.com/5756061
2012-03-05Enhance make distfujiwarat1-0/+2
TEST=Linux desktop Review URL: https://codereview.appspot.com/5730046
2012-02-21Fix review issues.Peng Huang20-145/+78
2012-02-21ibus-daemon: Fix a matchrule parse issue.Peng Huang2-3/+4
2012-02-21ibus-daemon: Move global variables into separated files.Peng Huang2-0/+77
2012-02-21Reenable test casues for ibus-daemonPeng Huang6-162/+189
2012-02-21Fix match rule parsing bug.Peng Huang1-0/+3
2012-02-21Remove some unused code and fix a focus issuePeng Huang2-126/+10
2012-02-21Fix a build errorPeng Huang1-3/+1
2012-02-21Remove some useless xkb layoutPeng Huang1-1/+1
2012-02-21refine code for reviewingPeng Huang2-6/+1
2012-02-21Make registered IME visible to panel.Peng Huang1-18/+7
2012-02-21Use xkb:layout:us as default engine.Peng Huang1-0/+2
2012-02-21Add xkb layouts switch support and add three demo xkb layouts.Peng Huang1-1/+1
2012-02-21Use g_list_free_full to simplified some code.Peng Huang4-26/+9
2012-02-21Rename ibus keysyms.Peng Huang3-4/+5