summaryrefslogtreecommitdiff
path: root/gdk/gdkkeys.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* gdk: Make GdkKeymap a private apiMatthias Clasen2020-04-061-71/+0
| | | | We have replacement apis in GdkDevice and GdkDisplay.
* Move GdkKeymapKey to gdktypes.hMatthias Clasen2020-04-051-27/+0
| | | | We are going to use this type in a different header.
* gdk: Make gdk_keyval_name() return a const charBenjamin Otte2020-02-091-1/+1
| | | | The string is const, so return it like that.
* Use a single compilation symbolEmmanuele Bassi2019-11-271-1/+1
| | | | | | | | | | | | We use a compilation symbol in our build to allow the inclusion of specific headers while building GTK, to avoid the need to include only the global header. Each namespace has its own compilation symbol because we used to have different libraries, and strict symbol visibility between libraries; now that we have a single library, and we can use private symbols across namespaces while building GTK, we should have a single compilation symbol, and simplify the build rules.
* The big versioning cleanupMatthias Clasen2018-02-061-4/+4
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* Add a display property to keymapsMatthias Clasen2018-01-141-0/+3
| | | | | This is a general pattern we want to follow for all objects in GDK. Also add a getter.
* Drop gdk_keymap_get_for_displayMatthias Clasen2017-12-151-3/+0
| | | | It has been replaced by gdk_display_get_keymap.
* Drop gdk_keymap_get_default()Matthias Clasen2017-12-141-2/+0
| | | | | It is better to use the explicit keymap getter - the default display may not even use the current gdk backend.
* gdkkeys: Add support to _get_scroll_lock_state()Fabiano Fidêncio2015-04-271-0/+2
| | | | | | | GdkKeymap already has support for _get_num_lock_state() and _get_caps_lock_state(). Adding _get_scroll_lock_state() would be good for completness and some backends (Windows?) could take advantage of this.
* Drop GDK_MULTIHEAD_SAFEMatthias Clasen2014-06-111-2/+0
| | | | | We don't support multiple screens anymore, so there is no need for marking API as multihead safe any longer.
* Use proper quotes in gdkWilliam Jon McCann2014-02-051-2/+2
|
* Add GDK_AVAILABLE_IN_ALL annotations in gdkMatthias Clasen2013-05-051-1/+22
| | | | | This is in preparation to modernizing our handing of exported symbols.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gdk: Use versioned deprecationsMatthias Clasen2012-02-271-0/+3
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gdk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* Add a way to get the current modifier stateMatthias Clasen2012-02-211-0/+1
| | | | | Xkb makes this available to us, and it is useful if you want to do easter eggs that are triggered by Alt.
* Bug 659602 - Provide an abstraction for the platform's use of modifier keysMichael Natterer2011-09-271-0/+3
| | | | | | | | Add enum GdkModifierIntent which identifies use cases for modifier masks and GdkKeyMap::get_modifier_mask(). Add a default implementation which returns what is currently hardcoded all over GTK+, and an implementation in the quartz backend. Also add gtk_widget_get_modifier_mask() which simplifies things by doing widget->display->keymap->get_modifier_mask().
* gdk/gdkkeys.h: Remove api documentation as Its already in the .c fileJavier Jardón2011-09-161-18/+0
|
* Consistently hide class structsMatthias Clasen2010-12-241-5/+0
| | | | | And, since we've decided to keep the structs private, there is no point in having the standard GObject clas macros anymore either.
* Explode gdkinternals.h into per-class private headersMatthias Clasen2010-12-211-6/+0
| | | | | At the same time, move some more class and instance structs out of public headers.
* Move GdkKeymapClass definition to internal headerAlexander Larsson2010-12-211-9/+0
| | | | This lets us change this without affecting apps.
* docs: Move documentation to inline comments: gdkkeysJavier Jardón2010-11-161-11/+51
|
* [gdk] Add gdk_keymap_get_num_lock_stateWilliam Jon McCann2010-07-011-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623239
* Seal gdkMatthias Clasen2010-05-251-1/+1
| | | | | | Add G_SEAL annotation for struct members, and add accessors for the (useful) fields. Patch based on work by Garrett Regier, see bug #592580.
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Fix a compatibility problemMatthias Clasen2010-02-121-0/+2
| | | | | | | | It turns out that my attempt at handling Super, Hyper and Meta better is causing problems, mostly because Alt and Meta are commonly colocated in the modmap, and apps do a check for the Alt modifier regularly. See e.g bug 607697.
* Try harder to handle accelerators involving virtual modifiersMatthias Clasen2009-12-211-0/+2
| | | | | | | | | This patch changes GDK to add all matching virtual modifiers in the state field of the key event. The corresponding GTK+ change makes use of a new GdkKeymap function to map virtual modifiers back to real modifiers and detect conflicts while doing so. This should fix bug 603190 and bug 427409.
* Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc.Matthias Clasen2008-09-291-0/+2
| | | | | | | | | | | | | | | | | | | 2008-09-29 Matthias Clasen <mclasen@redhat.com> Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc. * gdk/gdk.symbols: * gdk/gdkkeys.[ch]: Add a new GdkKeymap::state-changed signal, and a gdk_keymap_get_caps_lock_state function. * gdk/x11/gdkkeys-x11.c: Implement it here. For now, only emit state-changed when caps lock lockedness changes. * gdk/x11/gdkdisplay-x11.c: Also select for modifier lock status changes in the XkbSelectEventDetails call. svn path=/trunk/; revision=21545
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* define __GDK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gdk/gdk.h: define __GDK_H_INSIDE__ around including all other headers. * gdk/gdkenumtypes.h.template * gdk/gdk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. Also removed some redundant includes and did some tiny trailing whitespace removal that's not worth to commit separately. * gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual files. * gdk/win32/gdkwin32.h * gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all other includes. svn path=/trunk/; revision=20217
* New function to determine if keyboard layouts for both LTR and LTRMatthias Clasen2007-06-301-0/+1
| | | | | | | | | | | | | | | 2007-06-29 Matthias Clasen <mclasen@redhat.com> * gdk/gdk.symbols: * gdk/gdkkeys.h: * gdk/x11/gdkkeys-x11.c (gdk_keymap_have_bidi_layouts): New function to determine if keyboard layouts for both LTR and LTR languages are in use. Refactor the direction caching code to make this information available. (#451575, Behnam Esfahbod) svn path=/trunk/; revision=18301
* Cleanup. (#169648, Fabricio Barros Cabral)Matthias Clasen2005-06-121-6/+2
| | | | | | 2005-06-12 Matthias Clasen <mclasen@redhat.com> * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
* Add a keys_changed signal emitted when the keymap changes. (#72148)Owen Taylor2002-09-231-0/+1
| | | | | | | | | | | | | Mon Sep 23 16:48:46 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.[ch] gdk/x11/gdkkeys-x11.c gdk/x11/gdkevents-x11.c: Add a keys_changed signal emitted when the keymap changes. (#72148) * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): Hook up code to handle keymap changes, change to keep a linked list of keymap entries so that we can reinsert them in the same order on a keymap change.
* Start of integration of Erwann Chenede's multihead work from theOwen Taylor2002-04-251-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Apr 25 16:51:40 2002 Owen Taylor <otaylor@redhat.com> Start of integration of Erwann Chenede's multihead work from the gtk-multihead branch. * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch] New classes representing a set of screens with attached input devices and a single contiguous area, respectively. * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c: gdk/x11/gdkprivate-x11.h: Make the initialization interface simple _gdk_windowing_init() and do the rest in gdk_open_display() calls. * gdk/gdk.[ch]: Add gdk_parse_args() which can be used to do the display-independent part of initialization instead of gdk_init_[check]. * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h: Add multihead variants (_for_display(), for_screen()) of functions getting information specific to a particular screen screen or display. * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions like gdk_rgb_get_colormap() that used to get/list global objects. * gdk/x11/gdkx.h: Add functions for converting GdkScreen and GdkDisplay into the X equivalents. * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords() not in the headers and unused. * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}: Remove gxid support ... has not been tested for a long time... "xfree" support is more portable to non XFree86. * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be used to turn off functions that are inherently non-multihead safe. * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions are used in non-multihead-safe ways. * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK multihead safe.
* Implement "fuzzy" key binding lookups; allow matches on key and level butOwen Taylor2002-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 20 14:26:47 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups; allow matches on key and level but not group. Also, implement ignoring "consumed modifiers correctly." * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using GtkKeyHash. * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in the group for key release events as well as key press events. * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Rename unused_modifiers to consumed_modifiers, make the docs and non-Xkb implementation match the Xkb implementation. * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate doc and parameter name changes. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): XkbTranslateKeyCode doesn't handle LockMask, we need to handle it ourselves. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency to allow dealing with ISO_Left_Tab. * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c gtk/gtkpaned.c gtk/gtkcombo.c gtk/gtknotebook.c: Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab or <Shift>Tab both are equivalent as a binding specifier.) * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate GTK_RUN_ACTION, so you can bind an accelerator to it. * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call gdk_unicode_to_keyval on the mnemonic character. * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
* Fix prototype for direction_changed. (Reported by Jeff Franks.)Owen Taylor2001-12-181-1/+1
| | | | | | | Tue Dec 18 16:07:28 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix prototype for direction_changed. (Reported by Jeff Franks.)
* Add a direction-changed signal, and gdk_keymap_get_current_direction().Owen Taylor2001-06-081-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.[ch]: Add a direction-changed signal, and gdk_keymap_get_current_direction(). * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track the current locked group, use it to set the keymap direction. * gtk/gtksettings.c: Add a new gtk-split-cursor setting to determine whether we draw a split cursor or use a jumping cursor based on the current direction. * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]: Obey the split cursor setting. Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkimmulticontext.c (activate_cb): Only activate when toggling on, not when toggling off... (#55906) Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_set_double_buffered): s/gdk_window_begin_paint/gdk_window_begin_paint_region/ in docs. (#55812, Vitaly Tishkov)
* add gdkkeys.[hc]Havoc Pennington2000-12-061-0/+120
2000-12-03 Havoc Pennington <hp@pobox.com> * gdk/Makefile.am: add gdkkeys.[hc] * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these files from gdk.h, gdk.c; add GdkKeymap type and operations on it. * acconfig.h, configure.in: add checks and command line options for XKB * gdk/x11/gdkkeys-x11.c: Implement the above functions * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode and group in the key event * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode field with the low-level hardware key code, and a group field with the keyboard group * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB, and declare a couple globals used for keymap handling * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method, hold down Shift-Control and type a hex number to get a Unicode character corresponding to the hex number (gtk_im_context_simple_get_preedit_string): Fix cursor position (return bytes not chars)