From 2e9562ba47296e48c86d766970a0e1061933156c Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 6 Jan 2009 07:11:11 +0000 Subject: Warning and whitespace cleanup. (bzr r7083) --- src/ui/widget/preferences-widget.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/ui/widget') diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp index e84eaa458..e21410df6 100644 --- a/src/ui/widget/preferences-widget.cpp +++ b/src/ui/widget/preferences-widget.cpp @@ -189,7 +189,7 @@ void PrefRadioButton::on_toggled() { this->changed_signal.emit(this->get_active()); Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - + if (this->is_visible() && this->get_active() ) //only take action if toggled by user (to active) { if ( _value_type == VAL_STRING ) @@ -489,11 +489,11 @@ PrefSlider::on_spinbutton_value_changed() void PrefSlider::init(Glib::ustring const &prefs_path, - double lower, double upper, double step_increment, double page_increment, double default_value, int digits) + double lower, double upper, double step_increment, double page_increment, double default_value, int digits) { - _prefs_path = prefs_path; - - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + _prefs_path = prefs_path; + + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); double value = prefs->getDoubleLimited(prefs_path, default_value, lower, upper); freeze = false; @@ -512,12 +512,11 @@ PrefSlider::init(Glib::ustring const &prefs_path, Gtk::Table *table = Gtk::manage(new Gtk::Table()); Gtk::Alignment *alignment1 = Gtk::manage(new Gtk::Alignment(0.5,1,0,0)); - Gtk::Alignment *alignment2 = Gtk::manage(new Gtk::Alignment(0.5,1,0,0)); alignment1->add(_sb); - + table->attach(_slider, 0, 1, 0, 1); table->attach(*alignment1, 1, 2, 0, 1, static_cast(0)); - + this->pack_start(*table, Gtk::PACK_EXPAND_WIDGET); } @@ -541,7 +540,7 @@ void PrefCombo::init(Glib::ustring const &prefs_path, /** initialize a combo box - second form uses strings as key values + second form uses strings as key values */ void PrefCombo::init(Glib::ustring const &prefs_path, Glib::ustring labels[], Glib::ustring values[], int num_items, Glib::ustring default_value) -- cgit v1.2.3