gnome-shell/data
Marco Trevisan (Treviño) dab60d5580 renameFolderMenu: Use a custom menu item inheriting from PopupBaseMenuItem
The RenameFolderMenu uses the internal box as a menu item, while PopupMenu
expects to have PopupBaseMenuItem based children with a delegate set.

Instead of using a custom menu with a customized box acting as menu
item,just add a RenameFolderMenuItem that inherits from the parent,
adjusting the features as we need them. In fact, the rename folder menu item
doesn't need any label, padding or default styling so we can reuse
PopupMenuBaseItem after we use our styling properties and we set the
Ornament to HIDDEN.

To get the proper style in place, define rename-folder-popup and
rename-folder-popup-item to override the default popup-menu-item rule
padding instead of using margins.

Pass the menu item as menu's focusActor as this will key-focus it on pop-up,
by overriding the key_focus_in() vfunc we can then delegate the focus
handling to the entry's clutter-text.

Also override the map() vfunc in order to update the entry's content before
mapping the entry.

Finally, use the item's activate method in order to tell the parent menu
we're done with it and that the menu can be closed.

As consequence we can also remove the menu's popup() method, and just use
the default open().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/720
2019-09-20 15:53:42 +00:00
..
dbus-interfaces dateMenu: Stop accessing app settings directly 2019-08-08 17:41:46 +02:00
osk-layouts osk-layouts: Fix French layout 2019-03-04 20:55:15 +00:00
theme renameFolderMenu: Use a custom menu item inheriting from PopupBaseMenuItem 2019-09-20 15:53:42 +00:00
00_org.gnome.shell.gschema.override Replace custom override schema with per-desktop override 2018-07-31 18:36:26 +00:00
50-gnome-shell-system.xml build: Say good-bye to intltool 2016-08-19 22:13:14 +02:00
emoji.json keyboard: Add Emoji keyboard 2019-02-05 16:25:57 +01:00
gnome-shell-dbus-interfaces.gresource.xml dateMenu: Stop accessing app settings directly 2019-08-08 17:41:46 +02:00
gnome-shell-disable-extensions.service data: Update systemd units 2019-08-05 21:38:51 +00:00
gnome-shell-extension-prefs.desktop.in.in extensionPrefs: Tweak UI 2017-02-15 23:20:14 +01:00
gnome-shell-osk-layouts.gresource.xml osk-layouts: Fix French layout 2019-03-04 20:55:15 +00:00
gnome-shell-overrides-migration.desktop.in tools: fix XDG desktop syntax in gnome-shell-overrides-migration 2018-08-03 00:49:49 +02:00
gnome-shell-overrides.convert data: Do not convert 'button-layout' setting 2014-06-10 12:32:28 +02:00
gnome-shell-theme.gresource.xml Theme: update to sync with gtk Adwaita 2019-06-21 10:44:08 +02:00
gnome-shell-wayland.service.in data: Lower TimeoutStartSec in systemd units 2019-09-12 08:16:10 +00:00
gnome-shell-wayland.target data: Update systemd units 2019-08-05 21:38:51 +00:00
gnome-shell-x11.service.in data: Lower TimeoutStartSec in systemd units 2019-09-12 08:16:10 +00:00
gnome-shell-x11.target data: Update systemd units 2019-08-05 21:38:51 +00:00
gnome-shell.portal Provide org.freedesktop.impl.portal.access implementation 2016-07-20 17:14:12 +02:00
meson.build meson: Avoid using relative paths to po directory 2019-08-05 21:38:51 +00:00
org.gnome.Shell.desktop.in.in data: Flag in desktop file that gnome-shell can be started using systemd 2019-08-05 21:38:51 +00:00
org.gnome.shell.gschema.xml.in dateMenu: Stop accessing app settings directly 2019-08-08 17:41:46 +02:00
org.gnome.Shell.PortalHelper.desktop.in.in Add translator comments to .desktop files 2016-08-19 23:15:20 +02:00
org.gnome.Shell.PortalHelper.service.in Add a helper to handle captive portal logins 2014-06-26 19:54:58 +02:00
perf-background.xml.in Add a special background to use for performance testing 2014-08-18 10:54:42 -04:00
README.osk-layouts data: Add README and supporting script to update keyboard layouts from CLDR 2018-02-05 17:46:57 +01:00
update-osk-layouts.sh data: Don't drop emoji layout on update 2019-03-04 20:55:15 +00:00

Gnome-shell OSK layouts are extracted from CLDR layout definitions:
https://www.unicode.org/cldr/charts/latest/keyboards/layouts/index.html

Updating these involves several steps:

1) Downloading and unzipping the tarball found at:
   http://www.unicode.org/Public/cldr/latest/keyboards.zip

   This file contains XML files describing the keyboard layouts.

2) Cloning the cldr2json script at:
   git://repo.or.cz/cldr2json.git

   It will be used to convert the XML files into JSON that can be
   directly consumed by gnome-shell.

3) Running the script to produce the files:
   ./cldr2json <input-directory> <output-directory>

   We shall usually use the "android" folder, since that's most
   complete, and similar to our UI and target sizes. And the target
   directory must be data/osk-layouts in this repository.

4) Modify gnome-shell-osk-layouts.gresource.xml to include the files

5) Do git add on the updated/new files, and git commit.


Or alternatively:

1) Run update-osk-layouts.sh

2) Do git add and git commit