| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Only add a variation selector if there isn't one already.
|
|
|
|
| |
Replace all uses with gtk_widget_compute_bounds.
|
|
|
|
|
|
|
| |
Update all (non-deprecated) callers to use
gtk_widget_compute_point instead.
Fixes: #5697
|
|
|
|
|
|
|
| |
The loop sets empty = FALSE when there are emojis but for that
to work we need to initialize the value to TRUE initially.
Fixes: 7928532bc5c33b2c6a10bae138ebc6dca1843cb0
|
|
|
|
|
|
|
| |
gtk_widget_set_visible and gtk_window_present
are better alternatives, and calling gtk_widget_show
on newly created widgets is no longer necessary
anyway.
|
| |
|
|
|
|
|
| |
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
|
|
|
|
|
|
|
|
|
|
| |
When some of the Emoji have been filtered out by
a search term, arrow keynav would behave oddly and
get stuck in invisible sections. Fix this by ignoring
any filtered out children when moving between
sections for arrow keynav.
Fixes: #5076
|
|
|
|
|
| |
Make it more clear that the function is supposed to be called during the
dispose sequence of a widget.
|
| |
|
|
|
|
|
|
| |
The g_source_set_name calls were showing up as a
major source of strdups in our profiles. Avoid that
by using new GLib api when available.
|
|
|
|
|
|
|
|
|
|
|
| |
When loading the emoji data we just try to get the data for a language
while there may be territory specializations and emojibase provides
them.
So, split the loading function and try to load the data for the fully
defined language string (i.e. `it-ch`) before loading the generic one
for the language (i.e. `it`) and eventually falling back to the generic
english.
|
| |
|
|
|
|
|
| |
Load the emojis data in all the platforms, respecting the configured
GTK_DATA_PREFIX
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
The number of 7 columns was hardcoded in a few places
related to keynav across sections. The flowbox does
not have an api for it, but we can find out anyway
how many columns there are.
|
|
|
|
| |
Similar to .emoji-toolbar, it would be nice to have this for styling.
|
|
|
|
| |
This makes it more explicit that managers of popovers make it "present".
|
|
|
|
|
|
|
|
|
| |
This broke when we started using GDK_PROFILER_CURRENT_TIME for
timekeeping - that gets defined to 0 when we're building without
sysprof, so we can use it to make such determinations. Go back
to using g_get_monotonic_time().
Fixes: #3438
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the data files from https://github.com/milesj/emojibase.git
as source for our Emoji data. Slightly change our data format by
adding a group to each item, in both the Emoji data and in the
setting for recent-emoji.
Install translated versions of the data as separate resource
bundles in $prefix/gtk-4.0/emoji, and load them when appropriate.
Currently, we have data for de, en, es, fr, zh, with data taken
from Unicode 13 and CLDR 13.
Fixes: #950 #1511
|
|
|
|
|
|
| |
Match the name for Emoji completion, and display
it too. 'man worker' looks a lot more natural in
the UI than ':man_worker:'.
|
|
|
|
|
| |
We can avoid doing the extra work of case-folding and
tokenization whenever we filter in the Emoji chooser.
|
|
|
|
| |
And use them for matching in the Emoji chooser.
|
|
|
|
|
|
|
|
|
| |
Don't close the Emoji chooser when the Control
key is held while clicking. So you can insert
multiple Emoji without having to reopen the
chooser every time.
Fixes: #1002
|
| |
|
|
|
|
|
| |
This is the right thing to do, since we have a visible
entry and want text input to go there.
|
|
|
|
| |
Use the new sysprof collector api to do tracing.
|
| |
|
|
|
|
|
|
|
| |
new one
This was causing warnings when destroying the emoji chooser because it
had children left.
|
|
|
|
|
|
| |
Change gtk_widget_translate_coordinates and
gtk_native_get_surface_transform to operate
on doubles. Update all callers.
|
|
|
|
| |
These are all on GtkBox or enumerating children.
|
|
|
|
| |
This fixes several typos and missing references
|
|
|
|
|
|
|
| |
We want to remove GtkBin and GtkContainer as they don't
provide much useful functionality anymore.
See #2681
|
|
|
|
|
| |
Replace all uses of gtk_container_add on popovers
by gtk_popover_set_child.
|
| |
|
|
|
|
|
| |
It is not needed here, we are now scrolling
differently.
|
|
|
|
| |
Make Up/Down jump between sections in the Emoji grid.
|
|
|
|
|
|
|
|
| |
Without this, it seems impossible to make cross-section
keynav in the Emoji chooser work. I've tried, but got
lost between the focus, grab_focus, move_cursor and
keynav-failed vfuncs and signals, and their competing
implementations GtkFlowBox and GtkEmojiChooser.
|
|
|
|
|
| |
When the focus is moved to one of the Emoji children,
scroll it into view.
|
|
|
|
|
| |
Add an action to scroll to the next or previous section,
and bind it to Ctrl-n/Ctrl-p.
|
|
|
|
| |
This signal is going away. Use an action instead.
|
|
|
|
|
| |
This reverts commit 3ac4c76b18cc89a841ce09f0943539f16988fd21, reversing
changes made to 6ec96d2e989d029a303b8b20ec72b86f974c0e87.
|
|
|
|
| |
This signal is going away. Use an action instead.
|
|
|
|
|
| |
Make arrow and tab keys work in the
variations popover again.
|
|
|
|
| |
We can't attach popovers to unsuspecting widget anymore.
|
| |
|
|
|
|
|
|
|
|
|
| |
It is enough to just set the parent (and make the parent
call gtk_native_check_resize in size_allocate).
This commit removes the relative_to argument to the
constructors of GtkPopover and GtkPopoverMenu, and
updates all callers.
|