aboutsummaryrefslogtreecommitdiffstats
path: root/src/config-parser.c
AgeCommit message (Collapse)Author
2020-10-08Add SPDX-License-Identifier: LGPL-2.1Matthew
Fixes [YOCTO #13319] Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-18config-parser: Use matching printf formatKhem Raj
XML_GetCurrentLineNumber() returns unsigned long as clang is telling us here src/config-parser.c:603:6: warning: format specifies type 'int' but the argument has type 'XML_Size' (aka 'unsigned long') [-Wformat] XML_GetCurrentLineNumber(p), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2012-08-31Fix buildIan Honohan
2012-08-24config parser: if in widget mode, do not abort on parsing failuresTomas Frydrych
Such behaviour is not nice to the calling application.
2012-08-24Added --lang command line parameter to force layout localeTomas Frydrych
Normally the locale gets determined automatically from the environment, but there are times when an application might want to force a different locale (e.g., en_US).
2012-05-17Rudimentary support inclusion of xml files using <include/>Tomas Frydrych
We need some custom attributes here, so make our own <include/> tag rather then implementing XInclude machinery Attributes: * 'file' - what to include; path to be relative to layout directory * 'auto-locale': yes|no, default yes -- when 'yes', locale specific version of the include is loaded, same as is done for layouts themselves.
2012-03-09Long Shift == CAPSTomas Frydrych
Make long press on the shift key behave like a caps lock (Only implemented for the GtkWidget at the moment; the only reason for this is I can't be bothered to implement a timeout function ...)
2012-03-09Facilitate creation of multiple widgetsTomas Frydrych
* Refactor things, so that instead of various globals we have per- widget data * Implement object tear down
2012-03-09cairo backend: make it workTomas Frydrych
TODO: the colours should be easier to customize
2012-02-08Relicense to LGPL, apart from applet/applet.cRoss Burton
2006-07-202006-07-20 Matthew Allum <mallum@openedhand.com>mallum
* layouts/keyboard-ru.xml: * src/config-parser.c: (config_handle_key_subtag), (config_handle_layout_tag), (config_xml_start_cb), (mb_kbd_config_load): Apply patches from Paul Sokolovsky for Russian layout improvements and more error messages from config parser. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1362 b067294f-1dea-0310-9683-c47a78595994
2006-05-162006-05-16 Matthew Allum <mallum@openedhand.com>mallum
* src/config-parser.c: (config_handle_key_subtag): Try and load relative image filenaes * src/matchbox-keyboard-image.c: (png_file_load), (mb_kbd_image_new): Force an alpha channel into PNG images without one. * src/matchbox-keyboard-ui.c: (mb_kbd_ui_min_key_size), (mb_kbd_ui_allocate_ui_layout): Fix a layout issue in mb_kbd_ui_min_key_size() lieing. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1342 b067294f-1dea-0310-9683-c47a78595994
2006-05-152006-05-15 Matthew Allum <mallum@openedhand.com>mallum
* configure.ac: * layouts/keyboard.xml: * src/Makefile.am: * src/config-parser.c: (config_handle_key_subtag): * src/matchbox-keyboard-image.c: * src/matchbox-keyboard-key.c: (mb_kbd_key_set_image_face): * src/matchbox-keyboard-ui-xft-backend.c: (mb_kbd_ui_xft_redraw_key): * src/matchbox-keyboard-ui.c: (mb_kdb_ui_unit_key_size), (mb_kbd_ui_min_key_size): * src/matchbox-keyboard.h: Add initial support for defineable PNG images on keys. Keys with images sizing a little borked atm. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1341 b067294f-1dea-0310-9683-c47a78595994
2006-02-282006-02-28 Matthew Allum <mallum@openedhand.com>mallum
* src/config-parser.c: (config_load_file): Use ~/.matchbox not ~/matchbox git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1315 b067294f-1dea-0310-9683-c47a78595994
2005-10-272005-10-27 Matthew Allum <mallum@openedhand.com>mallum
* README: Update with current info * src/config-parser.c: (mb_kbd_config_load): * src/matchbox-keyboard-ui.c: (mb_kdb_ui_unit_key_size), (mb_kbd_ui_min_key_size), (mb_kbd_ui_allocate_ui_layout), (mb_kbd_ui_resize), (mb_kbd_ui_realize): * src/matchbox-keyboard.c: (mb_kbd_new): Minor cleanups. Improve cmd line option parsing and add a usage() func. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1269 b067294f-1dea-0310-9683-c47a78595994
2005-10-262005-10-26 Matthew Allum <mallum@openedhand.com>mallum
* AUTHORS: Populate. * Makefile.am: * configure.ac: * src/Makefile.am: Fix cairo build issues, * src/matchbox-keyboard-xembed.c: Add XEMBED support for embedding keyboard in other apps. * examples/Makefile.am: * examples/matchbox-keyboard-embbed.c: Add example embedding app * src/config-parser.c: (config_str_to_keysym), (config_str_to_modtype), (config_xml_start_cb): * src/matchbox-keyboard-key.c: (mb_kbd_key_get_extended), (mb_kbd_key_set_row), (mb_kdb_key_has_state), (mb_kbd_key_set_glyph_face), (mb_kbd_key_get_glyph_face), (mb_kbd_key_set_image_face), (mb_kbd_key_set_char_action), (mb_kbd_key_press): * src/matchbox-keyboard-layout.c: * src/matchbox-keyboard-row.c: * src/matchbox-keyboard-ui-cairo-backend.c: (mb_kbd_ui_cairo_text_extents), (mb_kbd_ui_cairo_load_font), (mb_kbd_ui_cairo_redraw_key), (mb_kbd_ui_cairo_pre_redraw), (mb_kbd_ui_cairo_resources_create), (mb_kbd_ui_cairo_resize), (mb_kbd_ui_cairo_init): * src/matchbox-keyboard-ui-cairo-backend.h: * src/matchbox-keyboard-ui-xft-backend.c: (mb_kbd_ui_xft_text_extents), (mb_kbd_ui_xft_redraw_key), (mb_kbd_ui_xft_resources_create), (mb_kbd_ui_xft_resize), (mb_kbd_ui_xft_init): * src/matchbox-keyboard-ui-xft-backend.h: * src/matchbox-keyboard-ui.c: (get_current_window_manager_name), (get_desktop_area), (get_xevent_timed), (mb_kbd_ui_send_keysym_press), (mb_kbd_ui_send_release), (mb_kdb_ui_unit_key_size), (mb_kbd_ui_min_key_size), (mb_kbd_ui_redraw_row), (mb_kbd_ui_swap_buffers), (mb_kbd_ui_redraw), (mb_kbd_ui_resources_create), (mb_kbd_ui_resize), (mb_kbd_ui_event_loop), (mb_kbd_ui_realize), (mb_kbd_ui_init): * src/matchbox-keyboard.c: (mb_kbd_new): * src/matchbox-keyboard.h: * src/util.c: (util_utf8_char_cnt), (util_file_readable): Fix GCC 4 Warnings. Add License to all files. Improve buggy cairo backend and add gradient keys git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1266 b067294f-1dea-0310-9683-c47a78595994
2005-04-27Make keyboard intelligently handle layout on screen orientation and rotationmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1132 b067294f-1dea-0310-9683-c47a78595994
2005-04-24populated README + minor tweaksmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1121 b067294f-1dea-0310-9683-c47a78595994
2005-04-21Lots, see ChangeLogmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1118 b067294f-1dea-0310-9683-c47a78595994
2005-04-18Handle resizes, implement much of keyboard state handlingmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1114 b067294f-1dea-0310-9683-c47a78595994
2005-04-17Add initial modifier codemallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1113 b067294f-1dea-0310-9683-c47a78595994
2005-04-17layout engine improvementsmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1110 b067294f-1dea-0310-9683-c47a78595994
2005-04-10Improvemnts to config parsing, beginnings of uimallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1103 b067294f-1dea-0310-9683-c47a78595994
2005-04-06Added framework code for new matchbox-keyboardmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1099 b067294f-1dea-0310-9683-c47a78595994