summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.c
Commit message (Collapse)AuthorAgeFilesLines
* gdk/: fully remove gdkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Remove mention of gdk_event_get_graphics_expose()Kristian Rietveld2010-06-301-2/+2
|
* Deprecate the GdkRegion APIBenjamin Otte2010-06-291-2/+2
| | | | | | | | | | Includes fixing all callers to use the cairo region API instead. This is usually just replacing the function names, the only difference is gdk_region_get_rectangles() being replaced by cairo_region_num_rectangles() and cairo_region_get_rectangle() which required a bit more work. https://bugzilla.gnome.org/show_bug.cgi?id=613284
* Remove gdk_input_* callbacks on file descriptors deprecated functionsJavier Jardón2010-06-201-114/+0
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=619687
* gdk_event_get_device(): Fallback to core pointer/keyboard.Carlos Garnacho2010-06-151-0/+45
| | | | | | | Events could be injected by third party code, which could not have a GdkDevice set for newer GdkEvent types holding a GdkDevice. This function will now fallback to core pointer/keyboard, plus issuing a warning about the problem.
* [gdkevents] Add annotations for GdkEvent getters.Steve Frécinaux2010-06-081-9/+9
|
* Merge the xi2-for-master branchMatthias Clasen2010-05-251-41/+276
|
* Remove deprecated code from GdkEventJavier Jardón2010-05-031-1/+1
|
* Update the gdk_event_free docsMatthias Clasen2010-04-221-1/+1
| | | | Bug 616118
* [docs] Add missing "Deprecated: 2.x" to the api doc commentsJavier Jardón2010-01-111-2/+2
|
* Properly free damage eventsMatthias Clasen2009-12-201-0/+2
| | | | This was reported in bug 605008
* Track viewable for GdkWindowAlexander Larsson2009-07-181-0/+3
|
* Avoid warnings about non-handled GDK_EVENT_LAST enumAlexander Larsson2009-04-021-0/+2
|
* Switch motion hint emulation to be serial based.Alexander Larsson2009-04-021-1/+1
| | | | | For backends not supporting serials, just have _gdk_windowing_window_get_next_serial return zero.
* Implement GDK_POINTER_MOTION_HINT_MASK supportAlexander Larsson2009-04-021-1/+9
|
* Initial client-side-windows workAlexander Larsson2009-04-021-2/+62
| | | | | | | 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 removed.
* Bug 551063 – deprecated marking without a link to what new code shouldSven Herzberg2008-09-061-0/+32
| | | | | | | | | | | | | | | 2008-09-06 Sven Herzberg <sven@imendio.com> Bug 551063 – deprecated marking without a link to what new code should use * gdk/tmpl/input.sgml: dropped tmpl documentation for gdk_input_add() and gdk_input_add_full() * gdk/gdkevents.c: added inline documentation for gdk_input_add() and gdk_input_add_full(); added replacement hints into the deprecation message svn path=/trunk/; revision=21305
* Small doc fixesMatthias Clasen2008-07-041-1/+1
| | | | svn path=/trunk/; revision=20771
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 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
* deprecate GdkDestroyNotify.Michael Natterer2008-06-181-2/+2
| | | | | | | | | | | | | | 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
* Bug 318807 – Offscreen windows and window redirection.10:49:20 Tim Janik2008-05-211-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* gdk/gdkinternals.h gdk/gdkevents.c gdk/directfb/gdkevents-directfb.cMichael Natterer2008-05-061-1/+1
| | | | | | | | | | | | | | | 2008-05-07 Michael Natterer <mitch@imendio.com> * gdk/gdkinternals.h * gdk/gdkevents.c * gdk/directfb/gdkevents-directfb.c * gdk/quartz/gdkevents-quartz.c * gdk/win32/gdkevents-win32.c * gdk/x11/gdkevents-x11.c (_gdk_windowing_event_data_copy): order parameters src,dest and make src const. svn path=/trunk/; revision=20079
* Add private backend data to events, and handle it when copying/freeingRichard Hult2008-05-061-0/+5
| | | | | | | | | | | | | | | | | | 2008-05-06 Richard Hult <richard@imendio.com> * gdk/gdkevents.c: (gdk_event_copy), (gdk_event_free): * gdk/gdkinternals.h: Add private backend data to events, and handle it when copying/freeing events. Currently only needed in the quartz backend. * gdk/directfb/gdkevents-directfb.c: * gdk/quartz/gdkevents-quartz.c: * gdk/win32/gdkevents-win32.c: * gdk/x11/gdkevents-x11.c: (_gdk_windowing_event_data_copy) (_gdk_windowing_event_data_free): Add stubs for X11, win32 and directfb. Implement for quartz. Part of fixing bug #473822. svn path=/trunk/; revision=20078
* gdk/gdkdisplay.h gdk/gdkdrawable.h gdk/gdkevents.h gdk/gdkpango.hMichael Natterer2008-01-151-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Require gtk-doc 1.8Matthias Clasen2007-11-251-5/+6
| | | | | | | | | | | 2007-11-25 Matthias Clasen <mclasen@redhat.com> * configure.in: Require gtk-doc 1.8 * */*.c: Use gtk-doc abbreviations for examples in docs. svn path=/trunk/; revision=19041
* added usage example to gdk_event_request_motions() docs.Tim Janik2007-07-041-1/+11
| | | | | | | | | | | Wed Jul 4 12:20:23 2007 Tim Janik <timj@imendio.com> * gdk/gdkevents.c (gdk_event_request_motions): added usage example to gdk_event_request_motions() docs. svn path=/trunk/; revision=18378
* Fix a doc formatting thingMatthias Clasen2007-06-071-1/+1
| | | | svn path=/trunk/; revision=18071
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-4/+2
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
* fixed typoTim Janik2007-02-061-1/+1
| | | | svn path=/trunk/; revision=17270
* call gdk_event_request_motions() for new motion events after receivingTim Janik2007-02-061-0/+20
| | | | | | | | | | | | | | | | | | | | 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
* fix missing hash table initialization.Tim Janik2005-12-061-1/+4
| | | | | | | Tue Dec 6 11:37:59 2005 Tim Janik <timj@gtk.org> * gdk/gdkevents.c (gdk_event_new): fix missing hash table initialization.
* Use g_slice instead of mem chunks.Matthias Clasen2005-12-051-15/+2
| | | | | | | 2005-12-05 Matthias Clasen <mclasen@redhat.com> * gdk/gdkevents.c: * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
* Intern type names before registering the type to avoid unnecessary copies.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_type): * gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_impl_x11_get_type): * gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_get_type): * gdk/x11/gdkinput.c (gdk_device_get_type): * gdk/x11/gdkimage-x11.c (gdk_image_get_type): * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_type): * gdk/x11/gdkdrawable-x11.c (_gdk_drawable_impl_x11_get_type): * gdk/x11/gdkdnd-x11.c (gdk_drag_context_get_type): * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type): * gdk/x11/gdkcolor-x11.c (gdk_colormap_get_type): * gdk/gdkwindow.c (gdk_window_object_get_type): * gdk/gdkscreen.c (gdk_screen_get_type): * gdk/gdkrectangle.c (gdk_rectangle_get_type): * gdk/gdkpixmap.c (gdk_pixmap_get_type): * gdk/gdkkeys.c (gdk_keymap_get_type): * gdk/gdkfont.c (gdk_font_get_type): * gdk/gdkevents.c (gdk_event_get_type): * gdk/gdkdraw.c (gdk_drawable_get_type): * gdk/gdkdisplaymanager.c (gdk_display_manager_get_type): * gdk/gdkdisplay.c (gdk_display_get_type): * gdk/gdkcursor.c (gdk_cursor_get_type): * gdk/gdkcolor.c (gdk_color_get_type): Intern type names before registering the type to avoid unnecessary copies.
* add GDK_GRAB_BROKEN to the switch cases.Manish Singh2005-06-261-0/+2
| | | | | | | | | | | | Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org> * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add GDK_GRAB_BROKEN to the switch cases. * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused variables. * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-161-1/+4
| | | | | | | | | | | | | | | | | 2005-03-15 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gdk/gdk.symbols: Group symbols by header and source file. * gdk/makegdkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegdkalias.pl -def * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this file. * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other headers, include gdkaliasdef.c at the bottom.
* Fix many instances of "the the" in docs and comments. (#165815, MasaoMatthias Clasen2005-02-011-1/+1
| | | | | | | 2005-02-01 Matthias Clasen <mclasen@redhat.com> * */*.c: Fix many instances of "the the" in docs and comments. (#165815, Masao Mutoh)
* Handle scroll events. (#159098, Felipe Heidrich)Matthias Clasen2004-11-231-0/+4
| | | | | | | 2004-11-22 Matthias Clasen <mclasen@redhat.com> * gdk/gdkevents.c (gdk_event_get_root_coords): Handle scroll events. (#159098, Felipe Heidrich)
* Fix many sparse warnings.Matthias Clasen2004-10-281-1/+1
|
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gdk/Makefile.am: Add rules to generate gdk.def and gdkalias.h from gdk.symbols, and make make check check the abi with abicheck.sh. * gdk/gdk.symbols: New file. Definition of the GDK ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gdk/abicheck.sh: New file. Script to check the actually symbols exported from libgdk-x11.2.0.so against the symbols found in gdk.symbols. * gdk/makegdkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gdk/*.c, gdk/x11/*.c: Include gdkalias.h
* have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gccManish Singh2004-07-091-0/+2
| | | | | | | | | | Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org> * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gcc warnings about not all enum values handled. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in #ifdef HAVE_XFIXES.
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Do not interpret distant clicks as double-clicks (#116541, BernhardMatthias Clasen2003-12-161-12/+45
| | | | | | | | | | | | | | | | | | | | | | | Tue Dec 16 01:46:46 2003 Matthias Clasen <maclas@gmx.de> Do not interpret distant clicks as double-clicks (#116541, Bernhard Walle): * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields double_click_distance, button_x and button_y. * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields. * gdk/gdkdisplay.h: * gdk/gdkevents.c (gdk_display_set_double_click_distance): New function to set the double click distance on a display. * gdk/gdkevents.c: Take double click distance into account when generating single, double or triple clicks. * gtk/gtksettings.c: Add new setting "gtk-double-click-distance". * gdk/x11/gdkevents-x11.c: Add the XSetting "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
* Fix for the case when gdk_event_copy() is called on a non-allocated event.Owen Taylor2003-04-181-4/+6
| | | | | | | | Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c (gdk_event_copy): Fix for the case when gdk_event_copy() is called on a non-allocated event. (#109716, reported by Rich Burridge)
* copy the event axes as well.Larry Ewing2003-02-181-0/+14
| | | | | | 2003-02-15 Larry Ewing <lewing@ximian.com> * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
* Document 2.2 API additions.Matthias Clasen2002-11-281-3/+11
|
* Gdk API doc updates.Matthias Clasen2002-10-221-0/+9
|
* implement maximize for linux-fbEric Warmenhoven2002-10-031-1/+1
| | | | | | | | | | | | | | | Thu Oct 3 16:40:18 2002 Eric Warmenhoven <eric@warmenhoven.org> * gdk/gdkevents.c, gdk/linux-fb/gdkwindow-fb.c, gtk/gtkwindow-decorate.c: implement maximize for linux-fb * gdk/linux-fb/gdkkeyboard-fb.c: implement raw keyboard mode * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkdnd-fb.c, gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkselection-fb.c, gdk/linux-fb/miarc.c, gdk/linux-fb/mifpolycon.c, gdk/linux-fb/miwideline.c, gdk/linux-fb/mizerclip.c, gdk/linux-fb/mizerline.c: small cleanups
* Add a 'type' parameter, make public.Owen Taylor2002-10-031-9/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Oct 3 14:13:33 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c (gdk_event_new): Add a 'type' parameter, make public. * gdk/gdkevents.c (gdk_event_copy): Copy the screen. * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c: _gdk_event_new() => gdk_event_new(). * gdk/win32/gdkevents-win32.c (real_window_procedure): Fix event_private->screen breakage that results from evil encapsulation breakage here. * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c tests/testgtk.c: Remove most usage of stack-allocated GdkEvent structures. * gtk/gtktreeview.c: Use a cut-and-paste of the full send_focus_event() from gtkwindow.c that does the necessary notification of the ::has-focus property and setting of the HAS_FOCUS flag.x * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing an extraneous use of a GdkEvent.