Skip to content

Commit 7868b8f

Browse files
committed
Revert "Remove XAppKbdLayoutController class."
This reverts commit c22f968. Even though it's gone from Cinnamon and nobody uses it, we should keep this for another year or so. - This gives us flexibility in tagging. We don't want xapp to have to wait for Cinnamon to be ready to be tagged (This is important for rolling distros). - This gives us flexibility in backporting. New tools might depend on xapp 3.0. We want to be able to backport them with the lib, without having to backport Cinnamon.
1 parent 7a3a06f commit 7868b8f

File tree

7 files changed

+1597
-1
lines changed

7 files changed

+1597
-1
lines changed

debian/control

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ Build-Depends:
1515
libgdk-pixbuf-2.0-dev,
1616
libgirepository1.0-dev (>= 0.10.2-1~),
1717
libglib2.0-dev (>= 2.44),
18+
libgnomekbd-dev,
1819
libgtk-3-dev (>= 3.16),
1920
libx11-dev,
21+
libxkbfile-dev,
2022
meson,
2123
python-gi-dev,
2224
python3,
@@ -57,6 +59,7 @@ Depends:
5759
libgnomekbd-dev,
5860
libgtk-3-dev (>= 3.16),
5961
libxapp1 (= ${binary:Version}),
62+
libxkbfile-dev,
6063
${misc:Depends},
6164
Description: XApp library - development files
6265
This package provides the include files and static library for the XApp

debian/libxapp1.symbols

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@ libxapp.so.1 libxapp1 #MINVER#
9191
xapp_icon_chooser_dialog_set_default_icon@Base 1.6.9
9292
xapp_icon_chooser_dialog_set_property@Base 1.4.9
9393
xapp_icon_size_get_type@Base 1.4.9
94+
xapp_kbd_layout_controller_get_all_names@Base 1.4.9
95+
xapp_kbd_layout_controller_get_current_flag_id@Base 1.4.9
96+
xapp_kbd_layout_controller_get_current_group@Base 1.4.9
97+
xapp_kbd_layout_controller_get_current_icon_name@Base 1.4.9
98+
xapp_kbd_layout_controller_get_current_name@Base 1.4.9
99+
xapp_kbd_layout_controller_get_current_short_group_label@Base 1.4.9
100+
xapp_kbd_layout_controller_get_current_variant_label@Base 1.4.9
101+
xapp_kbd_layout_controller_get_enabled@Base 1.4.9
102+
xapp_kbd_layout_controller_get_flag_id_for_group@Base 1.4.9
103+
xapp_kbd_layout_controller_get_icon_name_for_group@Base 1.4.9
104+
xapp_kbd_layout_controller_get_short_group_label_for_group@Base 1.4.9
105+
xapp_kbd_layout_controller_get_type@Base 1.4.9
106+
xapp_kbd_layout_controller_get_variant_label_for_group@Base 1.4.9
107+
xapp_kbd_layout_controller_new@Base 1.4.9
108+
xapp_kbd_layout_controller_next_group@Base 1.4.9
109+
xapp_kbd_layout_controller_previous_group@Base 1.4.9
110+
xapp_kbd_layout_controller_render_cairo_subscript@Base 1.4.9
111+
xapp_kbd_layout_controller_set_current_group@Base 1.4.9
94112
xapp_monitor_blanker_are_monitors_blanked@Base 1.4.9
95113
xapp_monitor_blanker_blank_other_monitors@Base 1.4.9
96114
xapp_monitor_blanker_get_type@Base 1.4.9

docs/reference/XAppKbdLayoutController.html

Lines changed: 745 additions & 0 deletions
Large diffs are not rendered by default.

docs/xapp-docs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<xi:include href="xml/xapp-gpu-offload-helper.xml"/>
2323
<xi:include href="xml/xapp-icon-chooser-button.xml"/>
2424
<xi:include href="xml/xapp-icon-chooser-dialog.xml"/>
25+
<xi:include href="xml/xapp-kbd-layout-controller.xml"/>
2526
<xi:include href="xml/xapp-monitor-blanker.xml"/>
2627
<xi:include href="xml/xapp-preferences-window.xml"/>
2728
<xi:include href="xml/xapp-stack-sidebar.xml"/>

libxapp/meson.build

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ switcheroo_sources = gnome.gdbus_codegen(
7171

7272
xapp_sources += switcheroo_sources
7373

74+
if not app_lib_only
75+
libdeps += dependency('libgnomekbdui', required: true)
76+
xapp_headers += 'xapp-kbd-layout-controller.h'
77+
xapp_sources += 'xapp-kbd-layout-controller.c'
78+
endif
79+
7480
xapp_statusicon_interface_sources = gnome.gdbus_codegen(
7581
'xapp-statusicon-interface',
7682
sources: 'org.x.StatusIcon.xml',
@@ -132,7 +138,8 @@ pkg.generate(
132138
subdirs: 'xapp',
133139
description: 'Utility library',
134140
version: meson.project_version(),
135-
requires: ['gtk+-3.0', 'gobject-2.0', 'cairo']
141+
requires: ['gtk+-3.0', 'gobject-2.0', 'cairo'],
142+
requires_private: 'xkbfile',
136143
)
137144

138145
install_data(['xapp-glade-catalog.xml'],

0 commit comments

Comments
 (0)