Граф коммитов

2935 Коммитов

Автор SHA1 Сообщение Дата
fujiwarat 4d3a8ff3d0 Delete Super-space notification
I'd assume most IBus 1.5.2 users are migrated to the latest 1.5.z now
but the notification dialog gives much attention and could be deprecated.

BUG=https://github.com/ibus/ibus/issues/2080
2019-02-13 16:00:42 +09:00
scootergrisen 64f4e412d0 client/x11: typo: sevrer to server
BUG=https://github.com/ibus/ibus/pull/2078
2019-02-04 16:15:28 +09:00
Anton Mikhalev 7a38e4d18e bus: Allow using non-abstract UNIX domain sockets
Previously, it was not possible to access ibus daemon from a separate
network namespace because its socket resided in an abstract namespace,
which is not shareable between network namespaces.

Passing --address=unix:path=/run/user/1000/ibus to ibus-daemon allows
clients running in containerized environment to communicate with daemon
as long as /run/user/1000 is mounted within container.

BUG=https://github.com/ibus/ibus/pull/2077
2019-02-04 16:07:02 +09:00
bmansurov 4592ce512f engine: Add Uzbek layouts
BUG=https://github.com/ibus/ibus/pull/2069
2019-01-29 18:02:04 +09:00
fujiwarat 4d7c1e00e1 Delete weak pointer in GList.SList for vala 0.43.4
Vala 0.43.4 does not allow to convert a weak pointer to the full one in SList.

emojier.vala:424.36-425.73: error: Assignment: Cannot convert from
`GLib.SList<weak IBus.EmojiData>' to `GLib.SList<IBus.EmojiData>?'
emojier.vala:636.9-637.69: error: Assignment: Cannot convert from
`GLib.SList<weak IBus.UnicodeBlock>' to `GLib.SList<IBus.UnicodeBlock>'
panel.vala:526.36-526.65: error: Assignment: Cannot convert from
`GLib.List<weak IBus.EngineDesc>' to `GLib.List<IBus.EngineDesc>?'
2019-01-29 17:57:16 +09:00
fujiwarat 0f5084e07c src/ibuscomposetable: Replace assert with warning for .XCompose
BUG=rhbz#1470673
2019-01-11 12:56:42 +09:00
fujiwarat be7fb813e5 client/gtk2: Fix Atom and Slack for Flatpak
Seems Atom, slack, com.visualstudio.code does not enable
gtk_key_snooper_install() and this issue causes to call
gtk_im_context_filter_keypress instead of calling ibus APIs.

BUG=https://github.com/ibus/ibus/issues/1991
2019-01-08 12:02:37 +09:00
fujiwarat 60e246ef15 test: Add flatpak-builder file for org.freedesktop.Platform 2019-01-08 12:02:35 +09:00
fujiwarat 0fd043c3b4 portal: Update APIs for Hangul preedit in Flatpak
BUG=https://github.com/ibus/ibus/issues/1980
2019-01-08 12:02:32 +09:00
Mathieu Bridon 4ef976a8b9 introspection: Tell the GI scanner to include the C headers
This adds the following line to the generated gir file:

    <c:include name="ibus.h"/>

This is important, for example for Rust bindings generated from the
gtk-rs tooling.

BUG=https://github.com/ibus/ibus/pull/2071
2019-01-07 21:15:35 +09:00
fujiwarat 9ae2d4658f client/gtk2: Use button-press-event only with IBUS_ENGINE_PREEDIT_COMMIT
BUG=https://github.com/ibus/ibus/issues/1980
2018-12-20 16:40:31 +09:00
fujiwarat 7b9c034f57 m4: Add ibuslocale.m4 to Makefile.am 2018-12-17 20:26:32 +09:00
glasseyes 1cd5254811 src: use iso 639-3 to have names for more languages
Keyman and others support them so they shouldn't be in "Other"

BUG=https://github.com/ibus/ibus/issues/2064
2018-12-17 20:20:11 +09:00
fujiwarat a78e7f8deb configure: Generate ibus_localedir variable 2018-12-17 20:10:34 +09:00
fujiwarat c7d8771cb9 client/gtk2: Fix SEGV on mouse clicks when ibus-daemon not running 2018-12-11 19:16:10 +09:00
fujiwarat 28b0744ad1 src: Clear preedit in IBusEngineSimple with focus changes
BUG=https://github.com/ibus/ibus/issues/2063
2018-12-10 13:21:42 +09:00
fujiwarat ba41173c45 src: Show compose preedit with custom compose file
IBusEngineSimple is fixed for custom compose files
 - Show preeedit with custom compose file
 - Tentative compose preedit can be deleted by Backspace

