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

2773 Коммитов

Автор SHA1 Сообщение Дата
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
fujiwarat caffeaeee5 panelbinding: Fix SEGV in panel_binding_parse_accelerator
panel_binding_parse_accelerator() could return NULL of the unowned
IBus.ProcessKeyEventData with gcc optimization.
Since Vala does not provice a static local variable, the variable is
moved to the class member to fix this SEGV.
Also fixed an infinite loop to show a compose preedit in xterm.
Also a NULL preedit is fixed in the first emoji candidate from the
emoji category window.
2018-06-29 16:06:52 +09:00
fujiwarat 3a68ded197 ibusenginesimple: Do not show combined character on compose preedit
Some applications could combine their committed string with compose
character on preedit. E.g. dead_grave after 'e' on firefox

BUG=https://github.com/ibus/ibus/issues/1935
2018-06-29 16:02:32 +09:00
fujiwarat f9e30359d3 ibusenginesimple: Enable preedit for compose keys
BUG=https://github.com/ibus/ibus/issues/1935
2018-06-27 12:11:41 +09:00
fujiwarat c8a99943ca Update translations
Update po/ca.po po/da.po po/es.po po/fr.po po/hu.po po/ja.po po/nl.po
       po/pl.po po/sv.po po/uk.po po/vi.po po/zh_TW.po
2018-06-27 12:04:40 +09:00
fujiwarat 7cef5bf572 setup: Replace emoji font with Unicode font
Now the font settings of emoji is configurable in the session base
but not the application base and the current font setting on ibus-setup
effects on Unicode characters.
Also fixed the progress bar on Unicode candidate table.
2018-06-20 19:01:59 +09:00
fujiwarat 5ee3f48049 Move input focus on Emojier to engines' preedit 2018-06-18 12:46:11 +09:00
fujiwarat 37aa95f1ad setup: Replace GtkTable /w GtkGrid 2018-06-15 19:23:27 +09:00
fujiwarat ddc2284200 tools: Add ibus read-config --engine-id option for engine schemas
Fixed ibus read-config and reset-config options and also added --engine-id
sub option for engine schemas.
E.g.
% ibus read-config --engine-id anthy
% ibus read-config --engine-id com.github.libpinyin.ibus-libpinyin.libpinyin
2018-06-14 18:30:46 +09:00
fujiwarat cf4e2f1d81 bus: Rename panel-extension to emoji-extension for CLI 2018-06-14 17:29:06 +09:00
fujiwarat a1f91b2714 ui/gtk3: Get PangoAttrList of auxiliary text from IBusText
Since IBus auxiliary text would be one line, it's better to show the
character attributes likes color, italic, bold, on the auxiliary text.

Also deleted the cursor width from the X position of CandidatePanel
because IBus preedit overrides the original cursor of the applications.
2018-06-04 17:44:17 +09:00
fujiwarat 8ab0b603ba bus: Fix a SEGV in bus_input_context_emit_signal
IBus engines can call 'RequireSurroundingText' for a fake input context
if there is no input focus.
2018-05-23 19:20:10 +09:00
fujiwarat 196216a89a src: Add ibus-keypress 2018-05-11 19:13:03 +09:00