1. 23 Aug, 2016 1 commit
    • Carlos Garnacho's avatar
      gdk: Add GdkDevicePad · b8a77d4d
      Carlos Garnacho authored
      This is an interface meant to be implemented by the "pad" devices.
      This device-specific interface exposes the mapping of all pad features,
      it allows retrieving:
      - The number of buttons/rings/strips
      - The number of groups
      - The number of modes a group has
      - Whether a given button/ring/strip belongs to a given group
      
      https://bugzilla.gnome.org/show_bug.cgi?id=770026
      b8a77d4d
  2. 09 Jun, 2016 1 commit
  3. 28 Apr, 2016 1 commit
  4. 09 Apr, 2016 1 commit
  5. 14 Dec, 2015 1 commit
  6. 02 Feb, 2015 1 commit
  7. 13 Oct, 2014 1 commit
    • Alexander Larsson's avatar
      gdk: Add support for OpenGL · 038aac62
      Alexander Larsson authored
      This adds the new type GdkGLContext that wraps an OpenGL context for a
      particular native window. It also adds support for the gdk paint
      machinery to use OpenGL to draw everything. As soon as anyone creates
      a GL context for a native window we create a "paint context" for that
      GdkWindow and switch to using GL for painting it.
      
      This commit contains only an implementation for X11 (using GLX).
      
      The way painting works is that all client gl contexts draw into
      offscreen buffers rather than directly to the back buffer, and the
      way something gets onto the window is by using gdk_cairo_draw_from_gl()
      to draw part of that buffer onto the draw cairo context.
      
      As a fallback (if we're doing redirected drawing or some effect like a
      cairo_push_group()) we read back the gl buffer into memory and composite
      using cairo. This means that GL rendering works in all cases, including
      rendering to a PDF. However, this is not particularly fast.
      
      In the *typical* case, where we're drawing directly to the window in
      the regular paint loop we hit the fast path. The fast path uses opengl
      to draw the buffer to the window back buffer, either by blitting or
      texturing. Then we track the region that was drawn, and when the draw
      ends we paint the normal cairo surface to the window (using
      texture-from-pixmap in the X11 case, or texture from cairo image
      otherwise) in the regions where there is no gl painted.
      
      There are some complexities wrt layering of gl and cairo areas though:
      * We track via gdk_window_mark_paint_from_clip() whenever gtk is
        painting over a region we previously rendered with opengl
        (flushed_region). This area (needs_blend_region) is blended
        rather than copied at the end of the frame.
      * If we're drawing a gl texture with alpha we first copy the current
        cairo_surface inside the target region to the back buffer before
        we blend over it.
      
      These two operations allow us full stacking of transparent gl and cairo
      regions.
      038aac62
  8. 22 May, 2014 1 commit
  9. 25 Feb, 2013 1 commit
  10. 27 Feb, 2012 2 commits
    • Javier Jardón's avatar
      Change FSF Address · 9d0febc9
      Javier Jardón authored
      9d0febc9
    • Matthias Clasen's avatar
      Add versioned deprecation macros · e580c79a
      Matthias Clasen authored
      These macros follow the recent changes in GLibs deprecation
      setup. We now annotate deprecated functions with the version
      they were deprecated in, and you can define the macro
      GDK_VERSION_MIN_REQUIRED to cut off deprecation warnings for
      'recent' deprecations.
      
      At the same time, we introduce version annotations for new API
      and allow you to avoid 'recent' API additions by defining
      GDK_VERSION_MAX_ALLOWED.
      e580c79a
  11. 21 Dec, 2010 2 commits
    • Matthias Clasen's avatar
      Remove gdk_spawn functions · 25c66c11
      Matthias Clasen authored
      These functions were trivial g_spawn wrappers in all backends
      except for X11, and they can be easily replaced by
      g_app_info_create_for_commandline + GdkAppLaunchContext.
      25c66c11
    • Matthias Clasen's avatar
      Merge libgdk and libgtk · 07d49ee5
      Matthias Clasen authored
      This commit does a number of things:
      - remove some dead wchar configury from configure.ac and gdkconfig.h
      - repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
        macros for each included backend, include it in gdk.h and install
        it in $includedir instead of below $libdir
      - drop the backend from the library names
      - build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
      It does not yet enable building multiple backends at the same time.
      07d49ee5
  12. 17 Dec, 2010 1 commit
  13. 02 Dec, 2010 1 commit
  14. 25 Oct, 2010 1 commit
  15. 15 Oct, 2010 1 commit
  16. 26 Sep, 2010 1 commit
    • Benjamin Otte's avatar
      gdk: Remove GdkPixmap · f74f9b27
      Benjamin Otte authored
      All iusers of it are gone, so it's now time to let go.
      cairo_surface_t is a full replacement, combined with
      gdk_window_create_similar_surface().
      f74f9b27
  17. 18 Sep, 2010 1 commit
    • Havoc Pennington's avatar
      Revamp and modernize X error traps · b837ef5a
      Havoc Pennington authored
      * add per-display gdk_x11_display_error_trap_push()
        (X11-specific because gdk_error_trap_push() probably
        should have been)
      * make gdk_error_trap_push() handle only GDK displays
        not displays opened without a GDK wrapper
      * make gdk_error_trap_pop() and gdk_x11_display_error_trap_pop()
        automatically sync only if needed, so manual gdk_flush() is not
        required
      * add gdk_error_trap_pop_ignored() which just asynchronously
        ignores errors, so never needs to sync
      * add G_GNUC_WARN_UNUSED_RESULT to plain pop(), because
        if you use plain pop() and don't need the return value,
        the async gdk_error_trap_pop_ignored() should be used
        instead. This results in lots of warnings to clean
        up in a later patch.
      
      The main objective here was to avoid the need to sync just
      to ignore an error. Now, syncing is automatic, and only
      happens when we need to know the error code.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=629608
      b837ef5a
  18. 10 Sep, 2010 1 commit
  19. 08 Sep, 2010 1 commit
    • Tor Lillqvist's avatar
      Remove variables from the platform-independent GDK API · 3963d5aa
      Tor Lillqvist authored
      gdk_threads_mutex, gdk_threads_lock and gdk_threads_unlock are removed
      from public API. gdk_threads_mutex was deprecated already. Instead of
      using gdk_threads_lock and _unlock one was presumably supposed to use
      the GDK_THREADS_ENTER and _LEAVE macros, which now simply call the
      corresponding gdk_threads_enter() and _leave() functions.
      
      Remove he dllimport/dllexport ugliness for GDK for Windows.
      
      There is still a gdk_display variable being exported by the X11
      backend.
      3963d5aa
  20. 10 Aug, 2010 3 commits
  21. 29 Jun, 2010 1 commit
  22. 28 Jun, 2010 1 commit
  23. 19 Jun, 2010 2 commits
  24. 26 May, 2010 1 commit
  25. 25 May, 2010 1 commit
  26. 12 May, 2010 1 commit
  27. 31 Jul, 2008 1 commit
  28. 01 Jul, 2008 1 commit
  29. 30 Jun, 2008 1 commit
    • 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
  30. 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
  31. 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
  32. 18 Apr, 2008 1 commit
  33. 14 Jan, 2008 1 commit
    • Michael Natterer's avatar
      gdk/gdk.h gdk/gdkcairo.h gdk/gdkcolor.h gdk/gdkgc.h gdk/gdkinternals.h · 92f86e04
      Michael Natterer authored
      2008-01-14  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdk.h
      	* gdk/gdkcairo.h
      	* gdk/gdkcolor.h
      	* gdk/gdkgc.h
      	* gdk/gdkinternals.h
      	* gdk/gdkregion.h
      	* gdk/gdkwindow.h: made GdkRectangle*, GdkRegion* and GdkColor*
      	parameters const.
      
      	* gdk/gdkcairo.c
      	* gdk/gdkgc.c
      	* gdk/gdkwindow.c
      	* gdk/gdkrectangle.c
      	* gdk/gdkpolyreg-generic.c
      	* gdk/gdkregion-generic.c
      	* gdk/directfb/gdkcolor-directfb.c
      	* gdk/directfb/gdkgc-directfb.c
      	* gdk/directfb/gdkgeometry-directfb.c
      	* gdk/directfb/gdkwindow-directfb.c
      	* gdk/quartz/gdkcolor-quartz.c
      	* gdk/quartz/gdkgc-quartz.c
      	* gdk/quartz/gdkgeometry-quartz.c
      	* gdk/quartz/gdkwindow-quartz.c
      	* gdk/win32/gdkcolor-win32.c
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkgeometry-win32.c
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkwindow-win32.c
      	* gdk/x11/gdkcolor-x11.c
      	* gdk/x11/gdkgc-x11.c
      	* gdk/x11/gdkgeometry-x11.c
      	* gdk/x11/gdkmain-x11.c
      	* gdk/x11/gdkprivate-x11.h
      	* gdk/x11/gdkwindow-x11.c: changed accordingly.
      
      	* gdk/gdkpolyreg-generic.c: uncruftify to have proper function
      	headers.
      
      
      svn path=/trunk/; revision=19365
      92f86e04
  34. 13 Dec, 2007 1 commit
  35. 20 Nov, 2007 1 commit
    • Tim Janik's avatar
      Moved Gdk test functions from Gtk+ to Gdk test utils. · 4f7a2da8
      Tim Janik authored
      * gdk/Makefile.am: added gdktestutils.h to public includes.
      
      * gdk/gdk.h: added gdktestutils.h to public includes.
      
      * gdk/gdk.symbols: added gdk_test_simulate_button, gdk_test_simulate_key,
      gdk_test_render_sync.
      
      * gdk/gdktestutils.h: new file, added prototypes for gdk_test_simulate_button,
      gdk_test_simulate_key, gdk_test_render_sync.
      
      * gdk/x11/Makefile.am: build gdktestutils-x11.c.
      
      * gdk/x11/gdktestutils-x11.c: implemented gdk_test_simulate_button,
      gdk_test_simulate_key, gdk_test_render_sync.
      
      * gtk/gtktestutils.c:
      * gtk/gtktestutils.h:
      * gtk/gtk.symbols: removed gtk_test_simulate_button
      gtk_test_simulate_key, gtk_test_xserver_render_sync.
      
      * gtk/tests/testing.c: call gdk_test_render_sync.
      
      svn path=/trunk/; revision=19012
      4f7a2da8