Commit Graph

94 Commits

Author SHA1 Message Date
Matthew Barnes 8a186c3588 Coding style cleanups. 2011-05-08 13:37:20 -04:00
Matthew Barnes 4cfb84c573 Whitespace and coding style cleanups. 2011-05-07 18:48:38 -04:00
Matthew Barnes c6fd77460f Coding style and whitespace cleanup. 2011-03-05 12:34:28 -05:00
Milan Crha 1301cf02ef Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-02-25 16:20:41 +01:00
Matthew Barnes fcb29478f6 Coding style and whitespace cleanup. 2011-02-18 20:44:24 -05:00
Matthew Barnes 7a1677520d Remove NULL checks for GObject methods.
As of GLib 2.28 all GObject virtual methods, including constructed(),
are safe to chain up to unconditionally.  Remove unnecessary checks.
2011-02-12 12:54:08 -05:00
Milan Crha a56bf39d6a Bug #641502 - Flickering while resizing the mail list 2011-02-10 14:49:57 +01:00
Kjartan Maraas 2c31a5bc23 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-02-08 11:57:50 -05:00
Milan Crha f5c6386947 Fix cairo-gobject.h include path 2011-02-03 19:01:25 +01:00
Matthew Barnes 0109aa3a92 More whitespace cleanup. 2011-01-30 11:33:28 -05:00
Matthew Barnes 21ab8044da Coding style and whitespace cleanup. 2011-01-29 20:22:57 -05:00
Matthew Barnes 691008dd13 Adapt GnomeCanvas to latest gtk+-3.0 API. 2011-01-26 08:49:11 -05:00
Matthew Barnes 753c60fc67 Drop backward-compatibility cruft. 2011-01-25 10:28:26 -05:00
Matthew Barnes d1b440a268 Remove some unused gnome-canvas options.
Simplifies the drawing code a bit.

Public API removed:

  GnomeCanvas.center_scroll_region  (is always TRUE)
  GnomeCanvas.pixels_per_unit       (is always 1.0)

  gnome_canvas_set_center_scroll_region()
  gnome_canvas_get_center_scroll_region()
  gnome_canvas_set_pixels_per_unit()
2011-01-15 12:11:31 -05:00
Matthew Barnes d47adb5922 Fudge GtkScrollable for gtk2.
Yes, the GtkScrollable interface is implemented by more than just
GtkLayout, but it turns out GtkLayout is the only thing Evolution
uses the GtkScrollable API for on the gtk3 branch.
2011-01-14 14:58:30 -05:00
Vibha Yadav 41117c2b8c Bug #633774 - Headers are gone in grouped view 2010-11-15 11:10:15 +01:00
Matthew Barnes a891b81cfb Coding style and whitespace cleanup. 2010-11-07 21:13:03 -05:00
Milan Crha c2b2e863cb Add forgotten cairo_destroy() calls 2010-11-02 11:17:51 +01:00
Matthew Barnes 52fbacb68d Revert my previous revert for GnomeCanvasShape.
This reverts commit 0faef9453c.

Turns out it broke ETable/ETree pretty badly.
2010-10-29 14:42:26 -04:00
Matthew Barnes d5270dae60 Fix gnome_canvas_rect_draw().
Need to subtract the pixmap offset from the rectangle's coordinates.
2010-10-29 13:51:39 -04:00
Matthew Barnes a6a004b8f5 Merge GnomeCanvasShape into GnomeCanvasRect.
GnomeCanvasRect is the only subclass of GnomeCanvasShape,
and passing Cairo paths around doesn't seem to work well.
2010-10-29 13:51:39 -04:00
Matthew Barnes a68d0f50da Fix typo in gnome_canvas_shape_update(). 2010-10-29 13:51:39 -04:00
Matthew Barnes 0faef9453c Revert "gnome-canvas: Fix bounding box calculation in GnomeCanvasShape"
This reverts commit ecd07f3f735debf9bad03543394f3db0f0714b8a.

