1. 30 Jun, 2007 3 commits
    • Richard Hult's avatar
      Make this work properly for the root window. · d793d416
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_get_origin): Make
      	this work properly for the root window.
      
      svn path=/trunk/; revision=18311
      d793d416
    • Richard Hult's avatar
      Improve the tracking rect updating: - No need to override setFrame. - Use · 8fd51a22
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzView.c: Improve the tracking rect updating:
      	- No need to override setFrame.
      	- Use our own size instead of the bounds from for the view as it's
      	not always updated before the tracking rect.
      	- Only reset the tracking rect if the new window is nil).
      	
      	* gdk/quartz/GdkQuartzWindow.c: Update the bounds of the content
      	view when the window size changes.
      
      svn path=/trunk/; revision=18309
      8fd51a22
    • Matthias Clasen's avatar
      New function to determine if keyboard layouts for both LTR and LTR · 436a34e3
      Matthias Clasen authored
      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
      436a34e3
  2. 29 Jun, 2007 1 commit
    • Allison Karlitskaya's avatar
      Connect the "destroy" signal so that the 'window' pointer is set back to · e8e5af2d
      Allison Karlitskaya authored
      2007-06-29  Ryan Lortie  <desrt@desrt.ca>
      
              * tests/testgtk.c (create_composited_window): Connect the "destroy" 
              signal so that the 'window' pointer is set back to NULL (like for the 
              other examples).
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize): Don't 
              destroy the Damage here.  By finalize() XDestroyWindow has already 
              been called (and took the Damage with it).
      
              Bug #452046.
      
      
      svn path=/trunk/; revision=18290
      e8e5af2d
  3. 25 Jun, 2007 3 commits
    • Richard Hult's avatar
      Don't steal menu events while the keyboard is grabbed. · 9d663990
      Richard Hult authored
      2007-06-25  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Don't steal
      	menu events while the keyboard is grabbed.
      
      svn path=/trunk/; revision=18231
      9d663990
    • Richard Hult's avatar
      Fallback to X cursors for the ones that OS X doesn't provide. Fixes bug · b4e0b533
      Richard Hult authored
      2007-06-25  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/Makefile.am:
      	* gdk/quartz/xcursors.h:
      	* gdk/quartz/gdkcursor-quartz.c: Fallback to X cursors for the
      	ones that OS X doesn't provide. Fixes bug #327912.
      
      svn path=/trunk/; revision=18229
      b4e0b533
    • Tor Lillqvist's avatar
      Revert my attempted overly simple fix for #445284, as it causes a · 1d5ef907
      Tor Lillqvist authored
      2007-06-25  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Revert my
      	attempted overly simple fix for #445284, as it causes a
      	regression. (For instance, in GIMP the tool cursor gets used also
      	for the right-click menu in image windows.) A more complex fix is
      	needed to more completely emulate X11 behaviour.
      
      
      svn path=/trunk/; revision=18225
      1d5ef907
  4. 21 Jun, 2007 1 commit
  5. 19 Jun, 2007 3 commits
    • Johan Dahlin's avatar
      Fix a typo in a comment · f43329fc
      Johan Dahlin authored
          * gdk/quartz/GdkQuartzView.c ([GdkQuartzView -updateTrackingRect]): Fix a typo
          in a comment
      
      
      svn path=/trunk/; revision=18199
      f43329fc
    • Richard Hult's avatar
      Don't create or update the tracking rect in the window, move it to the · 0932e4be
      Richard Hult authored
      2007-06-20  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_new): 
      	* gdk/quartz/GdkQuartzWindow.c (windowDidResize): Don't create or
      	update the tracking rect in the window, move it to the view where
      	it belongs.
      
      	* gdk/quartz/GdkQuartzView.c (updateTrackingRect)
      	(viewDidMoveToWindow, viewWillMoveToWindow)
      	(setFrame, setBounds): Create and update the tracking rect here.
      
      svn path=/trunk/; revision=18197
      0932e4be
    • Mathias Hasselmann's avatar
      Restore G_BEGIN_DECLS at the top of this file to make C++ compilers happy. · 708dba5d
      Mathias Hasselmann authored
      2007-06-19  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
      
      	* gdk/gdkinternals.h: Restore G_BEGIN_DECLS at the
      	top of this file to make C++ compilers happy.
      
      svn path=/trunk/; revision=18196
      708dba5d
  6. 17 Jun, 2007 4 commits
    • Richard Hult's avatar
      Forward Mac OS menu shortcut events to the right menu. · decff534
      Richard Hult authored
      2007-06-17  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Forward
      	Mac OS menu shortcut events to the right menu.
      
      svn path=/trunk/; revision=18178
      decff534
    • Richard Hult's avatar
      More refactoring of the event handling: Extract synthesizing of crossing · 33ec37ee
      Richard Hult authored
      2007-06-17  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate)
      	(synthesize_crossing_events_for_ns_event)
      	(find_window_for_ns_event): More refactoring of the event
      	handling: Extract synthesizing of crossing events from
      	find_window_for_ns_event so that it doesn't have any side effects,
      	and call the new function from gdk_event_translate instead.
      
      svn path=/trunk/; revision=18176
      33ec37ee
    • Richard Hult's avatar
      Remove pointless logging for unhandled events. Activate the application on · cd03a9e9
      Richard Hult authored
      2007-06-16  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (find_window_for_ns_event),
      	(gdk_event_translate): Remove pointless logging for unhandled events.
      	Activate the application on non-left clicks, since that is only done
      	for left clicks and we depend on it to get events routed properly for
      	context menus and other popup windows.
      
      svn path=/trunk/; revision=18175
      cd03a9e9
    • Xan Lopez's avatar
      replace GDK_WINDOW calls by cast to GdkWindow. Patch by Tilman Sauerbeck · 9a0af6de
      Xan Lopez authored
      2007-06-17  Xan Lopez  <xan@gnome.org>
      
      	* gdk/x11/gdkgeometry-x11.c: replace GDK_WINDOW calls by cast to
      	GdkWindow. Patch by Tilman Sauerbeck from #2063820.
      
      svn path=/trunk/; revision=18170
      9a0af6de
  7. 16 Jun, 2007 6 commits
  8. 15 Jun, 2007 1 commit
    • Hans Breuer's avatar
      updated explicit usage of RegisterClassExW to match the WNDCLASSEXW. True · 49fc7e15
      Hans Breuer authored
      2007-06-15  Hans Breuer <hans@breuer.org>
      
      	* gtk/makefile.msc.in tests/makefile.msc : updated
      	* gdk/win32/gdkwindow-win32.c : explicit usage of RegisterClassExW
      	to match the WNDCLASSEXW. 
      	True dynamic linking of SetLayeredWindowAttributes
      	* tests/testprint.c tests/testnouiprint.c : use G_PI
      
      
      svn path=/trunk/; revision=18140
      49fc7e15
  9. 14 Jun, 2007 1 commit
    • Tor Lillqvist's avatar
      Use g_win32_get_windows_version() instead of _winver so that this compiles · eb1876f3
      Tor Lillqvist authored
      2007-06-14  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use
      	g_win32_get_windows_version() instead of _winver so that this
      	compiles on Cygwin, too. Not that I know if it makes sense to
      	build GTK+ with the Win32 backend for Cygwin, but some people want
      	to.
      
      
      svn path=/trunk/; revision=18132
      eb1876f3
  10. 13 Jun, 2007 2 commits
  11. 12 Jun, 2007 1 commit
  12. 11 Jun, 2007 1 commit
  13. 10 Jun, 2007 2 commits
  14. 07 Jun, 2007 4 commits
  15. 06 Jun, 2007 7 commits
    • Richard Hult's avatar
      Rework how we get the event window: don't get the window from the NSEvent, · ec32b2aa
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (find_mouse_window_for_ns_event)
      	(find_window_for_ns_event): Rework how we get the event window:
      	don't get the window from the NSEvent, always use the mouse window
      	instead. Fix mouse window tracking by only using MouseExited for
      	non-gdk windows, and to always use the NSEvent window to get the
      	right gdk window in MouseEntered. Add comments to the code. Fixes bug
      	#350460.
      
      svn path=/trunk/; revision=18065
      ec32b2aa
    • Richard Hult's avatar
      Don't do anything if the two windows are the same. · ed8d0fc6
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (get_converted_window_coordinates):
      	Don't do anything if the two windows are the same.
      	(find_window_for_ns_event): Translate coordinates to be relative
      	the grab window when appropriate.
      
      svn path=/trunk/; revision=18064
      ed8d0fc6
    • Ross Burton's avatar
      Set DISPLAY in the child process using g_setenv() instead of constructing · 58d99db4
      Ross Burton authored
      2007-06-06  Ross Burton  <ross@openedhand.com>
      
      	* gdk/x11/gdkspawn-x11.c:
      	Set DISPLAY in the child process using g_setenv() instead of
      	constructing a new envp, which lets callers use child setup
      	functions which call putenv (#442617).
      
      svn path=/trunk/; revision=18062
      58d99db4
    • Matthias Clasen's avatar
      Fix the build · 50fca8df
      Matthias Clasen authored
      svn path=/trunk/; revision=18055
      50fca8df
    • Brian Cameron's avatar
      Add gdkmedialib.h to EXTRA_DIST so this header file gets included with the · b67d9a7d
      Brian Cameron authored
      2007-06-06  Brian Cameron  <brian.cameron@sun.com>
      
              * gdk/Makefile.am: Add gdkmedialib.h to EXTRA_DIST so this header
                file gets included with the distribution, as needed.  Fixes bug
                #442888.  Reviewed by Matthias Clasen.
      
      svn path=/trunk/; revision=18050
      b67d9a7d
    • Richard Hult's avatar
      Ignore if the old and new windows are the same. · 726c23e2
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c
      	(_gdk_quartz_events_update_mouse_window): Ignore if the old and new
      	windows are the same.
      
      svn path=/trunk/; revision=18049
      726c23e2
    • Richard Hult's avatar
      Update comment to be more clear and print a warning if we try to create a · fb6a0314
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (synthesize_crossing_events):
      	Update comment to be more clear and print a warning if we try to
      	create a crossing event without knowing what the current mouse
      	window is, to help track down focus bugs.
      
      	* gdk/quartz/gdkevents-quartz.c
      	(_gdk_quartz_events_update_focus_window): Fix indentation.
      
      svn path=/trunk/; revision=18047
      fb6a0314