BUG=https://github.com/ibus/ibus/issues/2058
2018-12-07 17:38:09 +09:00
fujiwarat 4c40afba9c client/gtk2: Always reset and clear preedit on mouse click
Thinking about the reset signal again, now I think it's good to emit
the reset signal and clear the preedit on mouse click for any engines
besides Hangul because the behavior could be handled by each engine
with the reset signal.

BUG=https://github.com/ibus/ibus/issues/1980
2018-12-06 16:53:57 +09:00
ZhaoQiang 639960a827 src: Fix typos in comment lines
BUG=https://github.com/ibus/ibus/pull/2059
2018-12-03 18:11:32 +09:00
fujiwarat 7b3b8c8b0c client/gtk2: Do not delete IBUS_CAP_SURROUNDING_TEXT
retrieve-surrounding signal could be failed with the first typing
on firefox. It could be a bug in firefox but now IBusIMContext does not
delete IBUS_CAP_SURROUNDING_TEXT in the capabilities as a workaround
when retrieve-surrounding signal is failed.
Also added retrieve-surrounding signal after some committing text.

BUG=https://github.com/ibus/ibus/issues/2054
2018-11-13 14:27:52 +09:00
fujiwarat a40631e166 Detect mouse click to commit Hangul preedit
If preedit text is not committed with the mouse click, preedit text
is moved to the new cursor position in Hangul typing.
Since set_cursor_location() is received before the reset() signal is
sent to ibus-daemon and commit_text() signal is received from
ibus-daemon, UpdatePreeditTextWithMode D-Bus method is newly added
and now ibus clients commit the preedit.

BUG=https://github.com/ibus/ibus/issues/1980
2018-11-09 15:11:51 +09:00
fujiwarat 3172c3b23f RHEL code reviews 2018-10-31 17:42:38 +09:00
fujiwarat b6086665bc data/dconf: Fix a typo 2018-10-30 11:57:19 +09:00
fujiwarat 3914d3a2b1 data/dconf: Add comments in org.freedesktop.ibus.gschema.xml 2018-10-30 11:54:52 +09:00
fujiwarat aa24a526dd src/tests: Fix the location of org.freedesktop.ibus.gschema.xml
The location has been changed since xgettext migration.
2018-10-26 19:01:19 +09:00
fujiwarat c1b55431c0 src/tests: Fix make check in Fedora 29
ibus-bus and ibus-compose failed in Fedora 29.

1. In ibus-bus with runtest, ibus-daemon failed to restart in
start_exit_async() because it seems to have conflicting IO with runtest
and ibus-daemon failed to close a file descriptor in _restart_server().
The solution is to add a sleep in start_exit_async().
Also added ibus_get_address() in test_async_apis_finish() to check
if ibus-daemon finished to restart.

2. In ibus-compose, the GTK application could not get the ibus module.
The solution is to export GTK_IM_MODULE=ibus.

3. Added DISABLE_DAEMONIZE_IN_TESTS to get error messages in ibus-daemon.
% make DISABLE_DAEMONIZE_IN_TESTS=1 check
2018-10-26 18:44:35 +09:00
fujiwarat a6710817b3 Gettext migration for gschema.xml file
https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration
2018-10-16 19:46:01 +09:00
fujiwarat 74a00cc93b data/dconf: Rename org.freedesktop.ibus.gschema.xml[.in] 2018-10-16 18:17:41 +09:00
fujiwarat a8e8b694dc data/dconf: Delete dconf dependencies
gsettings-schema-convert has not worked with python3 since GConf
has been deprecated since 2011 so we cannot disable python2
in canse GConf is enabled.
I don't wish to maintain both ibus.schemas.in and
org.freedesktop.ibus.gschema.xml.in and now decide to delete
whole the GConf builds.
gsettings is now stable and can be used instead.
ibus-dconf will be deperecated in the near future.

BUG=https://bugzilla.gnome.org/show_bug.cgi?id=759334
2018-10-03 17:01:59 +09:00
fujiwarat 41c866868a src: Update translatable strings in ibusunicodegen.h 2018-10-03 16:30:26 +09:00
fujiwarat 6e315973f4 ui/gtk3: Fix g_return_val_if_fail in ibus_emojier_clamp_page
BUG=https://github.com/ibus/ibus/issues/2042
2018-09-25 15:42:20 +09:00
fujiwarat 1c6565e205 ui/gtk3: Fix SEGV when commit an emoji on Emojier in Wayland
Just pressing Space key without emoji annotations can launch Emojier
popup and the popup takes a focus in Wayland and the chosen emoji is
output when the original text application gets the focus after Emojier
popup release the focus. Emojier disabled Ctrl-Shift-e after got the focus.
But currently GNOME Wayland has a bug not to send focus-in until a
key press or mouse click happens [1] and Emojier causes a SEGV.
Now Emojier disables Ctrl-Shift-e immediately when an emoji is chosen
whether focus-in comes or not and fixes the SEGV.

