summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/template-load-tab.cpp
diff options
context:
space:
mode:
authorSlagvi Public <JandotDarowskiattgmaildottcom>2013-07-19 18:57:07 +0000
committerSlagvi Public <JandotDarowskiattgmaildottcom>2013-07-19 18:57:07 +0000
commitbd2265c6e8a1496f40692752f9d710f36a24fada (patch)
tree4aea2df19cec24475b70dd6e93bf0b92959f6683 /src/ui/dialog/template-load-tab.cpp
parentNew From Template ui rearrangement (diff)
downloadinkscape-bd2265c6e8a1496f40692752f9d710f36a24fada.tar.gz
inkscape-bd2265c6e8a1496f40692752f9d710f36a24fada.zip
Minor code fixes
(bzr r12379.2.12)
Diffstat (limited to 'src/ui/dialog/template-load-tab.cpp')
-rw-r--r--src/ui/dialog/template-load-tab.cpp26
1 files changed, 6 insertions, 20 deletions
diff --git a/src/ui/dialog/template-load-tab.cpp b/src/ui/dialog/template-load-tab.cpp
index 70dadfc52..ded4fc6fd 100644
--- a/src/ui/dialog/template-load-tab.cpp
+++ b/src/ui/dialog/template-load-tab.cpp
@@ -9,9 +9,11 @@
*/
#include "template-load-tab.h"
+#include "template-widget.h"
#include <gtkmm/messagedialog.h>
#include <gtkmm/scrolledwindow.h>
+#include <glibmm/i18n.h>
#include <iostream>
#include "interface.h"
@@ -23,16 +25,6 @@
#include "xml/document.h"
#include "xml/node.h"
-#include "template-widget.h"
-
-//
-#include <gtk/gtk.h>
-
-#include <glibmm/convert.h>
-#include <glibmm/i18n.h>
-#include <glibmm/miscutils.h>
-//
-
namespace Inkscape {
namespace UI {
@@ -47,17 +39,14 @@ TemplateLoadTab::TemplateLoadTab()
_info_widget = manage(new TemplateWidget());
Gtk::Label *title;
- title = manage(new Gtk::Label("Search:"));
+ title = manage(new Gtk::Label(_("Search:")));
_tlist_box.pack_start(*title, Gtk::PACK_SHRINK, 10);
_tlist_box.pack_start(_keywords_combo, Gtk::PACK_SHRINK, 0);
- title = manage(new Gtk::Label("Templates"));
+ title = manage(new Gtk::Label(_("Templates")));
_tlist_box.pack_start(*title, Gtk::PACK_SHRINK, 10);
- title = manage(new Gtk::Label("Selected template"));
- _info_widget->pack_start(*title, Gtk::PACK_SHRINK, 10);
-
add(_main_box);
_main_box.pack_start(_tlist_box, Gtk::PACK_SHRINK, 20);
_main_box.pack_start(*_info_widget, Gtk::PACK_EXPAND_WIDGET, 10);
@@ -72,7 +61,6 @@ TemplateLoadTab::TemplateLoadTab()
sigc::mem_fun(*this, &TemplateLoadTab::_keywordSelected));
this->show_all();
-
_loading_path = "";
_loadTemplates();
_initLists();
@@ -139,7 +127,7 @@ void TemplateLoadTab::_keywordSelected()
else
_current_search_type = LIST_KEYWORD;
- if (_current_keyword == "" || _current_keyword == "All")
+ if (_current_keyword == "" || _current_keyword == _("All"))
_current_search_type = ALL;
_refreshTemplatesList();
@@ -206,9 +194,7 @@ TemplateLoadTab::TemplateData TemplateLoadTab::_processTemplateFile(const Glib::
TemplateData result;
result.path = path;
result.display_name = Glib::path_get_basename(path);
- result.is_procedural = false;/*
- result.short_description = "LaLaLaLa";
- result.author = "JAASDASD";*/
+ result.is_procedural = false;
Inkscape::XML::Document *rdoc;
rdoc = sp_repr_read_file(path.data(), SP_SVG_NS_URI);