Commit Graph

91 Commits

Author SHA1 Message Date
c003c99a75 Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-06-29 18:41:39 +02:00
3b6c8972a5 Coding style and whitespace cleanup. 2011-06-29 18:41:36 +02:00
274697623e 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-06-29 18:41:34 +02:00
5089139eea Bug #641502 - Flickering while resizing the mail list 2011-06-29 18:41:32 +02:00
8efc1bc6f9 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-06-29 18:41:31 +02:00
59d358e340 Fix cairo-gobject.h include path 2011-06-29 18:41:31 +02:00
dbc22f9de5 More whitespace cleanup. 2011-06-29 18:41:29 +02:00
6af0c53b69 Coding style and whitespace cleanup. 2011-06-29 18:41:29 +02:00
a7788ff368 Adapt GnomeCanvas to latest gtk+-3.0 API. 2011-06-29 18:41:26 +02:00
a3ba231fcc Drop backward-compatibility cruft. 2011-06-29 18:41:25 +02:00
5cc2615a37 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-06-29 18:41:19 +02:00
80bc7035be 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-06-29 18:41:19 +02:00
9e833a704c Bug #633774 - Headers are gone in grouped view 2010-11-16 10:43:16 +01:00
7e9fc6d2b6 Coding style and whitespace cleanup. 2010-11-09 23:33:23 +01:00
3b3b6cb0ab Add forgotten cairo_destroy() calls 2010-11-09 23:33:21 +01:00
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
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
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
a68d0f50da Fix typo in gnome_canvas_shape_update(). 2010-10-29 13:51:39 -04:00
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
ffcadeeaa3 GnomeCanvasShape: Make color string parsing more robust 2010-10-29 13:51:39 -04:00
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
50d5ba94a6 Fix typos in gnome_canvas_shape_bounds(). 2010-10-29 13:51:38 -04:00
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
65b1049d70 Fix gnome_canvas_item_w2i_matrix().
Was returning an inverted matrix: i2w instead of w2i.
2010-10-29 13:51:38 -04:00
b5f2dc92ff Actually set the path in gnome_canvas_shape_set_path(). 2010-10-29 13:51:38 -04:00
df5ff95999 Adapt branch for building with GTK+ 2.22. 2010-10-29 13:51:38 -04:00
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
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
ecee88725f gnome-canvas: Port drawing to use cairo 2010-10-29 13:50:03 -04:00
861c878514 gnome-canvas: Remove gnome_canvas_set_stipple_origin() 2010-10-29 13:50:03 -04:00
7d8966eae3 gnome-canvas: Port GnomeCanvasText to use cairo 2010-10-29 13:50:03 -04:00
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
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
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
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
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
03ae3f4218 gnome-canvas: Convert point tranformation functions to use cairo 2010-10-29 13:50:01 -04:00
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
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
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
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
f284383f69 gnome-canvas: Fix refcounting for GnomeCanvasPixbuf 2010-10-29 13:50:01 -04:00
a13b6c8068 gnome-canvas: Remove unused flags from GnomeCanvasPixbuf 2010-10-29 13:50:01 -04:00
32c321ec65 gnome-canvas: Update GailCanvasItem visibility code to cairo APIs 2010-10-29 13:50:00 -04:00
6be035b9ff gnome-canvas: Split out matrix_transform_rect code 2010-10-29 13:50:00 -04:00
6190064752 gnome-canvas: Remove now-unused functions 2010-10-29 13:50:00 -04:00
cadb974ea9 gnome-canvas: Remove GnomeCanvasPathDef
It's not needed anymore as it has practically been replaced by cairo_path_t.
2010-10-29 13:50:00 -04:00
24e39b9fb5 gnome-canvas: Rewrite GnomeCanvasShape to use Cairo
Dashing properties were commented out in the process. They are not used
inside Evolution.
2010-10-29 13:50:00 -04:00
9c183ab12a gnome-canvas: Change line-width handling of GnomeCanvasShape
Remove "width-pixels" property and replace the "width-units" property
name with "line-width".

Also adapt the code to use "line-width". It didn't really matter which
property was used, because the views weren't scaled.
2010-10-29 13:50:00 -04:00