diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-03-02 09:31:25 +0000 |
|---|---|---|
| committer | John Smith <removethis.john.q.public@bigmail.com> | 2012-03-02 09:31:25 +0000 |
| commit | 5a838eb403143abf75ffed2f3b32c470b979d16f (patch) | |
| tree | 9a3727b054f268345a97d52d74c5ae0bb108e4c8 /src/ui/dialog/livepatheffect-add.cpp | |
| parent | Fix for 168351 : layer rename doesn't update layers dialog (diff) | |
| download | inkscape-5a838eb403143abf75ffed2f3b32c470b979d16f.tar.gz inkscape-5a838eb403143abf75ffed2f3b32c470b979d16f.zip | |
Fix for 927074 : resize buttons, and add on tree double click
(bzr r11040)
Diffstat (limited to '')
| -rw-r--r-- | src/ui/dialog/livepatheffect-add.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp index d53c85e33..6420702ef 100644 --- a/src/ui/dialog/livepatheffect-add.cpp +++ b/src/ui/dialog/livepatheffect-add.cpp @@ -80,6 +80,7 @@ LivePathEffectAdd::LivePathEffectAdd() : /** * Signal handlers */ + effectlist_treeview.signal_button_press_event().connect_notify( sigc::mem_fun(*this, &LivePathEffectAdd::onButtonEvent) ); close_button.signal_clicked().connect(sigc::mem_fun(*this, &LivePathEffectAdd::onClose)); add_button.signal_clicked().connect(sigc::mem_fun(*this, &LivePathEffectAdd::onAdd)); signal_delete_event().connect( sigc::bind_return(sigc::hide(sigc::mem_fun(*this, &LivePathEffectAdd::onClose)), true ) ); @@ -100,6 +101,14 @@ void LivePathEffectAdd::onClose() hide(); } +void LivePathEffectAdd::onButtonEvent(GdkEventButton* evt) +{ + // Double click on tree is same as clicking the add button + if (evt->type == GDK_2BUTTON_PRESS) { + onAdd(); + } +} + const Util::EnumData<LivePathEffect::EffectType>* LivePathEffectAdd::getActiveData() { |
