1. 30 Jun, 2008 4 commits
    • 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
    • Michael Natterer's avatar
      Some unrelated cleanups found while reviewing the offscreen window patch: · 971023d9
      Michael Natterer authored
      2008-06-30  Michael Natterer  <mitch@imendio.com>
      
      	Some unrelated cleanups found while reviewing
      	the offscreen window patch:
      
      	* gdk/gdkwindow.c: add missing Since: 2.14 to the redirection
      	functions, fix some function header indentation, update
      	documentation of redirect_to_drawable().
      
      	* gdk/x11/gdkwindow-x11.c
      	* gdk/x11/gdkpixmap-x11.c: fix function header
      	formatting/indentation.
      
      	* gtk/gtkwidget.c: use I_() on "damage_event".
      
      
      svn path=/trunk/; revision=20708
      971023d9
    • Michael Natterer's avatar
      remove duplicate declaration of _gdk_window_new(). · 2e3c1149
      Michael Natterer authored
      2008-06-30  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdkinternals.h: remove duplicate declaration of
      	_gdk_window_new().
      
      
      svn path=/trunk/; revision=20707
      2e3c1149
    • Michael Natterer's avatar
      reorder source lists alphabetically. · b4201d4d
      Michael Natterer authored
      2008-06-30  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/Makefile.am: reorder source lists alphabetically.
      
      
      svn path=/trunk/; revision=20706
      b4201d4d
  2. 27 Jun, 2008 2 commits
    • Kristian Rietveld's avatar
      adapt to use GdkWindowImpl interface. · cf354215
      Kristian Rietveld authored
      2008-06-27  Kristian Rietveld  <kris@imendio.com>
      
      	* gdk/quartz/gdkgeometry-quartz.c:
      	* gdk/quartz/gdkwindow-quartz.c:
      	* gdk/quartz/gdkprivate-quartz.h: adapt to use GdkWindowImpl
      	interface.
      
      
      svn path=/trunk/; revision=20697
      cf354215
    • Emmanuele Bassi's avatar
      Abstract some GdkWindow API into an interface that the backends must · e27632cd
      Emmanuele Bassi authored
      2008-06-27  Emmanuele Bassi  <ebassi@gnome.org>
      
      	Abstract some GdkWindow API into an interface that the backends
      	must implement. (based on a patch by Alex Larsson)
      
      	* gdk/Makefile.am: Add gdkwindowimpl.[ch]
      
      	* gdk/gdk.symbols: Move symbols around.
      
      	* gdk/gdkinternals.h:
      	* gdk/gdkwindowimpl.[ch]: Move some of the GdkWindow API we require
      	from the backends to a GInterface that the backends should implement
      	instead.
      
      	* gdk/gdkwindow.c: Provide some of the GdkWindow public API as a
      	wrapper call around the GdkWindowImpl interface vtable.
      
      	* gdk/x11/gdkevents-x11.c:
      	* gdk/x11/gdkgeometry-x11.c:
      	* gdk/x11/gdkprivate-x11.h:
      	* gdk/x11/gdkwindow-x11.c:
      	* gdk/x11/gdkwindow-x11.h: Update the X11 backend to implement
      	the GdkWindowImpl interface.
      
      svn path=/trunk/; revision=20695
      e27632cd
  3. 23 Jun, 2008 1 commit
    • Kristian Rietveld's avatar
      do not hard code the prefix of the enum, use @ENUMPREFIX@ instead (you · ed7d0ed4
      Kristian Rietveld authored
      2008-06-23  Kristian Rietveld  <kris@imendio.com>
      
      	* gdk/gdkenumtypes.h.template:
      	* gdk-pixbuf/gdk-pixbuf-enum-types.h.template:
      	* gtk/gtktypebuiltins.h.template:
      	* perf/typebuiltins.h.template: do not hard code the prefix of the
      	enum, use @ENUMPREFIX@ instead (you need an up to date glib for this).
      
      
      svn path=/trunk/; revision=20674
      ed7d0ed4
  4. 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
  5. 21 Jun, 2008 1 commit
  6. 20 Jun, 2008 2 commits
    • Hans Breuer's avatar
      must return a value of the appropriate type with g_return_val_if_fail · 8e2ef498
      Hans Breuer authored
      2008-06-20  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
      	a value of the appropriate type with g_return_val_if_fail
      	
      	* gdk/gdkconfig.h.win32 : add the GSEAL definition here as well
      
      	* gtk/gtkfilesystem.c : don't add the "File System" on win32
      
      	* tests/makefile.msc : remove broken autotestfile(system|chooser) 
      	from build
      
      
      svn path=/trunk/; revision=20657
      8e2ef498
    • Cody Russell's avatar
      Rename gdk_window_new -> _gdk_window_new and gdk_window_reparent -> · 778be3e8
      Cody Russell authored
      2008-06-20  Cody Russell  <cody@jhu.edu>
      
              * gdk/directfb/gdkwindow-directfb.c:
      
              Rename gdk_window_new -> _gdk_window_new and
              gdk_window_reparent -> _gdk_window_reparent to fix
              the build.  (#539095, Sebastien Bacher)
      
      
      svn path=/trunk/; revision=20476
      778be3e8
  7. 18 Jun, 2008 1 commit
    • Michael Natterer's avatar
      deprecate GdkDestroyNotify. · 67c6c28f
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdk.h: deprecate GdkDestroyNotify.
      
      	* gdk/gdkevents.c
      	* gdk/gdktypes.h
      	* gdk/x11/gdkevents-x11.c
      	* gtk/gtkmain.c: s/GdkDestroyNotify/GDestroyNotify/g.
      
      
      svn path=/trunk/; revision=20449
      67c6c28f
  8. 17 Jun, 2008 1 commit
  9. 15 Jun, 2008 1 commit
    • Cody Russell's avatar
      Initialize hwnd to NULL. This fixes OpenClipboard() failure and, according · 472ea19b
      Cody Russell authored
      2008-06-14  Cody Russell  <bratsche@gnome.org>
      
              * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):
      
              Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
              according to MSDN docs, associates the open clipboard with the
              current task.  (#378158, reported by Andreas Köhler)
      
      
      svn path=/trunk/; revision=20388
      472ea19b
  10. 13 Jun, 2008 2 commits
    • Matthias Clasen's avatar
      Fix doc typos · d0b1330d
      Matthias Clasen authored
      svn path=/trunk/; revision=20380
      d0b1330d
    • Hans Breuer's avatar
      check surface status after ceating a pdf. Avoids crashing when the target · 8677ed95
      Hans Breuer authored
      2008-05-23  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkprintoperation.c : check surface status after ceating a pdf.
      	Avoids crashing when the target can not be written, bug #537685
      
      	* gdk/win32/gdkdisplay-win32.c : runtime linking of ProcessIdToSessionId
      
      	* gtk/gtkfilesystem.c : variadic macros are not supported with c89 and
      	it was not needed here anyway.
      
      
      svn path=/trunk/; revision=20370
      8677ed95
  11. 11 Jun, 2008 1 commit
  12. 06 Jun, 2008 2 commits
    • Matthias Clasen's avatar
      Return the right coordinates · d06e3a6a
      Matthias Clasen authored
      svn path=/trunk/; revision=20325
      d06e3a6a
    • Behdad Esfahbod's avatar
      Bug 536185 – monitor font configuration · 74b8297e
      Behdad Esfahbod authored
      2008-06-06  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 536185 – monitor font configuration
      
              * configure.in:
              * gdk/x11/gdksettings.c:
              * gtk/gtksettings.c (gtk_settings_class_init),
              (gtk_settings_notify), (settings_update_fontconfig):
              Monitor xsettings key Fontconfig/Timestamp and upon change,
              reread fontconfig configuration, clear Pango's caches, and
              redraw all widgets.
      
      
      svn path=/trunk/; revision=20324
      74b8297e
  13. 30 May, 2008 2 commits
    • Michael Natterer's avatar
      gdk/gdkapplaunchcontext.h gdk/gdktestutils.h gtk/gtkmountoperation.h · f18bfd0a
      Michael Natterer authored
      2008-05-30  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdkapplaunchcontext.h
      	* gdk/gdktestutils.h
      	* gtk/gtkmountoperation.h
      	* gtk/gtkshow.h
      	* gtk/gtktestutils.h
      	* gtk/gtktoolshell.h: no need to allow disabling single includes
      	conditionally in these new files. Simply forbid including them
      	individually from the beginning.
      
      
      svn path=/trunk/; revision=20256
      f18bfd0a
    • Tor Lillqvist's avatar
      Bug 533108 - leak of GDI region in function 'handle_wm_paint' · 710c9619
      Tor Lillqvist authored
      2008-05-30  Tor Lillqvist  <tml@novell.com>
      
      	Bug 533108 - leak of GDI region in function 'handle_wm_paint'
      
      	* gdk/win32/gdkevents-win32.c (handle_wm_paint): Patch by Daniel
      	Atallah.
      
      
      svn path=/trunk/; revision=20250
      710c9619
  14. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GDK_H_INSIDE__ around including all other headers. · 791ac426
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
      	headers.
      
      	* gdk/gdkenumtypes.h.template
      	* gdk/gdk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually. Also removed some redundant includes and
      	did some tiny trailing whitespace removal that's not worth to
      	commit separately.
      
      	* gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
      	files.
      
      	* gdk/win32/gdkwin32.h
      	* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
      	other includes.
      
      
      svn path=/trunk/; revision=20217
      791ac426
  15. 26 May, 2008 2 commits
    • Richard Hult's avatar
      Try setting the default font, might need to tweak this. · f3a6fecb
      Richard Hult authored
      2008-05-26  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Try
      	setting the default font, might need to tweak this.
      
      svn path=/trunk/; revision=20181
      f3a6fecb
    • Matthias Clasen's avatar
      Bug 513811 – Use cairo_format_stride_for_width() · 9ec6a659
      Matthias Clasen authored
              * gtk/gtkhsv.c (paint_ring, paint_triangle):
              * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Use
              cairo_format_stride_for_width, proposed by Behdad Esfahbod.
      
              * configure.in: Bump cairo requirement to 1.6.0
      
              * INSTALL.in: Update required versions
      
      
      svn path=/trunk/; revision=20170
      9ec6a659
  16. 25 May, 2008 4 commits
    • Cody Russell's avatar
      Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows · 4f84a5f2
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
      
              * gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
              !WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
              so that we also take into account for foreign windows.
              Report and patch by Nathaniel Smith.
      
      
      svn path=/trunk/; revision=20166
      4f84a5f2
    • Cody Russell's avatar
      Bug 525461 - Don't invalidate under an input-only child · a0e6b364
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 525461 - Don't invalidate under an input-only child
      
              * gdk/x11/gdkgeometry-x11.c (_gdk_window_move_resize_child):
              Check that the window is not input-only before invalidating.
              Report and patch by Owen Taylor.
      
      
      svn path=/trunk/; revision=20165
      a0e6b364
    • Cody Russell's avatar
      Bug 524110 - Gdk should not assume reparenting WMs when retrieving window · 4a5da1a1
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 524110 - Gdk should	not assume reparenting	WMs when retrieving
              window	frame extents
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
              Use _NET_FRAME_EXTENTS,	if available. Patch by Danny Baumann.
      
      
      svn path=/trunk/; revision=20164
      4a5da1a1
    • Cody Russell's avatar
      Bug 522269 - Evince windows sometimes incorrectly unmaximized, caused by · 030ff5b1
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 522269 - Evince windows sometimes incorrectly unmaximized,
              caused by missing flag initialization
      
              * gdk/x11/gdkwindow-x11.c (set_initial_hints): Initialize
              top-level private flags correctly.  Patch by Danny Baumann.
      
      
      svn path=/trunk/; revision=20163
      030ff5b1
  17. 24 May, 2008 2 commits
  18. 23 May, 2008 3 commits
    • Hans Breuer's avatar
      updated fix c99ism (variable at start of block export functions for window · 0b57c6b9
      Hans Breuer authored
      2008-05-23  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc gtk/makefile.msc.in : updated
      	* gtk/gtkwidget.c : fix c99ism (variable at start of block
      	* gdk/gdk.symbols gtk/gtk.symbols : export functions for window 
      	redirection
      	* gtk/gtkfilechooserdefault.c : #include <locale.h> for 
      	setlocale(LC_ALL, ...)
      
      svn path=/trunk/; revision=20131
      0b57c6b9
    • Tor Lillqvist's avatar
      Add gdk_window_redirect_to_drawable and gdk_window_remove_redirection. · a8b5f3ee
      Tor Lillqvist authored
      2008-05-23  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
      	gdk_window_remove_redirection.
      
      	* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
      	(_gdk_window_reparent): Rename to adapt to the offscreen rendering
      	changes. Remove now unnecessary parameter checks as the caller
      	does that already.
      
      	* gtk/gtk.symbols: Add gtk_widget_get_snapshot.
      
      
      svn path=/trunk/; revision=20130
      a8b5f3ee
    • Tor Lillqvist's avatar
      Don't do anything if style doesn't change. Improve debugging output. · 5b8f0faa
      Tor Lillqvist authored
      2008-05-23  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (update_style_bits): Don't do
      	anything if style doesn't change. Improve debugging output.
      
      
      svn path=/trunk/; revision=20129
      5b8f0faa
  19. 21 May, 2008 2 commits
    • Richard Hult's avatar
      Renamed to adapt to the offscreen rendering changes, fixes build. · 902ac34a
      Richard Hult authored
      2008-05-21  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(_gdk_window_new), (_gdk_window_reparent): Renamed to adapt to the
      	offscreen rendering changes, fixes build.
      
      svn path=/trunk/; revision=20125
      902ac34a
    • 10:49:20  Tim Janik's avatar
      Bug 318807 – Offscreen windows and window redirection. · 4111cf20
      10:49:20 Tim Janik authored
      2008-03-18 10:49:20  Tim Janik  <timj@imendio.com>
      
      	* Applied pixmap redirection patch by Alexander Larsson with
      	various updates from:
      	Bug 318807 – Offscreen windows and window redirection.
      
      
      	Updates:
      
      	* updated docs to mention "Since 2.16".
      
      	* tests/testgtk.c: fixed snapshooting pixmap leak.
      	convert pixmap to pixbuf after snapshooting, to compensate for different
      	bit depths (occurs when snapshooting ARGB visuals and displaying the
      	pixmap in an RGB visual).
      
      	* gdk/gdkwindow.[hc]: made GdkWindowRedirect private.
      
      	* gdk/gdkwindow.c: removed damage idle handler, there's no aparent
      	need for it. enqueue damage notification as GDK_DAMAGE events
      	for each painting redirection at the start of the event queue.
      	consider windows with a redirection fully visible when invalidating,
      	and when updating from backing store. cleaned up stale variables.
      
      	* gdk/gdkevents.c: added _gdk_event_queue_prepend().
      
      	* gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in
      	gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve,
      	tree, drawingarea, text, handlebox, etc.
      	clip the redirected window hierarchy to window sizes, the visible
      	rectangles don't need to be taken into account here.
      	extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable()
      	in case pixmap visuals could mismatch.
      
      	* gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect().
      
      
      	Base patch:
      
      	* tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting
      	of possibly obscured widgets into an offscreen pixmap.
      
      	* gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add
      	gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap.
      
      	* gtk/gtkmain.c: dispatch GDK_DAMAGE events.
      
      	* gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent()
      	implementations here, adapted them to propagate redirects to child windows.
      	gdk_window_end_paint(): copy repainted window contents to redirection pixmap,
      	clipped to visible region. queue GDK_DAMAGE event delivery.
      	gdk_window_redirect_to_drawable(): install window painting redirection.
      	gdk_window_remove_redirection(): remove previously installed redirection.
      
      	* gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(),
      	renamed _gdk_window_new() and _gdk_window_reparent().
      
      	* gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export
      	gdk_window_redirect_to_drawable() and gdk_window_remove_redirection().
      
      	* gdk/gdkevents.h: added GDK_DAMAGE event type.
      
      	* gdk/gdkevents.c: extract time and state from GDK_DAMAGE events.
      
      	* gdk/gdkinternals.h: added internal prototypes.
      
      
      
      svn path=/trunk/; revision=20122
      4111cf20
  20. 19 May, 2008 1 commit
  21. 17 May, 2008 1 commit
    • Richard Hult's avatar
      Use gdk_threads_add_idle instead of g_idle_add. Add a temporary check if · 618b23a4
      Richard Hult authored
      2008-05-17  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_impl_quartz_invalidate_maybe_recurse):
      	(gdk_window_quartz_update_idle): Use gdk_threads_add_idle instead
      	of g_idle_add. Add a temporary check if the window is already in
      	the updates list, since update_area currently doesn't always match
      	the backend's state, see bug #530801.
      
      svn path=/trunk/; revision=20108
      618b23a4
  22. 13 May, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 496958 - Wacom Bamboo Doesn't Function with GTK apps in Win32 · 93a5db15
      Tor Lillqvist authored
      2008-05-13  Tor Lillqvist  <tml@novell.com>
      
      	Bug 496958 - Wacom Bamboo Doesn't Function with GTK apps in Win32
      
      	* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Set
      	the "packet rate" of devices to zero instead of 50. This is
      	reported to help significantly with Wacom tablet behaviour in GIMP
      	and Inkscape. Patch from Thomas Bleeker.
      
      
      svn path=/trunk/; revision=20104
      93a5db15
  23. 12 May, 2008 2 commits
    • Richard Hult's avatar
      Forgotten in previous commit. · 16a4b0a6
      Richard Hult authored
      svn path=/trunk/; revision=20101
      16a4b0a6
    • Richard Hult's avatar
      Remove special casing of menu key events as it's no longer necessary; · 801f7bb4
      Richard Hult authored
      2008-05-12  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c:
      	* gdk/quartz/gdkquartz.h: Remove special casing of menu key events
      	as it's no longer necessary; instead the added quartz API to get
      	the nsevent from an event should be used. Also move the global
      	filter up so it's done before the check for window-less events.
      
      svn path=/trunk/; revision=20100
      801f7bb4