[1] https://gitlab.gnome.org/GNOME/gnome-shell/issues/573

BUG=rhbz#1625187
2018-09-14 16:15:41 +09:00
fujiwarat 809d880337 ui/gtk3: Do not move Emojier popup with the active candidate in Xorg
Probably I think it's not useful to change the popup position frequently.
The popup size is always slightly changed with the emoji annotation length.
2018-08-30 12:58:57 +09:00
fujiwarat e6badb494e ui/gtk3: Support Shift-Space to insert a Space on Emojier preedit
Implemented Shift-Space on preedit since Shift-Space had worked on
Emojier's GtkEntry in the previous release.
2018-08-30 12:57:46 +09:00
fujiwarat 28d22176ae ui/gtk3: Fix SEGV when type ASCII on emojier
Emojier still included Gtk.Entry, accepted key events in Wayland,
reset the lookup table and it caused SEGV because IBus.Text
is NULL in the lookup table in Emojier.get_current_candidate().
Now Gtk.Entry is deleted completely.

BUG=rhbz#1618682
2018-08-30 12:57:33 +09:00
fujiwarat 7edaefdc1d ui/gtk3: Do not clear unicode data when emoji annotation lang is changed 2018-08-22 17:20:53 +09:00
fujiwarat aa0f4252ff ui/gtk3: Check if gdk-wayland is installed
BUG=https://github.com/ibus/ibus/issues/2035
2018-08-10 15:43:58 +09:00
fujiwarat fd9d4a927d Release 1.5.19 2018-08-08 15:41:41 +09:00
fujiwarat 999aee3f4b po: Update translations
Update po/hu.po po/nl.po
2018-08-08 15:39:13 +09:00
fujiwarat b94e8f2d99 src: Replace deprecated BOOL with BOOLEAN for glib-genmarshal 2018-08-07 20:33:32 +09:00
fujiwarat 5db6e7b40e src/tests: Ask --enable-memconf in make check instead of build order 2018-08-07 20:33:26 +09:00
fujiwarat 2695708677 src/tests: Fix make check to link src/libibus.so 2018-08-07 16:34:18 +09:00
fujiwarat 428e64eac8 src: Describe "default" layout in ibus_engine_desc_new()
BUG=https://github.com/ibus/ibus/issues/2011
2018-08-06 15:59:06 +09:00
fujiwarat dc5e7eeba3 ui/gtk3: Show previous emojis with "history" annotation 2018-08-06 15:26:42 +09:00
fujiwarat f328fd67f4 client/gtk2: Add IBUS_DISCARD_PASSWORD for firefox and chrome
popup window in firefox is closed in Xorg GNOME when password entry
is focus on. It's caused by gnome-shell [1].
Now IBUS_DISCARD_PASSWORD and IBUS_DISCARD_PASSWORD_APPS enviroment
variables are implemented in IBus GTK clients as a workaround.

env IBUS_DISCARD_PASSWORD=1 firefox
or
export IBUS_DISCARD_PASSWORD_APPS='firefox,.*chrome.*'

can discard typing characters on the password entries.

[1] https://gitlab.gnome.org/GNOME/gnome-shell/issues/391

BUG=https://github.com/ibus/ibus/issues/2002
2018-08-06 12:33:44 +09:00
fujiwarat 5f44e73077 data/dconf: Add man pages of 00-upstream-settings(5) and ibus(5)
Also delete --mem-profile option in ibus-daemon(1)
2018-08-03 14:58:10 +09:00
Ryutaroh Matsumoto be7554cea2
option --monitor-timeout should be removed
ibus-daemon(1) has explanation of --monitor-timeout, but main.c does not accept it and make an error.
2018-08-02 08:10:04 +09:00
fujiwarat 8d302c853f RHEL code reviews 2018-07-24 16:04:31 +09:00
Kentaro Hayashi 0dde239a3c bus: warn deprecated --mem-profile option
Since GLib 2.46, memory profiling feature does not work anymore.

GLib 2.46 or later means that Ubuntu 16.04 or later. Ubuntu
14.04 (trusty) are still supported as LTS phase, but it seems that
GLib is old enough (2.40) to drop support.

As a result:

  * older than GLib 2.46: Just drop support
  * GLib 2.46 or later: Show a warning message if --mem-profile is
    used.
2018-07-24 15:20:51 +09:00
Takuro Ashie 6b47e41d66 Remove a misleading "const" modifier of a return value
ibus_key_event_to_string() uses g_string_free(str, FALSE) to return
a string so that users must free it. To clarify it, the const
modifier should be removed.
2018-07-20 12:38:53 +09:00