diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2013-12-27 16:23:21 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2013-12-27 16:23:21 +0000 |
| commit | f8d98a0dc280ab442c320be8bab643fcb5aebf04 (patch) | |
| tree | 596cf0c82d105b591853159cbf2463997e6e21f2 /src/ui/dialog/template-load-tab.cpp | |
| parent | Fix for bug #1204732 (Inkscape crashed with SIGABRT in __gnu_cxx::__verbose_t... (diff) | |
| download | inkscape-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.cpp | 10 |
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(); |
