1. 19 Feb, 2014 1 commit
  2. 07 Feb, 2014 2 commits
  3. 27 Feb, 2012 1 commit
  4. 18 Nov, 2011 2 commits
    • Michael Natterer's avatar
      Turn the private #define for the group-shifting modifier into API · 9c79f9f8
      Michael Natterer authored
      Add GDK_MODIFIER_INTENT_SHIFT_GROUP to enum GdkModifierIntent
      and handle it in gdk_keymap_get_modifier_mask(). Add an X11
      impl of the method and return keymap_x11->group_switch_mask.
      Return 0 from the default impl because we don't know.
      9c79f9f8
    • Michael Natterer's avatar
      Bug 663856 - Make option-foo accelerators use the right symbol · 1c8481a6
      Michael Natterer authored
      If the keyboard group shifting modifier is *also* a normal
      accelerator modifier, we need to special case it when calling
      gdk_keymap_translate_keyboard_state(), so we get the right
      key symbol for accelerators (for example we want Option-O,
      not Option-Ø displayed in menu items). This patch should only
      affect quartz where the Alt key both shifts the group and can
      be used as accel modifier, and not X11 or Win32 where AltGr
      is not used for accelerators.
      
      - fix quartz' gdk_keymap_translate_keyboard_state() to return
        the right consumed_modifiers
      - add _gtk_translate_keyboard_accel_state() which does the
        special casing
      - use it everywhere instead of gdk_keymap_translate_keyboard_state()
      1c8481a6
  5. 15 Apr, 2011 1 commit
  6. 10 Jul, 2010 1 commit
  7. 04 Apr, 2010 2 commits
    • Matthias Clasen's avatar
      Fix a compatibility problem · 29efd9a7
      Matthias Clasen authored
      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.
      29efd9a7
    • Matthias Clasen's avatar
      Try harder to handle accelerators involving virtual modifiers · d1c3745b
      Matthias Clasen authored
      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.
      d1c3745b
  8. 12 Feb, 2010 1 commit
    • Matthias Clasen's avatar
      Fix a compatibility problem · 13d69e55
      Matthias Clasen authored
      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.
      13d69e55
  9. 21 Dec, 2009 1 commit
    • Matthias Clasen's avatar
      Try harder to handle accelerators involving virtual modifiers · 03b179c5
      Matthias Clasen authored
      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.
      03b179c5
  10. 09 Nov, 2009 1 commit
  11. 17 Aug, 2009 1 commit
  12. 31 Jan, 2009 1 commit
    • Matthias Clasen's avatar
      Bug 162726 – Multiple Latin layouts in XKB break keyboard shortcuts · 17f8a2c2
      Matthias Clasen authored
              * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Change the handling of
              fuzzy matches: As long there are any exact matches, only exact
              matches are returned. If there are no exact matches, fuzzy matches
              will be returned, as long as they are not shadowing a possible exact
              match. This means that fuzzy matches won't be considered if their
              keyval is present in the current group. Problem reported by
              many people, patch by Simos Xenitellis.
      
      
      svn path=/trunk/; revision=22266
      17f8a2c2
  13. 12 Aug, 2008 1 commit
    • Sven Neumann's avatar
      gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.c · b699ac58
      Sven Neumann authored
      2008-08-12  Sven Neumann  <sven@gimp.org>
      
      	* gtk/gtkaccellabel.c
      	* gtk/gtkaction.c
      	* gtk/gtkclist.c
      	* gtk/gtkcolorbutton.c
      	* gtk/gtkctree.c
      	* gtk/gtkdialog.c
      	* gtk/gtkdnd-quartz.c
      	* gtk/gtkdnd.c
      	* gtk/gtkentry.c
      	* gtk/gtkfilechooserdefault.c
      	* gtk/gtkfilesel.c
      	* gtk/gtkgamma.c
      	* gtk/gtkiconview.c
      	* gtk/gtkkeyhash.c
      	* gtk/gtklabel.c
      	* gtk/gtkmenu.c
      	* gtk/gtkmenubar.c
      	* gtk/gtkpaned.c
      	* gtk/gtkrecentchooserdialog.c
      	* gtk/gtkrecentchooserutils.c
      	* gtk/gtkselection.c
      	* gtk/gtksizegroup.c
      	* gtk/gtktextbtree.c
      	* gtk/gtktextbuffer.c
      	* gtk/gtktextview.c
      	* gtk/gtktoolbar.c
      	* gtk/gtktreemodel.c
      	* gtk/gtkuimanager.c
      	* gtk/gtkwindow-decorate.c
      	* gtk/gtkwindow.c: use canonical signal names in some more places
      	that I missed earlier. Also changed this in the documentation and
      	comments.
      
      
      svn path=/trunk/; revision=21094
      b699ac58
  14. 01 Jul, 2008 1 commit
  15. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      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
      fce9c8b7
  16. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  17. 04 Jan, 2006 1 commit
    • Matthias Clasen's avatar
      Use the slice allocator for many small allocations. · 04eceaf6
      Matthias Clasen authored
      2006-01-04  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaccelmap.c:
      	* gtk/gtkactiongroup.c:
      	* gtk/gtkdialog.c:
      	* gtk/gtkfilesystemunix.c:
      	* gtk/gtkgc.c:
      	* gtk/gtkkeyhash.c:
      	* gtk/gtkplug.c:
      	* gtk/gtktextiter.c:
      	* gtk/gtktextlayout.c:
      	* gtk/gtkuimanager.c:
      	* gtk/gtkwidget.c:
      	* gtk/gtkwindow.c:
      	* gtk/gtkxembed.c: Use the slice allocator for many small
      	allocations.
      
      	* gtk/gtkcolorsel.c:
      	* gtk/gtktreeview.c: Use IPN.
      
      	* gtk/gtkwidget.c: Remove an unused field from the AccelPath
      	struct.
      04eceaf6
  18. 06 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Add tests for extra virtual modifiers. · 244d41b9
      Matthias Clasen authored
      2005-09-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testgtk.c (create_key_lookup): Add tests for extra virtual
      	modifiers.
      
      	* gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
      	Mod2 - Mod5 and against Super, Hyper, Meta.
      
      	* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
      	* gtk/gtkaccelgroup.c (gtk_accelerator_parse)
      	(gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
      244d41b9
  19. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  20. 31 Dec, 2004 1 commit
  21. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  22. 06 Mar, 2004 1 commit
  23. 12 Aug, 2003 1 commit
  24. 21 May, 2003 1 commit
    • Owen Taylor's avatar
      We need to pass the unmasked state to · e1fb5367
      Owen Taylor authored
      Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need
              to pass the unmasked state to gdk_keymap_translate_keyboard_state()
              to handle the case where a modifier not in the mask
              (like Num_Lock) changes the key value, so replace
              the masked state with a state/mask pair. (#106913,
              Olivier Ripoll)
      
              * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
              in state/mask pair to _gtk_key_hash_lookup()
      e1fb5367
  25. 10 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 28bc5303
      Manish Singh authored
      Wed Oct  9 17:40:13 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkaccelmap.c gtk/gtkfixed.[ch] gtk/gtkkeyhash.c gtk/gtkmenu.c
              gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtkrc.c gtk/gtkspinbutton.[ch]
              gtk/gtktable.[ch] gtk/gtkthemes.c: Deprecation cleanup
      28bc5303
  26. 23 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Add a keys_changed signal emitted when the keymap changes. (#72148) · a16b63eb
      Owen Taylor authored
      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.
      a16b63eb
  27. 22 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Partial fix for problem where keypad keys acted as shift-arrows in an · 7425e428
      Owen Taylor authored
      Fri Mar 22 11:29:11 2002  Owen Taylor  <otaylor@redhat.com>
      
              Partial fix for problem where keypad keys acted
              as shift-arrows in an entry rather than arrows (#74327)
      
              * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Sort lookup
              results by number of modifiers in the entry. Fixes
              problem where if a key matched both modified and unmodified
              key bindings ... e.g., the distinguishing key binding
              was consumed, then it was random which was used.
      
              * gtk/gtkbindings.c (gtk_binding_entries_sort_patterns):
              Catch the case where there are multiple entries from the
              same bindingset (with different modifiers), and use only
              the first entry, which, with the change in _gtk_key_hash_lookup()
      7425e428
  28. 14 Mar, 2002 1 commit
  29. 26 Feb, 2002 2 commits
  30. 21 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Implement "fuzzy" key binding lookups; allow matches on key and level but · 708e1a95
      Owen Taylor authored
      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.
      708e1a95