summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/template-load-tab.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2013-12-27 16:23:21 +0000
committerJazzyNico <nicoduf@yahoo.fr>2013-12-27 16:23:21 +0000
commitf8d98a0dc280ab442c320be8bab643fcb5aebf04 (patch)
tree596cf0c82d105b591853159cbf2463997e6e21f2 /src/ui/dialog/template-load-tab.cpp
parentFix for bug #1204732 (Inkscape crashed with SIGABRT in __gnu_cxx::__verbose_t... (diff)
downloadinkscape-f8d98a0dc280ab442c320be8bab643fcb5aebf04.tar.gz
inkscape-f8d98a0dc280ab442c320be8bab643fcb5aebf04.zip
Fix for bug #1236282 (add full keyboard navigation support for new templates dialog).
Fixed bugs: - https://launchpad.net/bugs/1236282 (bzr r12862)
Diffstat (limited to 'src/ui/dialog/template-load-tab.cpp')
-rw-r--r--src/ui/dialog/template-load-tab.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui/dialog/template-load-tab.cpp b/src/ui/dialog/template-load-tab.cpp
index 8e33cf503..057eff337 100644
--- a/src/ui/dialog/template-load-tab.cpp
+++ b/src/ui/dialog/template-load-tab.cpp
@@ -9,7 +9,6 @@
*/
#include "template-widget.h"
-
#include "template-load-tab.h"
#include <gtkmm/messagedialog.h>
@@ -83,6 +82,11 @@ void TemplateLoadTab::createTemplate()
}
+void TemplateLoadTab::_onRowActivated(const Gtk::TreeModel::Path &, Gtk::TreeViewColumn*)
+{
+ _info_widget->create();
+}
+
void TemplateLoadTab::_displayTemplateInfo()
{
Glib::RefPtr<Gtk::TreeSelection> templateSelectionRef = _tlist_view.get_selection();
@@ -119,9 +123,11 @@ void TemplateLoadTab::_initLists()
_tlist_view.get_selection();
templateSelectionRef->signal_changed().connect(
sigc::mem_fun(*this, &TemplateLoadTab::_displayTemplateInfo));
+
+ _tlist_view.signal_row_activated().connect(
+ sigc::mem_fun(*this, &TemplateLoadTab::_onRowActivated));
}
-
void TemplateLoadTab::_keywordSelected()
{
_current_keyword = _keywords_combo.get_active_text();