diff options
Diffstat (limited to 'src/ui/dialog')
| -rw-r--r-- | src/ui/dialog/align-and-distribute.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/clonetiler.cpp | 4 | ||||
| -rw-r--r-- | src/ui/dialog/document-properties.cpp | 4 | ||||
| -rw-r--r-- | src/ui/dialog/export.cpp | 6 | ||||
| -rw-r--r-- | src/ui/dialog/filedialogimpl-gtkmm.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/find.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/object-properties.cpp | 18 | ||||
| -rw-r--r-- | src/ui/dialog/swatches.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/symbols.cpp | 2 |
10 files changed, 22 insertions, 22 deletions
diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp index ad69bb59c..8e6b5e0e5 100644 --- a/src/ui/dialog/align-and-distribute.cpp +++ b/src/ui/dialog/align-and-distribute.cpp @@ -936,7 +936,7 @@ AlignAndDistribute::AlignAndDistribute() _nodesTable(), _anchorLabel(_("Relative to: ")), _anchorLabelNode(_("Relative to: ")), - _selgrpLabel(_("_Treat selection as group: "), 1) + _selgrpLabel(_("_Treat selection as group: "), true) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); diff --git a/src/ui/dialog/clonetiler.cpp b/src/ui/dialog/clonetiler.cpp index c1998249d..3346dd595 100644 --- a/src/ui/dialog/clonetiler.cpp +++ b/src/ui/dialog/clonetiler.cpp @@ -919,7 +919,7 @@ CloneTiler::CloneTiler () : { auto b = Gtk::manage(new Gtk::CheckButton(_("Color"))); - bool old = prefs->getBool(prefs_path + "pick_to_color", 0); + bool old = prefs->getBool(prefs_path + "pick_to_color", false); b->set_active(old); b->set_tooltip_text(_("Each clone is painted by the picked color (the original must have unset fill or stroke)")); table_attach (table, b, 0.0, 1, 2); @@ -928,7 +928,7 @@ CloneTiler::CloneTiler () : { auto b = Gtk::manage(new Gtk::CheckButton(_("Opacity"))); - bool old = prefs->getBool(prefs_path + "pick_to_opacity", 0); + bool old = prefs->getBool(prefs_path + "pick_to_opacity", false); b->set_active(old); b->set_tooltip_text(_("Each clone's opacity is determined by the picked value in that point")); table_attach (table, b, 0.0, 2, 2); diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 1dda7f17d..0b47f9bac 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -1024,9 +1024,9 @@ void DocumentProperties::build_metadata() } } - Gtk::Button *button_save = Gtk::manage (new Gtk::Button(_("_Save as default"),1)); + Gtk::Button *button_save = Gtk::manage (new Gtk::Button(_("_Save as default"),true)); button_save->set_tooltip_text(_("Save this metadata as the default metadata")); - Gtk::Button *button_load = Gtk::manage (new Gtk::Button(_("Use _default"),1)); + Gtk::Button *button_load = Gtk::manage (new Gtk::Button(_("Use _default"),true)); button_load->set_tooltip_text(_("Use the previously saved default metadata here")); auto box_buttons = Gtk::manage (new Gtk::ButtonBox); diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp index 4d61091a2..392587bef 100644 --- a/src/ui/dialog/export.cpp +++ b/src/ui/dialog/export.cpp @@ -138,7 +138,7 @@ Export::Export (void) : unit_selector(), units_label(_("Units:")), filename_box(false, 5), - browse_label(_("_Export As..."), 1), + browse_label(_("_Export As..."), true), browse_image(), batch_box(false, 5), batch_export(_("B_atch export all selected objects"), _("Export each selected object into its own PNG file, using export hints if any (caution, overwrites without asking!)")), @@ -324,7 +324,7 @@ Export::Export (void) : button_box.pack_end(export_button, false, false, 0); /*Advanced*/ - Gtk::Label *label_advanced = Gtk::manage(new Gtk::Label(_("Advanced"),1)); + Gtk::Label *label_advanced = Gtk::manage(new Gtk::Label(_("Advanced"),true)); expander.set_label_widget(*label_advanced); const char* const modes_list[]={"Gray_1", "Gray_2","Gray_4","Gray_8","Gray_16","RGB_8","RGB_16","GrayAlpha_8","GrayAlpha_16","RGBA_8","RGBA_16"}; for(int i=0; i<11; ++i) @@ -363,7 +363,7 @@ Export::Export (void) : contents->pack_start(singleexport_box); contents->pack_start(batch_box); contents->pack_start(hide_box); - contents->pack_end(button_box, false, 0); + contents->pack_end(button_box, false, false); contents->pack_end(_prog, Gtk::PACK_EXPAND_WIDGET); contents->pack_end(expander, FALSE, FALSE,0); diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index 006a59ece..72cca76d3 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -1076,7 +1076,7 @@ void FileSaveDialogImplGtk::fileNameEntryChangedCallback() if (Glib::file_test(fileName, Glib::FILE_TEST_IS_DIR)) { set_current_folder(fileName); - } else if (/*Glib::file_test(fileName, Glib::FILE_TEST_IS_REGULAR)*/ 1) { + } else if (/*Glib::file_test(fileName, Glib::FILE_TEST_IS_REGULAR)*/ true) { // dialog with either (1) select a regular file or (2) cd to dir // simulate an 'OK' set_filename(fileName); diff --git a/src/ui/dialog/find.cpp b/src/ui/dialog/find.cpp index a010ac667..d9a43d21b 100644 --- a/src/ui/dialog/find.cpp +++ b/src/ui/dialog/find.cpp @@ -71,7 +71,7 @@ Find::Find() check_scope_selection(_("Sele_ction"), _("Limit search to the current selection")), check_searchin_text(_("_Text"), _("Search in text objects")), check_searchin_property(_("_Properties"), _("Search in object properties, styles, attributes and IDs")), - vbox_searchin(0, false), + vbox_searchin(false, false), frame_searchin(_("Search in")), frame_scope(_("Scope")), diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 06309885c..6092c26d3 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -493,7 +493,7 @@ void InkscapePreferences::initPageTools() this->AddGradientCheckbox(_page_text, "/tools/text", true); { PrefCheckButton* cb = Gtk::manage( new PrefCheckButton); - cb->init ( _("Show font samples in the drop-down list"), "/tools/text/show_sample_in_list", 1); + cb->init ( _("Show font samples in the drop-down list"), "/tools/text/show_sample_in_list", true); _page_text.add_line( false, "", *cb, "", _("Show font samples alongside font names in the drop-down list in Text bar")); _font_dialog.init ( _("Show font substitution warning dialog"), "/options/font/substitutedlg", false); diff --git a/src/ui/dialog/object-properties.cpp b/src/ui/dialog/object-properties.cpp index a43791d08..8f92050f5 100644 --- a/src/ui/dialog/object-properties.cpp +++ b/src/ui/dialog/object-properties.cpp @@ -50,12 +50,12 @@ ObjectProperties::ObjectProperties() : UI::Widget::Panel("/dialogs/object/", SP_VERB_DIALOG_ITEM) , _blocked (false) , _current_item(nullptr) - , _label_id(_("_ID:"), 1) - , _label_label(_("_Label:"), 1) - , _label_title(_("_Title:"), 1) - , _label_image_rendering(_("_Image Rendering:"), 1) - , _cb_hide(_("_Hide"), 1) - , _cb_lock(_("L_ock"), 1) + , _label_id(_("_ID:"), true) + , _label_label(_("_Label:"), true) + , _label_title(_("_Title:"), true) + , _label_image_rendering(_("_Image Rendering:"), true) + , _cb_hide(_("_Hide"), true) + , _cb_lock(_("L_ock"), true) , _attr_table(Gtk::manage(new SPAttributeTable())) , _desktop(nullptr) { @@ -168,7 +168,7 @@ void ObjectProperties::_init() _entry_title.signal_activate().connect(sigc::mem_fun(this, &ObjectProperties::_labelChanged)); /* Create the frame for the object description */ - Gtk::Label *label_desc = Gtk::manage(new Gtk::Label(_("_Description:"), 1)); + Gtk::Label *label_desc = Gtk::manage(new Gtk::Label(_("_Description:"), true)); UI::Widget::Frame *frame_desc = Gtk::manage(new UI::Widget::Frame("", FALSE)); frame_desc->set_label_widget(*label_desc); frame_desc->set_padding (0,0,0,0); @@ -237,7 +237,7 @@ void ObjectProperties::_init() /* Button for setting the object's id, label, title and description. */ - Gtk::Button *btn_set = Gtk::manage(new Gtk::Button(_("_Set"), 1)); + Gtk::Button *btn_set = Gtk::manage(new Gtk::Button(_("_Set"), true)); btn_set->set_hexpand(); btn_set->set_valign(Gtk::ALIGN_CENTER); grid_cb->attach(*btn_set, 2, 0, 1, 1); @@ -245,7 +245,7 @@ void ObjectProperties::_init() btn_set->signal_clicked().connect(sigc::mem_fun(this, &ObjectProperties::_labelChanged)); /* Create the frame for interactivity options */ - Gtk::Label *label_interactivity = Gtk::manage(new Gtk::Label(_("_Interactivity"), 1)); + Gtk::Label *label_interactivity = Gtk::manage(new Gtk::Label(_("_Interactivity"), true)); _exp_interactivity.set_label_widget(*label_interactivity); contents->pack_start(_exp_interactivity, FALSE, FALSE, 0); diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp index 7d8729b0e..dbb170025 100644 --- a/src/ui/dialog/swatches.cpp +++ b/src/ui/dialog/swatches.cpp @@ -693,7 +693,7 @@ SwatchesPanel::~SwatchesPanel() void SwatchesPanel::_build_menu() { guint panel_size = 0, panel_mode = 0, panel_ratio = 100, panel_border = 0; - bool panel_wrap = 0; + bool panel_wrap = false; if (!_prefs_path.empty()) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); panel_wrap = prefs->getBool(_prefs_path + "/panel_wrap"); diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp index af044eff0..a4d067acd 100644 --- a/src/ui/dialog/symbols.cpp +++ b/src/ui/dialog/symbols.cpp @@ -106,7 +106,7 @@ SymbolColumns* SymbolsDialog::getColumns() SymbolsDialog::SymbolsDialog( gchar const* prefsPath ) : UI::Widget::Panel(prefsPath, SP_VERB_DIALOG_SYMBOLS), store(Gtk::ListStore::create(*getColumns())), - all_docs_processed(0), + all_docs_processed(false), icon_view(nullptr), current_desktop(nullptr), desk_track(), |
