diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-16 00:52:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-16 01:11:31 +0800 |
commit | d1b440a268b6f43f86114df12b543f7e7c6d6588 (patch) | |
tree | 8717cb7ffa86737f3344917062bacdc746e570bd /libgnomecanvas/gnome-canvas.h | |
parent | a4d8c30310cfcd95a54153930336ff8196adde76 (diff) | |
download | gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.gz gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.bz2 gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.lz gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.xz gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.zst gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.zip |
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()
Diffstat (limited to 'libgnomecanvas/gnome-canvas.h')
-rw-r--r-- | libgnomecanvas/gnome-canvas.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h index 3236e20a5f..5c46464f85 100644 --- a/libgnomecanvas/gnome-canvas.h +++ b/libgnomecanvas/gnome-canvas.h @@ -373,9 +373,6 @@ struct _GnomeCanvas { gdouble scroll_x1, scroll_y1; gdouble scroll_x2, scroll_y2; - /* Scaling factor to be used for display */ - gdouble pixels_per_unit; - /* Idle handler ID */ guint idle_id; @@ -397,11 +394,6 @@ struct _GnomeCanvas { /* Event mask specified when grabbing an item */ guint grabbed_event_mask; - /* Whether the canvas should center the scroll region in the middle of - * the window if the scroll region is smaller than the window. - */ - guint center_scroll_region : 1; - /* Whether items need update at next idle loop iteration */ guint need_update : 1; @@ -453,15 +445,6 @@ void gnome_canvas_set_scroll_region (GnomeCanvas *canvas, void gnome_canvas_get_scroll_region (GnomeCanvas *canvas, gdouble *x1, gdouble *y1, gdouble *x2, gdouble *y2); -/* Whether the canvas centers the scroll region if it is smaller than the window */ -void gnome_canvas_set_center_scroll_region (GnomeCanvas *canvas, gboolean center_scroll_region); - -/* Returns whether the canvas is set to center the scroll region if it is smaller than the window */ -gboolean gnome_canvas_get_center_scroll_region (GnomeCanvas *canvas); - -/* Sets the number of pixels that correspond to one unit in world coordinates */ -void gnome_canvas_set_pixels_per_unit (GnomeCanvas *canvas, gdouble n); - /* Scrolls the canvas to the specified offsets, given in canvas pixel coordinates */ void gnome_canvas_scroll_to (GnomeCanvas *canvas, gint cx, gint cy); |