Commit Graph

3029 Commits

Author SHA1 Message Date
952ae5caec Fix typo in eti_update(). 2010-10-29 13:51:38 -04:00
d9d9d7f0ef Restore update method in ECanvasBackground
Restore the update() method in ECanvasBackground.  Without a redraw
request the draw() method is never called.  For some reason this isn't
noticeable on gtk+-3.0 -- ETable and ETree backgrounds are still white
-- but on gtk+-2.0 the backgrounds are grey.
2010-10-29 13:51:38 -04:00
06943232b3 Fix typo in EText.
Fill color properties should be write-only, not read-only.
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
d262e26a02 e-table: Remove unused dnd pixmaps 2010-10-29 13:50:05 -04:00
8563661b4e e-table: Don't push/pop colormaps
It's not necessary anymore.
2010-10-29 13:50:04 -04:00
d98a5c50d4 e-table: Draw button with cairo 2010-10-29 13:50:04 -04:00
73ccbf4029 e-table: Draw ECellTree with cairo 2010-10-29 13:50:04 -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
168b536e82 e-map: Take colormap and visual from the widget
No need to use magic visuals and colormaps anymore, we're all cairo
these days.
2010-10-29 13:50:04 -04:00
90c26d6fe6 e-table: Remove retro look
It's not used by themes so I don't see the need to port it.
2010-10-29 13:50:04 -04:00
68c2986245 e-table: Remove unused GdkGC 2010-10-29 13:50:04 -04:00
1e74b08c03 e-table: Draw ECellText with cairo 2010-10-29 13:50:04 -04:00
39a6c1b9e7 e-table: Use gdk_pango_layout_get_clip_region() in ECellText 2010-10-29 13:50:04 -04:00
1f1d70ba44 e-table: Remove unused GdkGC from ECellToggle 2010-10-29 13:50:03 -04:00
eab0fac0cc e-table: Use Pango ellipsizing instead of manual arrow drawing 2010-10-29 13:50:03 -04:00
d6a0c006c1 e-map: Stuff tween duration into a macro so it's easier to change 2010-10-29 13:50:03 -04:00
5d73cd320f e-map: Add simplification API to zoom from a certain state 2010-10-29 13:50:03 -04:00
963d59c44a e-map: Zoom out smoothly, too 2010-10-29 13:50:03 -04:00
6c15378fc0 e-map: Redo zooming
Instead of hacky magic, we now use cairo and a naïve implementation of
tweening.
2010-10-29 13:50:03 -04:00
edb4b36b8d e-map: Make center_at() function take longitude/latitude
Way easier than to try to get the coordinates right.
Includes refactoring to introduce e_map_world_to_render_surface() that
computes coordinates on the background surface to make this stuff
easier.
2010-10-29 13:50:03 -04:00
eda95a9c33 e-map: Introduce e_map_get_current_location()
... and use it when zooming out
2010-10-29 13:50:03 -04:00
b5ee0e3e82 e-map: Use gtk_alignment_configure()
Nothing but a massive code cleanup
2010-10-29 13:50:03 -04:00
abe994285a e-map: Repaint points unconditionally
The in_view() check is broken because it doesn't repaint points that are
1px outside the window. The point take 2 extra pixels in every direction
after all. And gtk_widget_queue_draw_area() will automatically discard
out-of-range rects anyway.
2010-10-29 13:50:03 -04:00
f71506a5e0 e-map: Make cache a server-side surface
Doing performance optimizations on the client is not a good idea...
2010-10-29 13:50:03 -04:00
97739da7ca e-map: Query adjustment for size, not pixbuf 2010-10-29 13:50:02 -04:00
c52b0f748f e-map: pass width and height to set_scroll_area() directly 2010-10-29 13:50:02 -04:00
791b5f68a1 e-map: Draw with cairo 2010-10-29 13:50:02 -04:00
a21ae31d94 e-map: Update the xofs/yofs properties together with the adjustments 2010-10-29 13:50:02 -04:00
26c62ff150 e-map: Don't block signal handlers
The signal handler will no-op the operations anyway, because nothing
changed.
2010-10-29 13:50:02 -04:00
43f1c47f88 e-map: Move all rendering into the expose event
For the zoom, we now use the long-deprecated gtk_widget_draw() to force
repaints.
2010-10-29 13:50:02 -04:00
a171cf15e3 e-map: Always repaint the whole window on scrolls
We cannot move parts of the window with GTK3 APIs, so stop doing it.
2010-10-29 13:50:02 -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
00b6c62989 widgets: Don't use GdkGC in ECalendarItem 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
7fe898ab0f e-table: Convert coordinates using Cairo 2010-10-29 13:50:01 -04:00
11026671da e-table: Remove unused member variables from ETableItem
x1 and y1 were never set, only used. Replace all users with 0 and remove
the members.
2010-10-29 13:50:01 -04:00
a7d37040bf e-table: Draw grids with Cairo
Gets rid of the need for GdkGC completely.
2010-10-29 13:50:01 -04:00
3fb0c763eb e-canvas: Simplify ECanvasBackground
It's used without specifying a clip rectangle every time, so remove that
property. Also do all drawing with Cairo.
2010-10-29 13:50:00 -04:00
147cc5979e e-text: Only include libgnomecanvas.h 2010-10-29 13:49:59 -04:00
e5cf725c52 e-table: Fix includes to only ever 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
6b75dd581c widgets: Remove stipple from ECanvasBackground 2010-10-29 13:49:58 -04:00
5245a810b2 e-table: Draw focus with Cairo 2010-10-29 13:49:58 -04:00
4a95827168 e-table: Remove unused stipple variable 2010-10-29 13:49:58 -04:00
bfe391f216 e-text: Remove stippling code 2010-10-29 13:49:58 -04:00
ed3ab11b8e e-table: Use semi-transparent red instead of stippled red
...when marking a header for deletion. Not that this does currently not
work (it uses opaque red instead), but this change is required so
stippling can be removed. And that is necessary to switch to Cairo
drawing.
2010-10-29 13:49:58 -04:00