1. 03 Oct, 2006 1 commit
  2. 02 Oct, 2006 2 commits
  3. 25 Sep, 2006 1 commit
  4. 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
  5. 20 Sep, 2006 1 commit
  6. 19 Sep, 2006 1 commit
    • Ryan Lortie's avatar
      Bug 355343. Add a GdkPangoAttrEmbossColor. · 6893f3ef
      Ryan Lortie authored
      
      2006-09-19  Ryan Lortie  <desrt@desrt.ca>
      
      	* docs/reference/gdk/gdk-sections.txt:
      	* gdk/gdk.symbols:
      	* gdk/gdkpango.h:
      	* gdk/gdkpango.c: Bug 355343.  Add a GdkPangoAttrEmbossColor.
      	  (gdk_pango_layout_get_clip_region): Remove an unused variable.
      	  (gdk_pango_attr_embossed_new): Fix documentation.
      6893f3ef
  7. 14 Sep, 2006 2 commits
  8. 10 Sep, 2006 2 commits
  9. 09 Sep, 2006 1 commit
  10. 06 Sep, 2006 1 commit
  11. 03 Sep, 2006 3 commits
  12. 02 Sep, 2006 1 commit
    • Tor Lillqvist's avatar
      No GDK_WINDOW_DISPLAY in the Win32 backend. · f3ce0228
      Tor Lillqvist authored
      2006-09-03  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
      	GDK_WINDOW_DISPLAY in the Win32 backend.
      
      	* gtk/gtkfilesystemwin32.c: Copy what Kris did to
      	gtkfilesystemunix.c
      f3ce0228
  13. 31 Aug, 2006 1 commit
    • Michael Natterer's avatar
      Fix build. · 06e446c6
      Michael Natterer authored
      2006-08-31  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
      06e446c6
  14. 30 Aug, 2006 4 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
      Fix gdk_window_beep · e28876d9
      Matthias Clasen authored
      e28876d9
    • 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
    • Tor Lillqvist's avatar
      Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or · 4e3d7dd0
      Tor Lillqvist authored
      2006-08-29  Tor Lillqvist  <tml@novell.com>
      
      	Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
      	since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
      	it isn't being maintained anyway. If somebody is interested, it
      	can always be found in older GTK+ versions, and in CVS.
      
      	* gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
      	and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
      	branches, and any variables or static functions used only by the
      	Win9x branches.
      4e3d7dd0
  15. 29 Aug, 2006 2 commits
    • Tor Lillqvist's avatar
      Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or · 1ff434a6
      Tor Lillqvist authored
      2006-08-29  Tor Lillqvist  <tml@novell.com>
      
      	Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
      	since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
      	it isn't being maintained anyway. If somebody is interested, it
      	can always be found in older GTK+ versions, and in CVS.
      
      	* gdk/win32/gdkcursor-win32.c
      	* gdk/win32/gdkdnd-win32.c
      	* gdk/win32/gdkdrawable-win32.c
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkkeys-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkproperty-win32.c
      	* gdk/win32/gdkselection-win32.c: Remove the G_WIN32_IS_NT_BASED()
      	and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
      	branches, and any variables or static functions used only by the
      	Win9x branches.
      
      	* gdk/win32/gdkprivate-win32.h: Remove backup definitions for
      	constants that aren't missing from current mingw and MSVC6
      	headers.
      
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
      	function. On NT-based Windows GetLastError() returns error codes
      	also for failed GDI calls, so we can use _gdk_win32_api_failed()
      	always.
      1ff434a6
    • Tor Lillqvist's avatar
      Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or · 019fece7
      Tor Lillqvist authored
      2006-08-29  Tor Lillqvist  <tml@novell.com>
      
      	Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
      	since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
      	it isn't being maintained anyway. If somebody is interested, it
      	can always be found in older GTK+ versions, and in CVS.
      
      	* configure.in
      	* acconfig.h
      	* gdk/Makefile.am
      	* gdk/win32/Makefile.am
      	* gdk/win32/libie55uid.la
      	* gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
      	switch and associated stuff. Active IMM and the <dimm.h> header
      	was used for IM support on NT4 and Win9x. Win2k and later have IM
      	support built-in.
      
      	* gdk/win32/gdkevents-win32.c: Remove the G_WIN32_IS_NT_BASED()
      	and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
      	branches, and any variables or static functions used only by the
      	Win9x branches.
      019fece7
  16. 24 Aug, 2006 1 commit
  17. 23 Aug, 2006 1 commit
    • Tor Lillqvist's avatar
      Add Win32 detail to doc comments. · 1c816b80
      Tor Lillqvist authored
      2006-08-23  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask)
      	(gdk_window_input_shape_combine_mask)
      	gdk_window_shape_combine_region)
      	(gdk_window_input_shape_combine_region): Add Win32 detail to doc
      	comments.
      1c816b80
  18. 15 Aug, 2006 4 commits
    • 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
    • Matthias Clasen's avatar
      Don't leak ShmPixmapInfo. (#349858, Chris Wilson) · c74f0bbf
      Matthias Clasen authored
      2006-08-15  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/x11/gdkdrawable-x11.c (get_shm_pixmap_for_image): Don't
      	leak ShmPixmapInfo.  (#349858, Chris Wilson)
      c74f0bbf
    • Matthias Clasen's avatar
      Use XAllocSizeHints to allocate the XSizeHints struct. (#249285, David · da54d679
      Matthias Clasen authored
      2006-08-15  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_get_geometry_hints):
              Use XAllocSizeHints to allocate the XSizeHints struct.
              (#249285, David Baron)
      da54d679
    • Matthias Clasen's avatar
      Zero out some stack-allocated X structures, to avoid valgrind warnings · bb279057
      Matthias Clasen authored
      2006-08-15  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd):
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_decorations):
              (gdk_window_set_functions): Zero out some stack-allocated
              X structures, to avoid valgrind warnings about uninitialized
              memory.  (#349382, David Baron)
      bb279057
  19. 11 Aug, 2006 1 commit
  20. 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
  21. 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
  22. 07 Aug, 2006 1 commit