1. 27 Feb, 2012 1 commit
    • Matthias Clasen's avatar
      gdk: Use versioned deprecations · d36c10bc
      Matthias Clasen authored
      This patch changes all uses of GDK_DEPRECATED(_FOR) in gdk headers
      by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same
      time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions
      in 3.2 and 3.4.
  2. 27 Jan, 2012 1 commit
  3. 03 Jan, 2012 1 commit
  4. 08 Nov, 2011 1 commit
  5. 27 Sep, 2011 1 commit
  6. 28 Aug, 2011 1 commit
  7. 01 Feb, 2011 3 commits
  8. 31 Jan, 2011 1 commit
  9. 20 Jan, 2011 1 commit
  10. 18 Jan, 2011 1 commit
  11. 15 Dec, 2010 1 commit
    • Carlos Garnacho's avatar
      Add gdk_event_[gs]et_source_device(). · f5a20ab6
      Carlos Garnacho authored
      This function may be used to know the hardware device that triggered
      an event, it could resort to the master device in the few cases there's
      not a direct hardware device to relate to the event (i.e.: crossing events
      due to grabs)
  12. 02 Dec, 2010 1 commit
  13. 16 Nov, 2010 2 commits
  14. 15 Nov, 2010 2 commits
  15. 15 Oct, 2010 1 commit
  16. 29 Jun, 2010 1 commit
  17. 25 May, 2010 1 commit
  18. 14 May, 2010 1 commit
  19. 02 May, 2010 2 commits
  20. 09 Sep, 2009 1 commit
  21. 02 Apr, 2009 1 commit
    • Alexander Larsson's avatar
      Initial client-side-windows work · eabac453
      Alexander Larsson authored
      The history before this was kind of twisted as several different
      approaches were tested, so that was all squashed into this initial
      commit to hide the uninteresting changes and files that were later
  22. 01 Aug, 2008 1 commit
    • Cody Russell's avatar
      Bug 56070 – Can't click button after setting it sensitive. · 4e3c97b3
      Cody Russell authored
      2008-07-31  Cody Russell  <bratsche@gnome.org>
              Bug 56070 – Can't click button after setting it sensitive.
              * gtk/gtkwidget.[ch] 
              * gtk/gtkwindow.c
              * gtk/gtkmain.c
              * gtk/gtkbutton.c
              * gtk/gtkprivate.h
              * gdk/gdkevents.h: Synthesize crossing events events where necessary.
              * gtk/tests/crossingevents.c: Add unit tests for crossing events.
              Big thanks to Ed Catmur, Matthias Clasen, and everyone else who
              has worked on and helped out with this.
      svn path=/trunk/; revision=20924
  23. 01 Jul, 2008 1 commit
  24. 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
  25. 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
      	* 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
      	* gdk/win32/gdkwin32.h
      	* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
      	other includes.
      svn path=/trunk/; revision=20217
  26. 21 May, 2008 1 commit
    • 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.
      	* 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
  27. 15 Jan, 2008 1 commit
    • Michael Natterer's avatar
      gdk/gdkdisplay.h gdk/gdkdrawable.h gdk/gdkevents.h gdk/gdkpango.h · 8243e3d4
      Michael Natterer authored
      2008-01-15  Michael Natterer  <mitch@imendio.com>
      	* gdk/gdkdisplay.h
      	* gdk/gdkdrawable.h
      	* gdk/gdkevents.h
      	* gdk/gdkpango.h
      	* gdk/gdkregion.h
      	* gdk/gdkrgb.h
      	* gdk/gdkwindow.h: made more struct pointer and array parameters
      	const. GDK should now be constified as far as possible without
      	breaking source compatibility. Includes some minor cleanup like
      	indentation and s/nfoo/n_foo/ (bug #508544).
      	* gdk/gdkdisplay.c
      	* gdk/gdkdraw.c
      	* gdk/gdkevents.c
      	* gdk/gdkpango.c
      	* gdk/gdkregion-generic.c
      	* gdk/gdkrgb.c
      	* gdk/directfb/gdkdisplay-directfb.c
      	* gdk/directfb/gdkwindow-directfb.c
      	* gdk/quartz/gdkdisplay-quartz.c
      	* gdk/quartz/gdkwindow-quartz.c
      	* gdk/win32/gdkdisplay-win32.c
      	* gdk/win32/gdkwindow-win32.c
      	* gdk/x11/gdkdisplay-x11.c
      	* gdk/x11/gdkwindow-x11.c: changed accordingly.
      svn path=/trunk/; revision=19372
  28. 06 Feb, 2007 1 commit
    • Tim Janik's avatar
      call gdk_event_request_motions() for new motion events after receiving · caa4d15d
      Tim Janik authored
      Tue Feb  6 15:53:59 2007  Tim Janik  <timj@imendio.com>
              * gtk/gtktextview.c (gtk_text_view_motion_event):
              * gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
              * gtk/gtkaboutdialog.c (credits_motion_notify_event):
              * gtk/gtkhruler.c (gtk_hruler_motion_notify):
              * gtk/gtkvruler.c (gtk_vruler_motion_notify): 
              * gtk/gtkentry.c (gtk_entry_motion_notify):
              * gtk/gtktooltip.c (_gtk_tooltip_handle_event):
              * gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()                              
              for new motion events after receiving motion hints.
              * gdk/gdkevents.[hc]: added gdk_event_request_motions().
      svn path=/trunk/; revision=17269
  29. 09 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Make it possible to determine if a key event is for a modifier key: · 03aea1a3
      Matthias Clasen authored
      2005-09-09  Matthias Clasen  <mclasen@redhat.com>
      	Make it possible to determine if a key event is for a
      	modifier key:
       	* gdk/x11/gdkprivate-x11.h:
      	* gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier):
      	New function to determine if a keycode is mapped to a modifier.
      	(get_xkb): Get the modmap.
      	* gdk/x11/gdkevents-x11.c (translate_key_event): Set the
      	is_modifier bit by calling _gdk_keymap_key_is_modifier().
      	* gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
  30. 12 Jul, 2005 1 commit
  31. 30 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Handle broken grabs. · 87cafe5b
      Matthias Clasen authored
      2005-06-29  Matthias Clasen  <mclasen@redhat.com>
              * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
              * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
              * gdk/gdkevents.h: Add a boolean to specify wether the broken
              grab was implicit.
              * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
              As the documentation states, don't return TRUE for
              implicit grabs.
              * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
              a boolean field to store wether a pointer grab is implicit.
              * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
              Track implicit grabs.
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
              _gdk_xgrab_check_button_event for button events.
  32. 27 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Ignore GrabBroken events which are caused by overgrabbing inside the · b2343762
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
      	GrabBroken events which are caused by overgrabbing inside
      	the application; menus rely on these for their operation.
      	* gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
      	grab_window field.
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
      	grab_window to NULL when generating GrabBroken events for
      	WM_KILLFOCUS messages.
      	* gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
      	(_gdk_xgrab_check_destroy): Set grab_window to NULL when
      	generating GrabBroken events when the grab window becomes
      	unviewable or is destroyed.
      	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
      	Generate GrabBroken events when overriding a grab inside
      	the application. In this case, set grab_window to the new
  33. 25 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Add a GrabBroken event to GDK, and a grab-broken-event signal to · 9b356ea0
      Matthias Clasen authored
      2005-06-25  Matthias Clasen  <mclasen@redhat.com>
      	Add a GrabBroken event to GDK, and a grab-broken-event
      	signal to GtkWidget.  (#107320, Simon Cooke, initial patch
      	by John Ehresman)
      	* gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
      	define a GdkEventGrabBroken event struct.
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
      	Generate GrabBroken events in response to WM_KILLFOCUS.
      	* gdk/x11/gdkmain-x11.c: Generate GrabBroken events
      	when a grab is broken by the window becoming unviewable,
      	or by another grab from the same client.
      	* gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
      	* gtk/gtkwidget.c (gtk_widget_event_internal): Translate
      	GrabBroken events into grab_broken_event signals.
      	* gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
      	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
      	the menu when the grab is broken.
      	* gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
      	the color picker if the grab is broken.
      	* gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
      	the grab is broken.
  34. 12 Jun, 2005 1 commit
  35. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · fdec8714
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      	* gdk/gdkvisual.h (gdk_visual_get_type):
      	* gdk/gdkscreen.h (gdk_screen_get_type):
      	* gdk/gdkinput.h (gdk_device_get_type):
      	* gdk/gdk.h (gdk_rectangle_get_type):
      	* gdk/gdkfont.h (gdk_font_get_type):
      	* gdk/gdkevents.h (gdk_event_get_type):
      	* gdk/gdkdrawable.h (gdk_drawable_get_type):
      	* gdk/gdkdisplay.h (gdk_display_get_type):
      	* gdk/gdkcursor.h (gdk_cursor_get_type):
      	* gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
      	* gdk/gdk.symbols:
      	* gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
      	generated by glib-mkenums as const.