diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/paint-servers.cpp | 15 | ||||
| -rw-r--r-- | src/ui/dialog/paint-servers.h | 6 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/ui/dialog/paint-servers.cpp b/src/ui/dialog/paint-servers.cpp index 93661482f..baabe271e 100644 --- a/src/ui/dialog/paint-servers.cpp +++ b/src/ui/dialog/paint-servers.cpp @@ -70,10 +70,13 @@ PaintServersColumns *PaintServersDialog::getColumns() { return new PaintServersC // Constructor PaintServersDialog::PaintServersDialog(gchar const *prefsPath) : Inkscape::UI::Widget::Panel(prefsPath, SP_VERB_DIALOG_PAINT) - , current_store(ALLDOCS) , desktop(SP_ACTIVE_DESKTOP) , target_selected(true) + , ALLDOCS(_("All paint servers")) + , CURRENTDOC(_("Current document")) { + current_store = ALLDOCS; + store[ALLDOCS] = Gtk::ListStore::create(*getColumns()); store[CURRENTDOC] = Gtk::ListStore::create(*getColumns()); @@ -86,7 +89,7 @@ PaintServersDialog::PaintServersDialog(gchar const *prefsPath) _getContents()->pack_start(*grid, Gtk::PACK_EXPAND_WIDGET); // Grid row 0 - Gtk::Label *file_label = Gtk::manage(new Gtk::Label(_("Server: "))); + Gtk::Label *file_label = Gtk::manage(new Gtk::Label(Glib::ustring(_("Server")) + ": ")); grid->attach(*file_label, 0, 0, 1, 1); dropdown = Gtk::manage(new Gtk::ComboBoxText()); @@ -98,13 +101,13 @@ PaintServersDialog::PaintServersDialog(gchar const *prefsPath) grid->attach(*dropdown, 1, 0, 1, 1); // Grid row 1 - Gtk::Label *fill_label = Gtk::manage(new Gtk::Label(_("Change: "))); + Gtk::Label *fill_label = Gtk::manage(new Gtk::Label(Glib::ustring(_("Change")) + ": ")); grid->attach(*fill_label, 0, 1, 1, 1); target_dropdown = Gtk::manage(new Gtk::ComboBoxText()); - target_dropdown->append(FILL); - target_dropdown->append(STROKE); - target_dropdown->set_active_text(FILL); + target_dropdown->append(_("Fill")); + target_dropdown->append(_("Stroke")); + target_dropdown->set_active_text(_("Fill")); target_dropdown->set_hexpand(); grid->attach(*target_dropdown, 1, 1, 1, 1); diff --git a/src/ui/dialog/paint-servers.h b/src/ui/dialog/paint-servers.h index cfb42f387..d3b8f588f 100644 --- a/src/ui/dialog/paint-servers.h +++ b/src/ui/dialog/paint-servers.h @@ -55,10 +55,8 @@ public: void on_item_activated(const Gtk::TreeModel::Path &path); std::vector<SPObject *> extract_elements(SPObject *item); - const Glib::ustring ALLDOCS = _("All paint servers"); - const Glib::ustring CURRENTDOC = _("Current document"); - const Glib::ustring FILL = _("Fill"); - const Glib::ustring STROKE = _("Stroke"); + const Glib::ustring ALLDOCS; + const Glib::ustring CURRENTDOC; std::map<Glib::ustring, Glib::RefPtr<Gtk::ListStore>> store; Glib::ustring current_store; std::map<Glib::ustring, SPDocument *> document_map; |
