Commit Graph

381 Commits

Author SHA1 Message Date
Matthew Barnes e7954c3f25 Coding style and whitespace cleanups. 2011-06-29 18:42:26 +02:00
Matthew Barnes f043e3c748 Including <glib-object.h> directly is rarely needed. 2011-06-29 18:42:21 +02:00
Milan Crha c24038c4f6 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-06-29 18:42:20 +02:00
Matthew Barnes 5146ff4c53 Coding style and whitespace cleanup. 2011-06-29 18:42:17 +02:00
Matthew Barnes 76ca149448 Bug 649990 - Remove get_font_options() from e-util.c.
Not only is get_font_options() no longer needed, it's actually doing the
wrong thing by reading settings through GConfClient instead of GSettings.

But it turns out, thanks to the tighter Cairo integration in GTK3, the
widgets that call get_font_options() can be made to work correctly by
simply removing this hack.  Love it when that happens.
2011-06-29 18:42:16 +02:00
Matthew Barnes 54da4fc09c Coding style cleanups. 2011-06-29 18:42:11 +02:00
Matthew Barnes 578214584c Whitespace and coding style cleanups. 2011-06-29 18:42:10 +02:00
Matthew Barnes f55aaa5e00 Use G_SIGNAL_TYPE_STATIC_SCOPE for all GdkEvent signal params.
I thought this might be the cause of bug #643089.
Turns out it wasn't, but it's a good thing to do anyway.
2011-06-29 18:41:38 +02:00
Matthew Barnes 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
Kjartan Maraas 8efc1bc6f9 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-06-29 18:41:31 +02:00
Matthew Barnes dbc22f9de5 More whitespace cleanup. 2011-06-29 18:41:29 +02:00
Matthew Barnes 6af0c53b69 Coding style and whitespace cleanup. 2011-06-29 18:41:29 +02:00
Matthew Barnes 8f886fd921 Adapt EReflow to latest gtk+-3.0 API. 2011-06-29 18:41:26 +02:00
Matthew Barnes ea9ead6409 Adapt EText to latest gtk+-3.0 API. 2011-06-29 18:41:26 +02:00
Matthew Barnes 9914970baa gdk_cursor_unref() -> g_object_unref() 2011-06-29 18:41:25 +02:00
Matthew Barnes a3ba231fcc Drop backward-compatibility cruft. 2011-06-29 18:41:25 +02:00
Matthew Barnes 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
Matthew Barnes 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
Milan Crha c15a75e9ab Bug #371705 - Calendar's day view does not reset its IM context 2011-06-29 18:41:04 +02:00
Matthew Barnes 7e9fc6d2b6 Coding style and whitespace cleanup. 2010-11-09 23:33:23 +01:00
Milan Crha 3b3b6cb0ab Add forgotten cairo_destroy() calls 2010-11-09 23:33:21 +01:00
Matthew Barnes 06943232b3 Fix typo in EText.
Fill color properties should be write-only, not read-only.
2010-10-29 13:51:38 -04:00
Benjamin Otte 7d2fc0cf9e e-text: Draw EReflow with cairo 2010-10-29 13:50:04 -04:00
Benjamin Otte eaf4b5a865 e-text: Fix color handling
- "color" and "color-gdk" properties aren't readable (Their values would
  be wrong if an alpha channel was set).
