From 1397249083a150de8f095d2d919b7c7fad649f6e Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Thu, 6 Dec 2018 10:49:22 +0000 Subject: desktop-widget: make rulers private --- src/desktop.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/desktop.cpp') 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(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(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. */ -- cgit v1.2.3