summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2018-12-05 22:29:40 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2018-12-05 22:29:40 +0000
commitd4d00ce9fb0c9f4714d04fba79c900b88537c39c (patch)
tree7f272d19e1ac7aa845828252356af4350b66ef1c /src/desktop.cpp
parentdesktop-widget: C++ify rotation_status (diff)
downloadinkscape-d4d00ce9fb0c9f4714d04fba79c900b88537c39c.tar.gz
inkscape-d4d00ce9fb0c9f4714d04fba79c900b88537c39c.zip
desktop-widget: make scrollbars private
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index b13f24e67..b907b81d8 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -941,34 +941,8 @@ guint SPDesktop::get_vruler_thickness()
return 0;
}
-guint SPDesktop::get_hscroll_thickness()
-{
- Gtk::Window *parent = getToplevel();
- if (parent) {
- SPDesktopWidget *dtw = static_cast<SPDesktopWidget *>(parent->get_data("desktopwidget"));
- GtkAllocation allocation;
- gtk_widget_get_allocation(GTK_WIDGET(dtw->hscrollbar), &allocation);
- return allocation.height;
- }
- return 0;
-}
-
-guint SPDesktop::get_vscroll_thickness()
-{
- Gtk::Window *parent = getToplevel();
- if (parent) {
- SPDesktopWidget *dtw = static_cast<SPDesktopWidget *>(parent->get_data("desktopwidget"));
- GtkAllocation allocation;
- gtk_widget_get_allocation(GTK_WIDGET(dtw->vscrollbar_box), &allocation);
- return allocation.width;
- }
- return 0;
-}
-
int get_hruler_thickness();
int get_vruler_thickness();
-int get_vscroll_thickness();
-int get_hscroll_thickness();
/**
* Zoom keeping the point 'c' fixed in the desktop window.