- Use the rgba color when rendering
- Don't allocate the color in the colormap anymore.
2010-10-29 13:50:04 -04:00
Benjamin Otte 8a0f0cfdc9 e-text: Draw with cairo 2010-10-29 13:50:02 -04:00
Benjamin Otte d5cf0c298c e-text: Use gdk_pango_layout_get_clip_region() for selection rendering 2010-10-29 13:50:02 -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 147cc5979e e-text: Only include libgnomecanvas.h 2010-10-29 13:49:59 -04:00
Benjamin Otte b3a95d0299 gnome-canvas: Change GnomeCanvasItem->point vfunc
Previously the function returned the distance to the nearest item. Now
it only returns an item that is hit. This slightly changes semantics
(button events are no longer dispatched to the nearest item, but only to
the item actually clicked on), but makes the code way simpler and
actually does what one would expect.
2010-10-29 13:49:59 -04:00
Benjamin Otte 6798b256cd gnome-canvas: Remove close_enough member
It's never set, so just replace it with its default value 0 everywhere.
2010-10-29 13:49:59 -04:00
Benjamin Otte bfe391f216 e-text: Remove stippling code 2010-10-29 13:49:58 -04:00
Benjamin Otte df70b76a55 gnome-canvas: Remove aa code
The anti-aliased code was never used, so remove it.
2010-10-29 13:49:57 -04:00
Matthew Barnes 5d812173d0 Drop usage of GtkAnchorType.
gtk+-3.0 removed it for being "unused".
2010-10-26 13:31:26 -04:00
Milan Crha f0714755e2 Memory leaks around g_value_set_string 2010-10-22 15:42:21 +02:00
Milan Crha 7a07c80767 Bug #630504 - Precache collate keys before sorting in EReflowModel 2010-10-20 13:34:53 +02:00
Milan Crha 1c6f2d154e Bug #631320 - GtkObject is gone in GTK3 2010-10-06 19:26:08 +02:00
Matthew Barnes 9675f18d91 Coding style and whitespace cleanup. 2010-10-03 13:29:20 -04:00
Matthew Barnes afe6f502c3 Use new GDK keysym names if available.
In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*.

I've added backward-compatibility macors to gtk-compat.h, which can be
dumped as soon as we require GTK+ >= 2.22.0.
2010-09-17 18:39:59 -04:00
Matthew Barnes ebcce86769 Coding style and whitespace cleanups. 2010-09-11 14:14:04 -04:00
Milan Crha 101305e1c7 Various memory leaks 2010-09-07 18:39:46 +02:00
Matthew Barnes eb29179da6 Coding style and whitespace cleanup. 2010-07-11 22:25:06 -04:00
Matthew Barnes fc3123dc43 Work around sudden disappearance of GdkRegion in GTK+ 2.90.5.
API was deprecated and removed in less than two hours!  Sheesh!
2010-06-29 20:38:29 -04:00
Matthew Barnes 5d0878967e Coding style and whitespace cleanup. 2010-06-20 08:06:19 -04:00
Matthew Barnes c2c89fcb8c Fix all remaining GTK3 issues.
Work around the issue of GnomeCanvasItem amending its own flags to
GtkObject::flags (which is sealed) by giving it its own flags field.
This breaks libgnomecanvas ABI and API, but I see no other way.

This commit didn't work the first time because gnome-pilot libraries
were still pulling in the system-wide libgnomecanvas, and that was
interfereing with our bundled version which has a different ABI.
But gnome-pilot integration was dropped in the previous commit, so
everything is now using the bundled libgnomecanvas.
2010-06-15 14:46:02 -04:00
Matthew Barnes a55021bcef Revert "Fix all remaining GTK3 issues."
This reverts commit fd8b55edaa.

Something in this commit seriously hosed ETable, making Evolution pretty
much unusable.  Reverting this until I can track down the problem.
2010-06-14 21:38:53 -04:00
Matthew Barnes 3f34eeab52 Drop the "2" from libgnomecanvas and libart_lgpl. 2010-06-14 13:18:06 -04:00
Matthew Barnes e92f18edb6 Add some missing linker flags. 2010-06-14 13:10:13 -04:00
Matthew Barnes fd8b55edaa Fix all remaining GTK3 issues.
Work around the issue of GnomeCanvasItem amending its own flags to
GtkObject::flags (which is sealed) by giving it its own flags field.
This breaks libgnomecanvas ABI and API, but I see no other way.
2010-06-14 12:55:49 -04:00
Fridrich Štrba 06b16e2055 Remove 3 leftover references to non-existing libraries 2010-04-23 13:24:37 +02:00
Matthew Barnes 72797decc1 Giant leap towards GSEAL compliance. 2010-04-08 11:05:26 -04:00