diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2014-01-15 15:26:12 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2014-01-15 15:26:12 +0000 |
| commit | 9d40e9669a1024b7caed1db4c5ff99e06c96a57f (patch) | |
| tree | 05eb314bfa8cf9c0044d8c21044de2bb4c9c7412 /src/ui/dialog/template-load-tab.cpp | |
| parent | drop useless checks for hard Cairo version dependency (diff) | |
| download | inkscape-9d40e9669a1024b7caed1db4c5ff99e06c96a57f.tar.gz inkscape-9d40e9669a1024b7caed1db4c5ff99e06c96a57f.zip | |
Fix for Bug #1236282 (add full keyboard navigation support for new templates dialog).
Fixed bugs:
- https://launchpad.net/bugs/1236282
(bzr r12934)
Diffstat (limited to 'src/ui/dialog/template-load-tab.cpp')
| -rw-r--r-- | src/ui/dialog/template-load-tab.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/dialog/template-load-tab.cpp b/src/ui/dialog/template-load-tab.cpp index 057eff337..1b9b734fc 100644 --- a/src/ui/dialog/template-load-tab.cpp +++ b/src/ui/dialog/template-load-tab.cpp @@ -10,6 +10,7 @@ #include "template-widget.h" #include "template-load-tab.h" +#include "new-from-template.h" #include <gtkmm/messagedialog.h> #include <gtkmm/scrolledwindow.h> @@ -31,10 +32,8 @@ #include "xml/document.h" #include "xml/node.h" - namespace Inkscape { namespace UI { - TemplateLoadTab::TemplateLoadTab() : _current_keyword("") @@ -84,7 +83,9 @@ void TemplateLoadTab::createTemplate() void TemplateLoadTab::_onRowActivated(const Gtk::TreeModel::Path &, Gtk::TreeViewColumn*) { - _info_widget->create(); + createTemplate(); + NewFromTemplate* parent = static_cast<NewFromTemplate*> (this->get_toplevel()); + parent->_onClose(); } void TemplateLoadTab::_displayTemplateInfo() |
