summaryrefslogtreecommitdiff
path: root/gdk/gdkrectangle.c
Commit message (Collapse)AuthorAgeFilesLines
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-1/+1
|
* Inclusion cleanups in sourcesMatthias Clasen2010-10-141-1/+2
| | | | Try to do inclusions in the same sequence, more or less.
* docs: Move documentation to inline comments: regionsJavier Jardón2010-10-041-0/+20
|
* Use G_DEFINE_BOXED_TYPEChristian Persch2010-08-181-11/+3
| | | | Bug #627214.
* Annotate gdk_rectangle_intersectTomeu Vizoso2010-07-281-1/+2
|
* gdk/: fully remove gdkalias hacksJavier Jardón2010-07-101-5/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* [annotations] Add allow-noneJohan Dahlin2010-02-191-1/+1
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Avoid integer overflow in gdk_rectangle_intersectAlexander Larsson2010-01-221-6/+6
| | | | | | | | | | | | | | | If e.g. the right edge of the leftmost rectangle is near MIN_INT, and the left edge of the rightmost rectangle is large then subtracting these can lead to an integer overflow, making the resultant "width" falsely positive, thus returning a very wide result instead of the expected no-intersection result. We avoid the overflow by not doing the subtraction unless we know the result will be positive. There are still risks for overflow if x + width or y + width is larger than MAXINT, but we won't ever overflow for valid rects now. This may fix #607687
* 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
* gdk/gdk.h gdk/gdkcairo.h gdk/gdkcolor.h gdk/gdkgc.h gdk/gdkinternals.hMichael Natterer2008-01-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Allow dest to be NULL. (#464528, Xan Lopez)Matthias Clasen2007-09-071-10/+14
| | | | | | | | | | | 2007-09-06 Matthias Clasen <mclasen@redhat.com> * gdk/gdkrectangle.c (gdk_rectangle_intersect): Allow dest to be NULL. (#464528, Xan Lopez) svn path=/trunk/; revision=18742
* Note in docs that @dest's width and height is set to 0, 0 if theBjörn Lindqvist2007-08-101-2/+4
| | | | | | | | | | 2007-08-11 Björn Lindqvist <bjourne@gmail.com> * gdk/gdkrectangle.c (gdk_rectangle_intersect): Note in docs that @dest's width and height is set to 0, 0 if the rectangles does not intersect. (#464524) svn path=/trunk/; revision=18602
* Note in docs that @dest can be the same as @src1 or @src2. (#343233,Behdad Esfahbod2006-05-281-0/+2
| | | | | | | | 2006-05-28 Behdad Esfahbod <behdad@gnome.org> * gdk/gdkrectangle.c (gdk_rectangle_union, gdk_rectangle_intersect): Note in docs that @dest can be the same as @src1 or @src2. (#343233, Christian Persch)
* Inline docs.Matthias Clasen2005-12-241-0/+20
| | | | | | 2005-12-24 Matthias Clasen <mclasen@redhat.com> * gdk/gdkrectangle.c: Inline docs.
* 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.
* 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.
* 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
* 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>
* Update to use the new g_boxed_type_register_static API.Alex Larsson2001-09-101-3/+1
| | | | | | | | | | | | 2001-09-10 Alex Larsson <alexl@redhat.com> * demos/gtk-demo/stock_browser.c: * gdk/gdkcolor.c: * gdk/gdkcursor.c: * gdk/gdkevents.c: * gdk/gdkrectangle.c: * gtk/gtktypeutils.c: Update to use the new g_boxed_type_register_static API.
* Add GDK_TYPE_RECTANGLE.Owen Taylor2001-06-011-0/+24
| | | | | | | | | | Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add GDK_TYPE_RECTANGLE. * gtk/gtkwidget.c (gtk_widget_class_init): Fix type of allocation argument be GDK_TYPE_RECTANGLE.
* Applied patch from Peter Osterlund to simplify the code while keeping theOwen Taylor2000-08-031-46/+13
| | | | | | | | Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com> * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from Peter Osterlund to simplify the code while keeping the functionality the same.
* applied patch from Andreas Persenius <ndap@swipnet.se> that updates theTim Janik2000-07-261-4/+4
| | | | | | | | Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org> * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that updates the license headers to the GNU Lesser General Public License, as well as updating the copyright year to 2000.
* Merge no-flicker branch into HEADOwen Taylor2000-03-281-8/+18
|
* Merges from gtk-1-2Owen Taylor2000-03-141-1/+1
|
* StartedOwen Taylor1999-10-011-2/+0
| | | | | | | | | | | | | | | | | | | Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com> * docs/Changes-1.4.txt: Started * gtk/Makefile.am (gdk_headers): Include all the new headers. * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces. * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private into C file. * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput header to gdkinputprivate.h. * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been unused since before 1.2.
* Support added for building using a GNU toolchain on Win32,Tor Lillqvist1999-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1. * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files. * config.h.win32: Changes for gcc. * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>. * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp. * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h. * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better. Protect shl stuff unavaiilable with mingw32 headers. * gdk/win32/gdkevents.c: Fix typo. * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc. * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?) * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler. * gdk/win32/gdkprivate.h: Make up for some stuff missing from the mingw32 headers. * gdk/win32/makefile.msc: Use latest Wintab kit and glib. * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat definition on Win32. Test for NATIVE_WIN32, not _MSC_VER. * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32. Test for NATIVE_WIN32, not _MSC_VER. * gtk/gtkmain.c: No use warning about developer version on Win32, there aren't any non-developer versions anyhow. * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER. * gtk/makefile.msc: Use pthread from another directory. Minor other changes.
* Added notice to look in AUTHORS and ChangeLog files for a list of changes.CST 1999 Shawn T. Amundson1999-02-241-0/+8
| | | | | | | Wed Feb 24 01:22:39 CST 1999 Shawn T. Amundson <amundson@gtk.org> * *.[ch]: Added notice to look in AUTHORS and ChangeLog files for a list of changes.
* asure that ->value_buf always points to an allocated area.Tim Janik1999-02-101-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 10 08:35:36 1999 Tim Janik <timj@gtk.org> * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): asure that ->value_buf always points to an allocated area. (gtk_color_selection_drag_end): new function hooked up to drag_end to destroy the drag_window. * gtk/gtkdnd.c: some coding style fixups. Wed Feb 10 06:47:17 1999 Tim Janik <timj@gtk.org> * gdk/gdkwindow.c: various indentation fixes. * gdk/gdkevents.c: coding style fixups. NULL initialize event_func, event_notify and event_chunk. (expose_predicate): made this function static. (gdk_event_handler_set): perform destroy notification even if no event_func is set. * gdk/gdkrectangle.c (gdk_rectangle_union): added g_return_if_fail statements.
* Merge from themes-2. See the ChangeLog for a somewhat detailedOwen Taylor1998-11-061-0/+14
| | | | | history of the evolution of the changes involved. Most of this is actually minor painting tweaks.
* Changed LGPL address for FSF in all .h and .c filesPDT 1998 Shawn T. Amundson1998-04-131-2/+3
| | | | | | Sun Apr 12 18:54:29 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Changed LGPL address for FSF in all .h and .c files
* Initial revisionElliot Lee1997-11-241-0/+83