summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/preferences-widget.h
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-12-28 01:51:10 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-12-28 01:51:10 +0000
commita05a3d77490e30b4410045e0e685f8da8628a302 (patch)
treee2f30c25b9d1f4b835240999a859c35ca93741e8 /src/ui/widget/preferences-widget.h
parentImplement GTK+ 3 drawing of color preview widget (diff)
downloadinkscape-a05a3d77490e30b4410045e0e685f8da8628a302.tar.gz
inkscape-a05a3d77490e30b4410045e0e685f8da8628a302.zip
Implement GTK+ 3 drawing for zoom correction ruler in preferences dialog
(bzr r11995)
Diffstat (limited to 'src/ui/widget/preferences-widget.h')
-rw-r--r--src/ui/widget/preferences-widget.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/widget/preferences-widget.h b/src/ui/widget/preferences-widget.h
index bfe0deaba..646a8b2fa 100644
--- a/src/ui/widget/preferences-widget.h
+++ b/src/ui/widget/preferences-widget.h
@@ -101,8 +101,6 @@ public:
ZoomCorrRuler(int width = 100, int height = 20);
void set_size(int x, int y);
void set_unit_conversion(double conv) { _unitconv = conv; }
- void set_cairo_context(Cairo::RefPtr<Cairo::Context> cr);
- void redraw();
int width() { return _min_width + _border*2; }
@@ -110,7 +108,12 @@ public:
static const double textpadding;
private:
+#if !WITH_GTKMM_3_0
bool on_expose_event(GdkEventExpose *event);
+#endif
+
+ bool on_draw(const Cairo::RefPtr<Cairo::Context>& cr);
+
void draw_marks(Cairo::RefPtr<Cairo::Context> cr, double dist, int major_interval);
double _unitconv;