Commit Graph

381 Commits

Author SHA1 Message Date
f014ab82c8 Coding style and whitespace cleanups. 2011-06-08 13:14:48 -04:00
de752b010f Including <glib-object.h> directly is rarely needed. 2011-05-28 11:12:08 -04:00
756c8abcb8 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-05-27 15:23:07 +02:00
cb97c2dc8f Coding style and whitespace cleanup. 2011-05-21 17:56:06 -04:00
d88a9e7360 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-05-16 13:40:26 -04:00
8a186c3588 Coding style cleanups. 2011-05-08 13:37:20 -04:00
4cfb84c573 Whitespace and coding style cleanups. 2011-05-07 18:48:38 -04:00
1a4be6c521 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-02-24 14:19:20 -05:00
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
2c31a5bc23 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-02-08 11:57:50 -05:00
0109aa3a92 More whitespace cleanup. 2011-01-30 11:33:28 -05:00
21ab8044da Coding style and whitespace cleanup. 2011-01-29 20:22:57 -05:00
1e11afde4d Adapt EReflow to latest gtk+-3.0 API. 2011-01-26 08:49:12 -05:00
954b68a5c8 Adapt EText to latest gtk+-3.0 API. 2011-01-26 08:49:11 -05:00
dc300e6bc8 gdk_cursor_unref() -> g_object_unref() 2011-01-25 10:28:26 -05:00
753c60fc67 Drop backward-compatibility cruft. 2011-01-25 10:28:26 -05:00
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
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
e490db52f6 Bug #371705 - Calendar's day view does not reset its IM context 2010-11-23 15:26:55 +01:00
a891b81cfb Coding style and whitespace cleanup. 2010-11-07 21:13:03 -05:00
c2b2e863cb Add forgotten cairo_destroy() calls 2010-11-02 11:17:51 +01:00
06943232b3 Fix typo in EText.
Fill color properties should be write-only, not read-only.
2010-10-29 13:51:38 -04:00
7d2fc0cf9e e-text: Draw EReflow with cairo 2010-10-29 13:50:04 -04:00
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
8a0f0cfdc9 e-text: Draw with cairo 2010-10-29 13:50:02 -04:00
d5cf0c298c e-text: Use gdk_pango_layout_get_clip_region() for selection rendering 2010-10-29 13:50:02 -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
147cc5979e e-text: Only include libgnomecanvas.h 2010-10-29 13:49:59 -04:00
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
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
bfe391f216 e-text: Remove stippling code 2010-10-29 13:49:58 -04:00
df70b76a55 gnome-canvas: Remove aa code
The anti-aliased code was never used, so remove it.
2010-10-29 13:49:57 -04:00
5d812173d0 Drop usage of GtkAnchorType.
gtk+-3.0 removed it for being "unused".
2010-10-26 13:31:26 -04:00
f0714755e2 Memory leaks around g_value_set_string 2010-10-22 15:42:21 +02:00
7a07c80767 Bug #630504 - Precache collate keys before sorting in EReflowModel 2010-10-20 13:34:53 +02:00
1c6f2d154e Bug #631320 - GtkObject is gone in GTK3 2010-10-06 19:26:08 +02:00
9675f18d91 Coding style and whitespace cleanup. 2010-10-03 13:29:20 -04:00
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
ebcce86769 Coding style and whitespace cleanups. 2010-09-11 14:14:04 -04:00
101305e1c7 Various memory leaks 2010-09-07 18:39:46 +02:00
eb29179da6 Coding style and whitespace cleanup. 2010-07-11 22:25:06 -04:00
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
5d0878967e Coding style and whitespace cleanup. 2010-06-20 08:06:19 -04:00
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
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
3f34eeab52 Drop the "2" from libgnomecanvas and libart_lgpl. 2010-06-14 13:18:06 -04:00
e92f18edb6 Add some missing linker flags. 2010-06-14 13:10:13 -04:00
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
06b16e2055 Remove 3 leftover references to non-existing libraries 2010-04-23 13:24:37 +02:00
72797decc1 Giant leap towards GSEAL compliance. 2010-04-08 11:05:26 -04:00