Actually you do want world coordinates, but the typo fixed in the
next commit was probably causing strange and confusing behavior.
2010-10-29 13:51:39 -04:00
Matthew Barnes ffcadeeaa3 GnomeCanvasShape: Make color string parsing more robust 2010-10-29 13:51:39 -04:00
Matthew Barnes 71811d735e Fix matrix in gnome_canvas_shape_draw().
The path is in item coordinates, so we need an "i2c" matrix, not "c2i".
2010-10-29 13:51:39 -04:00
Matthew Barnes 50d5ba94a6 Fix typos in gnome_canvas_shape_bounds(). 2010-10-29 13:51:38 -04:00
Matthew Barnes d33983e34f Rename GnomeCanvasItem.destroy() to dispose().
To clarify the semantics: the method may be called multiple times
so pointers should be set to NULL after freeing or unreferencing.
2010-10-29 13:51:38 -04:00
Matthew Barnes 65b1049d70 Fix gnome_canvas_item_w2i_matrix().
Was returning an inverted matrix: i2w instead of w2i.
2010-10-29 13:51:38 -04:00
Matthew Barnes b5f2dc92ff Actually set the path in gnome_canvas_shape_set_path(). 2010-10-29 13:51:38 -04:00
Matthew Barnes df5ff95999 Adapt branch for building with GTK+ 2.22. 2010-10-29 13:51:38 -04:00
Benjamin Otte 200df519f1 gnome-canvas: Remove functions that allocate colors
Cairo doesn't need allocated colors.

Yay, gnome-canvas now compiles with GDK_DISABLE_DEPRECATED.
2010-10-29 13:50:04 -04:00
Benjamin Otte b6cc0f11b8 gnome-canvas: Use gdk_parse_color() in GnomeCanvasShape
We don't want to allocate colors anymore. It's not needed with cairo.
2010-10-29 13:50:04 -04:00
Benjamin Otte ecee88725f gnome-canvas: Port drawing to use cairo 2010-10-29 13:50:03 -04:00
Benjamin Otte 861c878514 gnome-canvas: Remove gnome_canvas_set_stipple_origin() 2010-10-29 13:50:03 -04:00
Benjamin Otte 7d8966eae3 gnome-canvas: Port GnomeCanvasText to use cairo 2010-10-29 13:50:03 -04:00
Benjamin Otte 3e97227202 gnome-canvas: Simplify updating code
Instead of keeping oour own invalid area, trust GDK to do the right
thing.
2010-10-29 13:50:02 -04:00
Benjamin Otte a97de21bd2 gnome-canvas: Fix bounding box calculation in GnomeCanvasShape
The code converted the bbox to world coordinates, not to canvas
coordinates.

xxx: shape
2010-10-29 13:50:01 -04:00
Benjamin Otte b85e0b42a2 gnome-canvas: Remove render_dirty variable
It's unused. Also remove the private struct, as it's now empty.
2010-10-29 13:50:01 -04:00
Benjamin Otte 95c852e0b3 gnome-canvas: Remove pangoft2 requirement
It's not really necessary to pull in libs for an unused variable, now is
it?
2010-10-29 13:50:01 -04:00
Benjamin Otte 71b63cbbd6 gnome-canvas: Remove gnome_canvas_w2c_affine()
It's not necessary anymore. Use gnome_canvas_w2c_matrix() instead.
2010-10-29 13:50:01 -04:00
Benjamin Otte 03ae3f4218 gnome-canvas: Convert point tranformation functions to use cairo 2010-10-29 13:50:01 -04:00
Benjamin Otte 52b33dea0d gnome-canvas: Remove gnome_canvas_update_now()
1) Don't ever force an update
2) There's GTK API to force an update if you need to. Use that.
2010-10-29 13:50:01 -04:00
Benjamin Otte 8811cd67d3 gnome-canvas: Convert canvas item transformation matrix to cairo
Also update the GnomeCanvasItem.update vfunc to take a cairo_matrix_t
and no longer pass the clip_path (what was it used for anyway?).
2010-10-29 13:50:01 -04:00
Benjamin Otte f7767b0f25 gnome-canvas: Simplify GnomeCanvasPixbuf
Get rid of all the layout properties. They are unused, and if they are
needed should be done in a separate object. Also do the drawing with
Cairo.
2010-10-29 13:50:01 -04:00
Benjamin Otte 2e4810aaf7 gnome-canvas: Update GnomeCanvasPixbuf for gobject niceties
G_DEFINE_TYPE and private data, here we come!
2010-10-29 13:50:01 -04:00
Benjamin Otte f284383f69 gnome-canvas: Fix refcounting for GnomeCanvasPixbuf 2010-10-29 13:50:01 -04:00
Benjamin Otte a13b6c8068 gnome-canvas: Remove unused flags from GnomeCanvasPixbuf 2010-10-29 13:50:01 -04:00
Benjamin Otte 32c321ec65 gnome-canvas: Update GailCanvasItem visibility code to cairo APIs 2010-10-29 13:50:00 -04:00
Benjamin Otte 6be035b9ff gnome-canvas: Split out matrix_transform_rect code 2010-10-29 13:50:00 -04:00
Benjamin Otte 6190064752 gnome-canvas: Remove now-unused functions 2010-10-29 13:50:00 -04:00