Commit Graph

70 Commits

Author SHA1 Message Date
c85109fc32 Coding style and whitespace cleanup. 2012-08-19 14:17:55 -04:00
07be2453e0 Remove all GDK threads usage.
According to [1], we don't need to worry about GDK's global lock since
we don't call gdk_threads_init() or gdk_threads_set_lock_functions().

The GDK threads API is being aggressively deprecated by GTK+ developers
so let's just abandon it entirely.  I've never really understood when
you're supposed to use it or not use it anyway, so it's good to be rid
of this confusion.

[1] https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00005.html
2012-08-05 22:12:26 -04:00
23f5773903 Coding style and whitespace cleanup. 2012-02-20 10:04:25 -05:00
fcbbdfbd18 Coding style and whitespace cleanup. 2011-09-04 07:34:32 -04:00
f014ab82c8 Coding style and whitespace cleanups. 2011-06-08 13:14:48 -04:00
756c8abcb8 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-05-27 15:23:07 +02:00
4cfb84c573 Whitespace and coding style cleanups. 2011-05-07 18:48:38 -04:00
21ab8044da Coding style and whitespace cleanup. 2011-01-29 20:22:57 -05:00
4caf1c8acb Adapt EMap to latest gtk+-3.0 API. 2011-01-26 08:49:11 -05:00
b7c2f49973 Adapt size_request vfuncs to latest gtk+-3.0 API. 2011-01-25 10:37:16 -05:00
753c60fc67 Drop backward-compatibility cruft. 2011-01-25 10:28:26 -05:00
a4d8c30310 Merge miscellaneous changes from gtk3 branch.
Mostly coding style and whitespace changes, to reduce diff noise.
2011-01-14 15:58:16 -05:00
a891b81cfb Coding style and whitespace cleanup. 2010-11-07 21:13:03 -05: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
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
a9fc19b195 Get rid of deprecated GtkObject in EMap widget
Remove GtkObject::destroy() handler. Move disconnecting
signal handlers to e_map_finalize().

https://bugzilla.gnome.org/show_bug.cgi?id=630766
2010-10-04 16:42:28 +02: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
4c05b9e925 Coding style and whitespace cleanup. 2010-08-29 11:22:28 -04:00
ecf3434da0 GObject boilerplate cleanup.
Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over
manual GType registration.

This is just a start... lots more to do.
2010-08-24 14:37:02 -04:00
96421ff37c Use accessor functions instead direct access (GSEAL work)
Still remaining:
GtkAccessible::widget
GtkAssistant::forward
GtkAssistant::back
GtkObject::flags
GtkTreeStore::stamp

The GtkAssistant fields are related to bug #596428.  We don't
need accessor functions so much as the enhancement described
there implemented.

https://bugzilla.gnome.org/show_bug.cgi?id=615613
2010-04-13 16:23:16 +02:00
72797decc1 Giant leap towards GSEAL compliance. 2010-04-08 11:05:26 -04:00
a674eab94d Update win32 directory relocation and some consistency cleanup 2010-03-10 12:18:12 +01:00
2836a54dd6 Work around recent GTK+ deprecations. 2010-03-05 07:36:23 -05:00
49ef32b76c Coding style and whitespace cleanup. 2010-02-07 13:26:37 -05:00
ec73f5522f Coding style and whitespace cleanup. 2010-01-30 18:09:19 -05:00
cae22334fa Remove dead assignments found by clang. 2010-01-15 21:50:05 -05:00
a6d296b998 Baby steps toward GSEAL compliance. 2010-01-13 14:17:42 -05:00
0585b94eb2 Disable gdk_event_get_graphics_expose() call in EMap.
The function is deprecated in GTK+ now.  Looks like it was just an
optimization anyway -- the map seems to work fine without it -- but I
left the logic intact in case I'm wrong.
2009-09-19 14:39:04 -04:00
0274669179 Fix excessive whitespace. 2009-07-12 23:33:07 -04:00
8771a6de35 More code cleanup. 2009-06-01 19:09:19 -04:00
6413227cef Whitespace cleanup. 2009-05-28 13:13:05 -04:00
fad4af8a3d Prefer GLib basic types over C types. 2009-05-28 12:13:23 -04:00
6f5464f34c Remove trailing whitespace, again. 2009-05-28 12:13:22 -04:00
e42f276527 Bug 577929 – Consolidate marshallers
Consolidate all marshalling specifications to e-util/e-marshal.list.
This reduces code duplication and makes it slightly easier to locate
unused marshallers.
2009-04-23 10:02:07 -04:00
14fa5c8a8c Change License from GPL to LGPL. 2nd batch.
More changes to come.

svn path=/trunk/; revision=36247
2008-09-02 16:25:53 +00:00