From b6fd495a38682cab5b8e1e099401d52e60d0cc8a Mon Sep 17 00:00:00 2001 From: Marco Scholten Date: Sun, 30 Apr 2006 22:44:46 +0000 Subject: Moved compass like display of angles from windows to steps in preferences (bzr r642) --- src/ui/dialog/inkscape-preferences.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 649dda100..bf2a81b32 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -14,6 +14,7 @@ # include #endif +#include #include #include #include @@ -60,7 +61,6 @@ InkscapePreferences::InkscapePreferences() hbox_list_page->set_spacing(12); this->get_vbox()->add(*hbox_list_page); - //Pagelist Gtk::Frame* list_frame = Gtk::manage(new Gtk::Frame()); Gtk::ScrolledWindow* scrolled_window = Gtk::manage(new Gtk::ScrolledWindow()); @@ -181,7 +181,7 @@ void InkscapePreferences::initPageSteps() _page_steps.add_line( false, _("Inset/Outset by:"), _steps_inset, _("px"), _("Inset and Outset commands displace the path by this distance (in px units)"), false); _steps_compass.init ( _("Compass-like display of angles"), "options.compassangledisplay", "value", true); - _page_windows.add_line( false, "", _steps_compass, "", + _page_steps.add_line( false, "", _steps_compass, "", _("When on, angles are displayed with 0 at north, 0 to 360 range, positive clockwise; otherwise with 0 at east, -180 to 180 range, positive counterclockwise")); int const num_items = 12; Glib::ustring labels[num_items] = {"90", "60", "45", "30", "15", "10", "7.5", "6", "3", "2", "1", _("None")}; @@ -577,6 +577,11 @@ void InkscapePreferences::on_pagelist_selection_changed() _page_title.set_markup("" + row[_page_list_columns._col_name] + ""); _page_frame.add(*_current_page); _current_page->show(); + while (Gtk::Main::events_pending()) + { + Gtk::Main::iteration(); + } + this->show_all_children(); } } -- cgit v1.2.3