[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 122/473: Fix filter applied when button is deselected.
noreply at xfce.org
noreply at xfce.org
Mon Feb 16 23:54:52 CET 2015
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit f58c147ff53e2062670fc4ba78c507606228157e
Author: Graeme Gott <graeme at gottcode.org>
Date: Thu Jul 18 11:28:29 2013 -0400
Fix filter applied when button is deselected.
---
src/applications_page.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/applications_page.cpp b/src/applications_page.cpp
index 6b17dd1..f73995b 100644
--- a/src/applications_page.cpp
+++ b/src/applications_page.cpp
@@ -91,6 +91,12 @@ Launcher* ApplicationsPage::get_application(const std::string& desktop_id) const
void ApplicationsPage::apply_filter(GtkToggleButton* togglebutton)
{
+ // Only apply filter for active button
+ if (gtk_toggle_button_get_active(togglebutton) == false)
+ {
+ return;
+ }
+
// Find category matching button
std::map<SectionButton*, Category*>::const_iterator i, end = m_category_buttons.end();
for (i = m_category_buttons.begin(); i != end; ++i)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list