summaryrefslogtreecommitdiff
path: root/libgnomekbd
Commit message (Collapse)AuthorAgeFilesLines
* data: provide app iconJakub Steiner2023-02-131-1/+1
| | | | | | | | - fullcolor app icon - symbolic - emblem for gitlab Fixes https://gitlab.gnome.org/GNOME/libgnomekbd/-/issues/15
* desktop: Remove obsolete Bugzilla entriesJake Dane2022-09-304-18/+1
| | | | | | | | | The `X-GNOME-Bugzilla-*` entries were for use by bug-buddy, a GNOME 2 technology that's been gone for over a decade. These entries are obsolete and can be removed from the desktop file. The desktop file then has no variables so does not need to be configured. It is renamed from `*.in.in` to `*.in` to reflect that and build files and POTFILES are updated for this change.
* Revert "desktop: Remove obsolete Bugzilla entries"Michael Catanzaro2022-09-122-1/+14
| | | This reverts commit 2ed57e840ed8df1a38db226becb3ba3dfaf992db
* desktop: Remove obsolete Bugzilla entriesJake Dane2022-09-112-14/+1
| | | | | The X-GNOME-Bugzilla-* entries were for use by bug-buddy, a GNOME 2 technology that's been gone for over a decade. These entries are obsolete and can be removed.
* meson: Install pkgconfig filesMatt Turner2022-09-041-0/+16
|
* meson: Install introspection dataMatt Turner2022-09-041-16/+24
| | | | | And rename the option 'gir' to 'introspection' to match other GNOME projects.
* meson: Install libgnomekbd{,ui}.so.8Matt Turner2022-09-041-5/+3
| | | | | | | | | | | | | | | | | | | | Previously, the meson build system would install: - libgnomekbd.so.3.28.0 with symlinks from - libgnomekbd.so.8.0.0 - libgnomekbd.so This didn't match the autotools build system, which installed: - libgnomekbd.so.8.0.0 with symlinks from - libgnomekbd.so.8 - libgnomekbd.so The ABI didn't change between v3.26.1 (which only had autotools) and v3.28.0, so I don't think we should install .so.3.28.0 shared objects. This change makes meson install the same shared objects and symlinks as autotools.
* Invert alignment for RTL symbols to place them correctlyDaniel Kahn Gillmor2022-06-221-1/+8
| | | | | | | | | | | | | | https://docs.gtk.org/Pango/method.Layout.set_auto_dir.html says: > When the auto-computed direction of a paragraph differs from the > base direction of the context, the interpretation of > PANGO_ALIGN_LEFT and PANGO_ALIGN_RIGHT are swapped. Now that symbols are placed based using alignment, we don't want RTL symbols placed on the wrong side of the key rendering. To do this, we invert the alignment for RTL symbols. Closes: #8
* GkbdKeyboardDrawing: set_key_label_in_layout returns Bidi informationDaniel Kahn Gillmor2022-06-221-1/+4
| | | | | This information (whether a symbol is LTR or RTL) will be useful in figuring out how to align the symbol on the drawing of the key.
* Make all symbol drawings full-width, using alignment to place themDaniel Kahn Gillmor2022-06-221-30/+15
| | | | | | | | | | | | | | | | Currently, left-displayed symbols (those produced without AltGr) are drawn on a key rendering in a full-width cell, but right-displayed symbols (those produced with AltGr) are only drawn in half-width cells on the key rendering. This means that left-displayed symbols can still overlap with right-hand symbols if they happen to be wide, but right-hand symbols are more likely to be truncated ("ellipsized"). This change still allows the symbols to overlap, but makes right-displayed symbols less likely to be ellipsized. We do this by using alignment to place right-displayed symbols to the right, instead of using a half-width cell.
* gkbd-keyboard-display: Don't crash on unknown layoutRobert Ancell2022-06-221-0/+4
| | | | | Previously would crash when running: $ gkbd-keyboard-display -l nosuchlayout
* status: Fix wrong parent class structureCorentin Noël2022-06-221-1/+1
| | | | GkbdStatus is a GtkStatusIcon subclass.
* indicator: Modernize the codebaseCorentin Noël2022-06-172-36/+25
| | | | Use GLib helper macro to define the indicator.
* configuration: Remove unused code pathsCorentin Noël2022-06-171-16/+6
|
* gkbd-keyboard-display: include string.h to avoid the inplicite defination ↵zhaoqiang2022-06-151-0/+1
| | | | warning in build.
* Remove the `extern` keywordCorentin Noël2022-06-149-112/+97
| | | | Also make all the constant arrays internal.
* configuration: Use GLib macros to declare the objectCorentin Noël2022-06-142-75/+131
| | | | | | Allows to use autoptr and to reduce verbosity. Also add sanity checks to API endpoints.
* Merge branch 'modernize' into 'master'Corentin Noël2022-06-145-37/+26
|\ | | | | | | | | Avoid some deprecated Gdk/Gtk codepaths See merge request GNOME/libgnomekbd!10
| * Avoid deprecated GtkStock, use standard icon names insteadDaniel Kahn Gillmor2022-04-081-1/+1
| |
| * Drop deprecated GtkAlignment, apply properties directly to the labelDaniel Kahn Gillmor2022-04-081-5/+8
| |
| * gtk_icon_info_free is deprecated; use g_object_unref insteadDaniel Kahn Gillmor2022-04-081-2/+2
| |
| * Avoid use of GdkScreenDaniel Kahn Gillmor2022-04-083-19/+5
| | | | | | | | | | | | | | | | The only places that were using GdkScreen were using it to get monitor width and height. All the gdk_screen_* calls that were being used are explicitly deprecated. Use GdkDisplay instead.
| * Use plain "const" instead of deprecated "G_CONST_RETURN"Daniel Kahn Gillmor2022-04-082-10/+10
| |
* | Merge branch 'wip/piotrdrag/unicode-typography' into 'master'Corentin Noël2022-06-142-4/+4
|\ \ | | | | | | | | | | | | Use Unicode in translatable strings See merge request GNOME/libgnomekbd!1
| * | Use Unicode in translatable stringswip/piotrdrag/unicode-typographyPiotr Drąg2020-07-252-4/+4
| |/ | | | | | | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772762
* | Add meson build systemCorentin Noël2022-06-141-0/+190
|/ | | | Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
* rename g_strv_equal to gkbd_strv_equalAbderrahim Kitouni2018-12-181-2/+2
| | | | it conflicts with the newly added g_strv_equal in glib
* build: Fix desktop file generationPiotr Drąg2017-08-031-5/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=778089
* Move translator comments right above the stringsPiotr Drąg2016-10-111-4/+4
| | | | So they appear in .po files.
* build: Ensure we install gsettings schemasRui Matos2016-09-204-0/+1
| | | | Commit a0c98a08 left us with uninstallable schemas.
* gkbd-keyboard-display: Require that GDK use the X11 backendRui Matos2016-09-141-0/+1
| | | | This code is heavily dependent on X11 API.
* gkbd-keyboard-drawing: Don't use deprecated GDK APIRui Matos2016-09-141-13/+4
| | | | | Asking for a keyboard device's position doesn't even make sense anyway.
* gkbd-keyboard-drawing: Don't unset double bufferingRui Matos2016-09-141-1/+0
| | | | It's not needed with modern gtk+ .
* gkbd-keyboard-drawing: Don't set allocation from ::size-allocateRui Matos2016-09-141-6/+3
| | | | This isn't needed and in fact causes runtime warnings.
* gkbd-keyboard-drawing: Use non-deprecated API to get the font descRui Matos2016-09-141-6/+4
|
* gkbd-keyboard-drawing: Handle XkbGetKeyboard() failingRui Matos2016-09-141-12/+15
| | | | | | XkbGetKeyboard() might fail but we might still be able to work with a XkbGetKeyboardByName() later in gkbd_keyboard_drawing_set_keyboard() so don't abort the initialization if it fails.
* gkbd-keyboard-drawing: Prevent gtk+ keynav from taking focus awayRui Matos2016-09-141-1/+1
| | | | | | We need to tell gtk+ we handled the key event otherwise gtk+ keynav key events will move focus to the close button and it looks like the dialog stopped working.
* Add a translator comment to the .desktop filePiotr Drąg2016-07-281-0/+1
|
* Remove intltool markers from gschema filesPiotr Drąg2016-07-283-36/+36
|
* Use upstream gettext instead intltoolJavier Jardón2016-07-282-17/+17
|
* libgnomekbd/gkbd-keyboard-drawing.c: fix a segfaultAntonio Ospite2016-01-221-1/+1
| | | | | | | | | | | | | | | | | When drawing the keyboard without having set the groups and levels there is a segmentation fault: Program received signal SIGSEGV, Segmentation fault. 0x00007fffe49ae8c9 in draw_key_label (is_pressed=<optimized out>, xkb_height=<optimized out>, xkb_width=<optimized out>, xkb_origin_y=<optimized out>, xkb_origin_x=<optimized out>, angle=0, keycode=<optimized out>, drawing=0xa540e0, context=0xca6080) at gkbd-keyboard-drawing.c:1017 1017 if (drawing->groupLevels[glp] == NULL) Fix that. The widget now is able to draw a keyboard without the keys labels, which can be useful when testing just the keyboard geometry. https://bugzilla.gnome.org/show_bug.cgi?id=760988
* Fix criticalsMichael Catanzaro2016-01-211-1/+3
|
* libgnomekbd/gkbd-keyboard-drawing.c: fix modifier key pressed stateAntonio Ospite2016-01-211-20/+4
| | | | | | | | | | | | | | When track_modifiers is true and a modifier key gets pressed, do not free and reallocate the data and, in particular, do not reallocate drawing->keys zeroing it; this would result in the modifier keys pressed states to be forgotten and the modifier keys not to be shown as pressed when in fact they are (the keyboard symbols reflect the shift level correctly). Fix the current situation, allowing the modifier keys pressed state to be drawn correctly. https://bugzilla.gnome.org/show_bug.cgi?id=734621
* libgnomekbd/gkbd-keyboard-drawing.c: draw keys with invalid keycodesAntonio Ospite2016-01-211-3/+1
| | | | | | | | | | | Some keys like the function key "FN" are described in geometry files but they have no keycode associated to them. You can find such keys in the thinkpad and in the hhk geometry files. Allow drawing the shape of these keys with invalid keycodes, and just skip looking for the labels as the label is derived from the keycode. https://bugzilla.gnome.org/show_bug.cgi?id=734618
* Fix gobject-introspection commentsStef Walter2012-05-1211-22/+41
| | | | | | | * Cleans up a bunch of warnings, and gets g-ir-scanner to actually recognize the annotations. https://bugzilla.gnome.org/show_bug.cgi?id=675729
* Removed unneeded xmodmap supportSergey V. Udaltsov2012-05-042-44/+0
| | | | | Implemented in g-s-d through custom scripts https://bugzilla.gnome.org/show_bug.cgi?id=674874
* Following XDG specs, using user data directorySergey V. Udaltsov2012-04-281-21/+26
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=674873
* install : fix install with a DESTDIR (jhbuild)Alban Browaeys2012-04-101-2/+2
| | | | | | | | | | | | | | | Spurious double quotes around uidir and iconsdir makes install attempt to install in '<DESTDIR>"<iconsdir>"' ie '/opt/gnome/_jhbuild/root-libgnomekbd\"/opt/gnome/share/libgnomekb/icons\"' Then install fails to install the data files into the correct directory: '/opt/gnome/_jhbuild/root-libgnomekbd/opt/gnome/share/libgnomekb/icons'. It looks like the for loop to install items expands the icons and ui dirs while the mkdir -p does not. Fix this issue by removing the double quotes in th Makefile.am around the iconsdir and uidir assignments.
* gkbd_keyboard_config_options_equals: fix comparison of optionsOwen W. Taylor2012-04-051-0/+4
| | | | | | | | Since gkbd_keyboard_config_split_items uses static storage, if we want to call it twice and compare the results we have to make a copy. https://bugzilla.gnome.org/show_bug.cgi?id=673539
* Separating xmodmap patching into standalone functionsSergey V. Udaltsov2012-04-052-39/+45
| | | | A part of https://bugzilla.gnome.org/show_bug.cgi?id=660000 fix. The xmodmap config patching should happen regardless of the configuration changes (even if from xkb POV there was no change).