diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2018-12-06 10:49:22 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2018-12-06 10:49:22 +0000 |
| commit | 1397249083a150de8f095d2d919b7c7fad649f6e (patch) | |
| tree | 9873679bafbe2aa1d0a346806e361eb48ec02355 /src/desktop.cpp | |
| parent | desktop-widget: make canvas_tbl private (diff) | |
| download | inkscape-1397249083a150de8f095d2d919b7c7fad649f6e.tar.gz inkscape-1397249083a150de8f095d2d919b7c7fad649f6e.zip | |
desktop-widget: make rulers private
Diffstat (limited to '')
| -rw-r--r-- | src/desktop.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index b907b81d8..fccee47bc 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -917,33 +917,6 @@ Geom::Rect SPDesktop::get_display_area() const return viewbox * Geom::Scale(1. / scale, _doc2dt[3] / scale); } -guint SPDesktop::get_hruler_thickness() -{ - Gtk::Window *parent = getToplevel(); - if (parent) { - SPDesktopWidget *dtw = static_cast<SPDesktopWidget *>(parent->get_data("desktopwidget")); - GtkAllocation allocation; - gtk_widget_get_allocation(dtw->hruler, &allocation); - return allocation.height; - } - return 0; -} - -guint SPDesktop::get_vruler_thickness() -{ - Gtk::Window *parent = getToplevel(); - if (parent) { - SPDesktopWidget *dtw = static_cast<SPDesktopWidget *>(parent->get_data("desktopwidget")); - GtkAllocation allocation; - gtk_widget_get_allocation(dtw->vruler, &allocation); - return allocation.width; - } - return 0; -} - -int get_hruler_thickness(); -int get_vruler_thickness(); - /** * Zoom keeping the point 'c' fixed in the desktop window. */ |
