1. 14 Sep, 2005 3 commits
  2. 13 Sep, 2005 8 commits
  3. 11 Sep, 2005 2 commits
    • Matthias Clasen's avatar
      Use gdk_atom_intern_static_string() where appropriate. · af89d145
      Matthias Clasen authored
      	* gtk/*.c:  Use gdk_atom_intern_static_string() where
      	appropriate.
      af89d145
    • Matthias Clasen's avatar
      New function to avoid pointless strdups when creating atoms from static · 797c2e6a
      Matthias Clasen authored
      2005-09-11  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdk.symbols:
      	* gdk/gdkproperty.h:
      	* gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string):
      	New function to avoid pointless strdups when creating atoms
      	from static strings.
      
      	* gdk/x11/gdkdisplay-x11.c:
      	* gdk/x11/gdkdnd-x11.c:
      	* gdk/x11/gdkevents-x11.c:
      	* gdk/x11/gdkmain-x11.c:
      	* gdk/x11/gdkproperty-x11.c:
      	* gdk/x11/gdkselection-x11.c:
      	* gdk/x11/gdkwindow-x11.c: Use gdk_atom_intern_static_string()
      	where appropriate.
      797c2e6a
  4. 10 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Add a cell renderer for displaying and editing accelerators, a port of · 07600fb1
      Matthias Clasen authored
      2005-09-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcellrendererkeys.h:
      	* gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
      	and editing accelerators, a port of EggCellRendererKeys .
      
      	* gtk/gtk.symbols:
      	* gtk/gtk.h:
      	* gtk/Makefile.am: Add the keys cell renderer.
      
      	* tests/Makefile.am:
      	* tests/testkeys.c: Test GtkCellRendererKeys
      07600fb1
  5. 09 Sep, 2005 10 commits
  6. 08 Sep, 2005 1 commit
    • Tor Lillqvist's avatar
      Cache the display name. There is only one GdkDisplay on Win32, and · 0905c73a
      Tor Lillqvist authored
      2005-09-09  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
      	display name. There is only one GdkDisplay on Win32, and
      	constructing the display name isn't entirely trivial, so cacheing
      	is probably worth it. For instance GIMP calls this function a lot.
      	(gdk_display_open): Call gdk_display_get_name() to prime the
      	cached name.
      	(gdk_display_get_n_screens, gdk_display_get_screen,
      	gdk_display_get_default_screen): Verify parameter correctness like
      	the X11 backend does.
      
      	* gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
      	Return a freshly allocated string, as the API specifies. Fixes a
      	heap corruption problem that caused random errors and crashes in
      	GIMP, for instance.
      0905c73a
  7. 07 Sep, 2005 2 commits
  8. 06 Sep, 2005 6 commits
    • Matthias Clasen's avatar
      Rename · 97088102
      Matthias Clasen authored
      97088102
    • Matthias Clasen's avatar
      Include Super, Hyper and Meta in the default accel mod mask. · 77494a0a
      Matthias Clasen authored
      2005-09-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
      	default accel mod mask.
      77494a0a
    • Matthias Clasen's avatar
      Remove erroneous log entry · 557e266a
      Matthias Clasen authored
      557e266a
    • Matthias Clasen's avatar
      Don't use GDK_ALT_MASK. · 582af236
      Matthias Clasen authored
      2005-09-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaccelgroup.c (gtk_accelerator_parse):
      	* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
      	Don't use GDK_ALT_MASK.
      
      	* gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
      582af236
    • 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
    • Matthias Clasen's avatar
      Add support for extra virtual modifiers: (#85780, Owen Taylor) · 543ce674
      Matthias Clasen authored
      2005-09-06  Matthias Clasen  <mclasen@redhat.com>
      
      	Add support for extra virtual modifiers:  (#85780, Owen Taylor)
      
      	* gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a
      	modmap to maintain the information which X modifiers map to
      	virtual modifiers.
      	(get_xkb): Set up the modmap from the XKB tables.
      	(update_keymaps): Set up the modmap from the information returned
      	by XGetModifierMapping in the non-XKB case.
      
      	* gdk/x11/gdkprivate-x11.h:
      	* gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New
      	function to set the virtual modifiers in the state.
      
      	* gdk/x11/gdkevents-x11.c (translate_key_event): Call
      	_gdk_keymap_add_virtual_modifiers here.
      
      	* gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super,
      	Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
      	for GDK_MOD1_MASK.
      543ce674
  9. 05 Sep, 2005 1 commit
  10. 03 Sep, 2005 1 commit
  11. 02 Sep, 2005 5 commits
    • Matthias Clasen's avatar
      Disconnect idle handlers on destroy to avoid problems when they are called · a809ae2a
      Matthias Clasen authored
      2005-09-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
      	on destroy to avoid problems when they are called on a destroyed
      	widget.  (#315135, John Cupitt)
      a809ae2a
    • Matthias Clasen's avatar
      Add bindings for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes) · ade8ec4c
      Matthias Clasen authored
      2005-09-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_class_init):
      	* gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
      	for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
      ade8ec4c
    • Matthias Clasen's avatar
      Rework the Unicode hex input code. Now we only steal a single key · 4083637a
      Matthias Clasen authored
      2005-09-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkimcontextsimple.c: Rework the Unicode hex input
      	code. Now we only steal a single key combination, Ctrl-Shift-U,
      	instead of sixteen.
      	A hex Unicode sequence must be started with Ctrl-Shift-U, followed
      	by a sequence of hex digits entered with Ctrl-Shift still held.
      	Releasing one of the modifiers or pressing space while the modifiers
      	are still held commits the character. It is possible to erase
      	digits using backspace.
      	As an extension to the above, we also allow to start the sequence
      	with Ctrl-Shift-U, then release the modifiers before typing any
      	digits, and enter the digits without modifiers.
      	(#82011, Owen Taylor)
      4083637a
    • Matthias Clasen's avatar
      If the window is destroyed, we still need to deliver the destroy event. · 92b1967c
      Matthias Clasen authored
      2005-09-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
      	we still need to deliver the destroy event.  (#314980, Chris Lahey)
      92b1967c
    • Matthias Clasen's avatar
      Reset im context before committing \n or \t. · 9846428b
      Matthias Clasen authored
      2005-09-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
      	im context before committing \n or \t.
      9846428b