summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/template-widget.cpp
diff options
context:
space:
mode:
authorSlagvi Public <JandotDarowskiattgmaildottcom>2013-07-24 08:22:37 +0000
committerSlagvi Public <JandotDarowskiattgmaildottcom>2013-07-24 08:22:37 +0000
commitbadc78fc17340975af12905bc7a0e0c4d7ab62b4 (patch)
tree092ac278df917b0f3f091dad0fb6e3c80541c200 /src/ui/dialog/template-widget.cpp
parentOld templates support removed (diff)
downloadinkscape-badc78fc17340975af12905bc7a0e0c4d7ab62b4.tar.gz
inkscape-badc78fc17340975af12905bc7a0e0c4d7ab62b4.zip
Templates gui fixes
(bzr r12379.2.14)
Diffstat (limited to 'src/ui/dialog/template-widget.cpp')
-rw-r--r--src/ui/dialog/template-widget.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/ui/dialog/template-widget.cpp b/src/ui/dialog/template-widget.cpp
index bb2c4a683..56346403e 100644
--- a/src/ui/dialog/template-widget.cpp
+++ b/src/ui/dialog/template-widget.cpp
@@ -27,26 +27,25 @@ namespace UI {
TemplateWidget::TemplateWidget()
: _more_info_button(_("More info"))
- , _short_description_label(_("Short description"))
- , _template_author_label(_("by template_author"))
- , _template_name_label(_("Template_name"))
- , _preview_image("preview.png")
+ , _short_description_label(_(" "))
+ , _template_author_label(_(" "))
+ , _template_name_label(_("no template selected"))
+ , _preview_image(" ")
{
- Gtk::Label *title = manage(new Gtk::Label(_("Selected template")));
- pack_start(*title, Gtk::PACK_SHRINK, 10);
- pack_start(_template_name_label, Gtk::PACK_SHRINK, 4);
+ pack_start(_template_name_label, Gtk::PACK_SHRINK, 10);
pack_start(_template_author_label, Gtk::PACK_SHRINK, 0);
pack_start(_preview_image, Gtk::PACK_SHRINK, 15);
- pack_start(_short_description_label, Gtk::PACK_SHRINK, 4);
_short_description_label.set_line_wrap(true);
_short_description_label.set_size_request(200);
Gtk::Alignment *align;
align = manage(new Gtk::Alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER, 0.0, 0.0));
- pack_start(*align, Gtk::PACK_SHRINK, 5);
+ pack_end(*align, Gtk::PACK_SHRINK);
align->add(_more_info_button);
+ pack_end(_short_description_label, Gtk::PACK_SHRINK, 5);
+
_more_info_button.signal_pressed().connect(
sigc::mem_fun(*this, &TemplateWidget::_displayTemplateDetails));
}