1. 28 May, 2007 1 commit
  2. 25 May, 2007 1 commit
  3. 21 May, 2007 1 commit
    • Richard Hult's avatar
      Set the resolution. · e8071ea7
      Richard Hult authored
      2007-05-21  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Set the
      	resolution.
      	
      	* gdk/quartz/gdkscreen-quartz.c: Use the autorelease pool macros.
      
      svn path=/trunk/; revision=17887
      e8071ea7
  4. 05 May, 2007 1 commit
    • Richard Hult's avatar
      Fix bugs #428733 and #433301. Turns out the lockFocus logic was flawed, · d9dedc36
      Richard Hult authored
      007-05-05  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c:
      	(gdk_quartz_drawable_get_context),
      	(gdk_quartz_drawable_release_context): Fix bugs #428733 and #433301.
      	Turns out the lockFocus logic was flawed, now we only lock/unlock 
      	when called outside a real expose event and never flush manually.
      
      svn path=/trunk/; revision=17798
      d9dedc36
  5. 30 Apr, 2007 1 commit
    • Richard Hult's avatar
      Implement. · 34c0f15b
      Richard Hult authored
      2007-04-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
      	Implement.
      
      svn path=/trunk/; revision=17743
      34c0f15b
  6. 28 Apr, 2007 1 commit
    • Ronald Bultje's avatar
      fix two more potential races that could happen when an application is · 92563b7d
      Ronald Bultje authored
      2007-04-28  Ronald Bultje  <rbultje@ronald.bitfreak.net>
      
              * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
              (poll_func): fix two more potential races that could happen when
              an application is polling in the mainloop and a separate thread
              tries to wake it up using g_idle_add(). Fixes #425271 comment 5.
      
      
      svn path=/trunk/; revision=17680
      92563b7d
  7. 25 Apr, 2007 1 commit
  8. 18 Apr, 2007 1 commit
    • Richard Hult's avatar
      Refactor the process updates functions to share code between them. Also · c8d89a96
      Richard Hult authored
      2007-04-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_quartz_process_updates_internal),
      	(gdk_window_quartz_process_all_updates),
      	(gdk_window_impl_quartz_process_updates): Refactor the process 
      	updates functions to share code between them. Also fixes bug 
      	#427660 by not updating larger regions than necessary.
      
      svn path=/trunk/; revision=17610
      c8d89a96
  9. 11 Apr, 2007 1 commit
    • Ronald Bultje's avatar
      Protect the polling thread setup and shutdown function by mutexes and read · 7c0f9e4d
      Ronald Bultje authored
              * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
                setup and shutdown function by mutexes and read the wakeup
                pipe unconditionally and unblocking. This should make the main
                loop always be woken up when using g_idle_add() from another
                thread in the Quartz backend (#425271).
      
      
      svn path=/trunk/; revision=17595
      7c0f9e4d
  10. 06 Apr, 2007 1 commit
    • Richard Hult's avatar
      Clean up namespaces to make the code more maintainable. · 9e2114e6
      Richard Hult authored
      2007-04-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/: Clean up namespaces to make the code more
      	maintainable.
      
      	* gdk/quartz/gdkdrawable-quartz.c:
      	* gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
      	images, by setting the pattern phase for the CG pattern.
      
      svn path=/trunk/; revision=17584
      9e2114e6
  11. 15 Mar, 2007 1 commit
  12. 10 Mar, 2007 5 commits
    • Richard Hult's avatar
      Update for the new quartz cairo surface API (#410442). Don't lock focus · d7a33ade
      Richard Hult authored
      2007-03-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c:
      	(gdk_quartz_drawable_get_context): Update for the new quartz cairo 
      	surface API (#410442). Don't lock focus unless called outside of an 
      	expose event.
      	(gdk_quartz_drawable_release_context): Only flush the CG context and 
      	unlock focus if called outside of expose.
      	(gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
      	(_gdk_quartz_drawable_finish): New function, used to free the cached
      	cairo surface.
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_impl_quartz_begin_paint_region): A few small style changes.
      	(gdk_window_quartz_process_all_updates): Move the autorelease pool
      	allocation and freeing outside the loop.
      	(_gdk_windowing_window_destroy): Finish the drawable.
      	(move_resize_window_internal): Small cleanup and remove comment.
      	(_gdk_window_impl_quartz_get_type): No need to make the type info
      	static.
      
      	* gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
      
      svn path=/trunk/; revision=17463
      d7a33ade
    • Richard Hult's avatar
      Add missing function signature to fix a build warning. · 9493e135
      Richard Hult authored
      2007-03-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkprivate-quartz.h: Add missing function signature to fix
      	a build warning.
      
      svn path=/trunk/; revision=17462
      9493e135
    • Richard Hult's avatar
      Plug a leak. · feabd0d7
      Richard Hult authored
      2007-03-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.
      
      svn path=/trunk/; revision=17461
      feabd0d7
    • Richard Hult's avatar
      Remove unneccesary exposure mask check. · 5b14b85c
      Richard Hult authored
      2007-03-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzView.c: Remove unneccesary exposure mask check.
      
      svn path=/trunk/; revision=17460
      5b14b85c
    • Richard Hult's avatar
      Don't set the font name here, leave that to themes, fixes #387508. · 5c477d1f
      Richard Hult authored
      2007-03-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Don't set
      	the font name here, leave that to themes, fixes #387508.
      
      svn path=/trunk/; revision=17459
      5c477d1f
  13. 09 Mar, 2007 1 commit
  14. 18 Feb, 2007 3 commits
    • Richard Hult's avatar
      Setup release pools to plug two leaks, patch from Erik van Pienbroek, · e344a521
      Richard Hult authored
      2007-02-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_quartz_process_all_updates),
      	(_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
      	patch from Erik van Pienbroek, fixes bug #396649.
      
      svn path=/trunk/; revision=17325
      e344a521
    • Richard Hult's avatar
      Add stub for gdk_display_add_client_message_filter, patch from Taybin · fe5f64ec
      Richard Hult authored
      2007-02-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: Add stub for 
      	gdk_display_add_client_message_filter, patch from Taybin Rutkin. Fixes
      	bug #405870.
      
      	* gdk/quartz/gdkprivate-quartz.h: Add prototypes to fix build warnings.
      
      svn path=/trunk/; revision=17324
      fe5f64ec
    • Richard Hult's avatar
      Import AppKit.h instead of Quartz.h. Don't use userSpaceScaleFactor for · a862e9f6
      Richard Hult authored
      2007-02-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzView.h:
      	* gdk/quartz/GdkQuartzWindow.h:
      	* gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
      	* gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use 
      	userSpaceScaleFactor for 10.3. Those changes bring us closer to working
      	on panther, patch from Mathias Hasselmann.
      	
      	* gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
      
      svn path=/trunk/; revision=17323
      a862e9f6
  15. 28 Dec, 2006 1 commit
    • Mikael Hallendal's avatar
      Factored out the event loop integration into gdkeventloop-quartz.c. · 693c3c26
      Mikael Hallendal authored
      2006-12-28  Mikael Hallendal  <micke@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: Factored out the event loop
      	integration into gdkeventloop-quartz.c.
      
      	* gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
      
      	* gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop
      	integration.
      693c3c26
  16. 19 Dec, 2006 1 commit
    • Mikael Hallendal's avatar
      Splitted out the GdkPixbuf to NSImage routine so that it can be used from · 7c920456
      Mikael Hallendal authored
      2006-12-19  Mikael Hallendal  <micke@imendio.com>
      
      	* gdk/quartz/gdkcursor-quartz.c: Splitted out the GdkPixbuf to NSImage
      	routine so that it can be used from libgtk as well (needed for
      	upcoming GtkStatusIcon support in the Quartz port).
      	* gdk/quartz/gdkevents-quartz.c: Don't assume that all NSWindows are
      	created from GDK, this is not true for the status icon.
      	* gdk/quartz/gdkprivate-quartz.h:
      	* gdk/quartz/gdkquartz.h: Added
      	gdk_quartz_pixbuf_to_ns_image_libgtk_only so that it is available to
      	the status icon code.
      7c920456
  17. 21 Sep, 2006 2 commits
    • Michael Natterer's avatar
      Implement lots of value setters for GdkGC, based on a heavily modified · 2f50232a
      Michael Natterer authored
      2006-09-21  Michael Natterer  <mitch@imendio.com>
      
             Implement lots of value setters for GdkGC, based on a heavily
             modified patch from Thomas Broyer (bug #328853):
      
      	* gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
      	on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
      	which simply returns RGBA values from a GdkColor's pixel value.
      	See gdk_quartz_update_context_from_gc() below.
      
      	* gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
      	of members for the newly suppored GC values. Added enum
      	GdkQuartzContextValuesMask which is used for setting up the
      	CGContext for filling and/or stroking.
      
      	* gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
      	(gdk_quartz_gc_set_values)
      	(_gdk_windowing_gc_copy): support a lot more GC values.
      
      	(gdk_quartz_update_context_from_gc): added
      	GdkQuartzContextValuesMask parameter and set filling/stroking
      	parameters accordingly. This function also gained full control
      	over the FG and BG colors (they can't be set separately any more).
      
      	The stipple mask part of the patch doesn't work but seems to take
      	the right approach and doesn't make things worse, so I applied it.
      
      	Did *not* apply the clipping part of the patch since I don't
      	understand it (I don't understand the version in CVS either, but
      	it at least works :-)
      
      	* gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
      	gdk_quartz_update_context_from_gc() and removed separate color
      	setting calls. Some minor fixes.
      
      	* gdk/quartz/gdkwindow-quartz.c
      	(gdk_window_impl_quartz_begin_paint_region): set the CGContext's
      	fill color manually. We don't have/need a GC here.
      2f50232a
    • Michael Natterer's avatar
      fix cast: it's drawable_impl->wrapper that is the GdkWindow, not the · c148c41b
      Michael Natterer authored
      2006-09-21  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c
      	(gdk_window_impl_quartz_begin_paint_region): fix cast: it's
      	drawable_impl->wrapper that is the GdkWindow, not the
      	drawable_impl itself.
      c148c41b
  18. 14 Sep, 2006 1 commit
  19. 06 Sep, 2006 1 commit
  20. 03 Sep, 2006 1 commit
  21. 30 Aug, 2006 2 commits
    • Richard Hult's avatar
      Fix build. · 5467cb3c
      Richard Hult authored
      2006-08-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
      5467cb3c
    • Matthias Clasen's avatar
      Add a function to beep on a window. For X11, implement this with XkbBell. · 6760faeb
      Matthias Clasen authored
      2006-08-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkwindow.h:
      	* gdk/gdk.symbols:
      	* gdk/directfb/gdkwindow-directfb.c (gdk_window_beep):
      	* gdk/win32/gdkwindow-win32.c (gdk_window_beep):
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_beep):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
      	to beep on a window. For X11, implement this with
      	XkbBell.  (#353455, Mariano Suárez-Alvarez)
      6760faeb
  22. 24 Aug, 2006 1 commit
  23. 15 Aug, 2006 1 commit
    • Richard Hult's avatar
      Add GDK button mask for NS dragging events. (create_scroll_event): Remove · 382ef872
      Richard Hult authored
      2006-08-15  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (get_event_mask_from_ns_event):
      	Add GDK button mask for NS dragging events.
      	(create_scroll_event): Remove obsolete comment.
      	(_gdk_quartz_get_current_event_mask), (gdk_event_translate): Keep
      	track of the latest event mask here...
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(_gdk_windowing_window_get_pointer): And use it here. Patch from
      	Kristian Rietveld.
      	(gdk_window_quartz_update_idle): Rename to make things clearer.
      382ef872
  24. 10 Aug, 2006 1 commit
    • Michael Natterer's avatar
      don't try to set the state of unmapped windows, call · cac12e4d
      Michael Natterer authored
      2006-08-10  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c
      	(gdk_window_maximize)
      	(gdk_window_unmaximize)
      	(gdk_window_iconify)
      	(gdk_window_deiconify): don't try to set the state of unmapped
      	windows, call gdk_synthesize_window_state() instead. Also added
      	autorelease pools back, seems they are needed after all.
      
      	* gdk/quartz/gdkwindow-quartz.c (show_window_internal): maximize
      	and iconify windows here if the state says so.
      cac12e4d
  25. 08 Aug, 2006 6 commits
    • Michael Natterer's avatar
      implement MIN_SIZE, MAX_SIZE and RESIZE_INC. · 08028816
      Michael Natterer authored
      2006-08-09  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_set_geometry_hints):
      	implement MIN_SIZE, MAX_SIZE and RESIZE_INC.
      08028816
    • Michael Natterer's avatar
      Shutup CVS · 7af7c0a3
      Michael Natterer authored
      7af7c0a3
    • Richard Hult's avatar
      Whitespace cleanup. (synthesize_crossing_events): Add comments and prevent · 230fceca
      Richard Hult authored
      2006-08-08  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (poll_func): Whitespace cleanup.
      	(synthesize_crossing_events): Add comments and prevent a crash.
      230fceca
    • Michael Natterer's avatar
      implement. · d451252f
      Michael Natterer authored
      2006-08-08  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c
      	(gdk_window_maximize)
      	(gdk_window_unmaximize): implement.
      
      	(gdk_window_iconify)
      	(gdk_window_deiconify): remove unneeded autorelease pools.
      d451252f
    • Richard Hult's avatar
      Just expose the minimal region instead of the whole rect. · d3ee9f83
      Richard Hult authored
      2006-08-08  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzView.c: Just expose the minimal region
      	instead of the whole rect.
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_quartz_process_all_updates), (gdk_window_update_idle),
      	(gdk_window_impl_quartz_invalidate_maybe_recurse),
      	(gdk_window_impl_quartz_process_updates),
      	(_gdk_windowing_window_destroy): Rework the expose handling so that
      	it works like the X11 backend, using an idle with the right
      	priority instead of relying on quartz to do it.
      	(gdk_window_set_type_hint): Use tornoff instead of submenu as the
      	documentation (and Mitch) suggests.
      d3ee9f83
    • Michael Natterer's avatar
      some whitespace and indentation cleanup. · f2faaf2f
      Michael Natterer authored
      2006-08-08  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c: some whitespace and indentation
      	cleanup.
      
      	(gdk_quartz_draw_rectangle)
      	(gdk_quartz_draw_arc)
      	(gdk_quartz_draw_polygon)
      	(gdk_quartz_draw_points): for pixel-prefect drawing, stroked
      	coordinates need to go through pixel centers, while filled ones
      	need to go along pixel boundaries. Moved +0.5 adjusting to the
      	if(!filled) branches and added/removed some adjustments where they
      	were wrong.
      f2faaf2f
  26. 07 Aug, 2006 1 commit
  27. 31 Jul, 2006 1 commit