From 4855a8a2cb986d8bec382430c463c070226aab38 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Fri, 8 Mar 2019 01:18:25 +0100 Subject: Show LPE popups on over --- src/ui/dialog/livepatheffect-add.cpp | 9 +++++---- src/ui/dialog/livepatheffect-add.h | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/ui') diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp index ccaafdf62..452138aa0 100644 --- a/src/ui/dialog/livepatheffect-add.cpp +++ b/src/ui/dialog/livepatheffect-add.cpp @@ -76,6 +76,7 @@ bool LivePathEffectAdd::mouseout(GdkEventCrossing *evt, GtkWidget *wdg) { GdkWindow *window = gtk_widget_get_window(wdg); gdk_window_set_cursor(window, nullptr); + hide_pop_description(evt); return true; } @@ -140,7 +141,7 @@ LivePathEffectAdd::LivePathEffectAdd() LPEIcon->set_from_icon_name(converter.get_icon(data->id), Gtk::BuiltinIconSize(Gtk::ICON_SIZE_DIALOG)); Gtk::EventBox *LPESelectorEffectEventInfo; builder_effect->get_widget("LPESelectorEffectEventInfo", LPESelectorEffectEventInfo); - LPESelectorEffectEventInfo->signal_button_press_event().connect(sigc::bind>( + LPESelectorEffectEventInfo->signal_enter_notify_event().connect(sigc::bind>( sigc::mem_fun(*this, &LivePathEffectAdd::pop_description), builder_effect)); Gtk::EventBox *LPESelectorEffectEventFav; builder_effect->get_widget("LPESelectorEffectEventFav", LPESelectorEffectEventFav); @@ -186,7 +187,7 @@ LivePathEffectAdd::LivePathEffectAdd() sigc::mem_fun(*this, &LivePathEffectAdd::mouseout), GTK_WIDGET(_LPESelectorEffectEventFavShow->gobj()))); _LPESelectorEffectEventFavShow->signal_button_press_event().connect( sigc::mem_fun(*this, &LivePathEffectAdd::show_fav_toggler)); - _LPESelectorEffectInfoEventBox->signal_button_press_event().connect( + _LPESelectorEffectInfoEventBox->signal_leave_notify_event().connect( sigc::mem_fun(*this, &LivePathEffectAdd::hide_pop_description)); _LPESelectorEffectInfoEventBox->signal_enter_notify_event().connect(sigc::bind( sigc::mem_fun(*this, &LivePathEffectAdd::mouseover), GTK_WIDGET(_LPESelectorEffectInfoEventBox->gobj()))); @@ -231,7 +232,7 @@ void LivePathEffectAdd::on_activate(Gtk::FlowBoxChild *child) child->show_all_children(); } -bool LivePathEffectAdd::pop_description(GdkEventButton *evt, Glib::RefPtr builder_effect) +bool LivePathEffectAdd::pop_description(GdkEventCrossing *evt, Glib::RefPtr builder_effect) { Gtk::Image *LPESelectorEffectInfo; builder_effect->get_widget("LPESelectorEffectInfo", LPESelectorEffectInfo); @@ -261,7 +262,7 @@ bool LivePathEffectAdd::pop_description(GdkEventButton *evt, Glib::RefPtrhide(); return true; diff --git a/src/ui/dialog/livepatheffect-add.h b/src/ui/dialog/livepatheffect-add.h index d1767ca3e..938eb768a 100644 --- a/src/ui/dialog/livepatheffect-add.h +++ b/src/ui/dialog/livepatheffect-add.h @@ -66,8 +66,8 @@ class LivePathEffectAdd { int on_sort(Gtk::FlowBoxChild *child1, Gtk::FlowBoxChild *child2); void on_search(); void on_activate(Gtk::FlowBoxChild *child); - bool pop_description(GdkEventButton *evt, Glib::RefPtr builder_effect); - bool hide_pop_description(GdkEventButton *evt); + bool pop_description(GdkEventCrossing *evt, Glib::RefPtr builder_effect); + bool hide_pop_description(GdkEventCrossing *evt); bool fav_toggler(GdkEventButton *evt, Glib::RefPtr builder_effect); bool apply(GdkEventButton *evt, Glib::RefPtr builder_effect, const LivePathEffect::EnumEffectData *to_add); -- cgit v1.2.3