[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 363/473: Load applications immediately. Closes #86.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:58:53 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 82cb5127990881d38253ba01837534fa4abb6b57
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri May 2 05:26:27 2014 -0400

    Load applications immediately. Closes #86.
---
 panel-plugin/window.cpp |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index c4bb790..16071e4 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -219,11 +219,16 @@ Window::Window() :
 	gtk_widget_hide(m_search_results->get_widget());
 	m_default_button->set_active(true);
 	gtk_widget_hide(m_window_contents);
+	gtk_widget_show(m_window_load_contents);
 
 	// Resize to last known size
 	gtk_window_set_default_size(m_window, m_geometry.width, m_geometry.height);
 
 	g_object_ref_sink(m_window);
+
+	// Start loading applications immediately
+	m_applications->load_applications();
+	gtk_spinner_start(m_window_load_spinner);
 }
 
 //-----------------------------------------------------------------------------
@@ -276,7 +281,7 @@ void Window::show(GtkWidget* parent, bool horizontal)
 	}
 
 	// Make sure applications list is current; does nothing unless list has changed
-	if (m_applications->load_applications())
+	if (m_applications->load_applications() && gtk_widget_get_visible(m_window_contents))
 	{
 		gtk_widget_hide(m_window_contents);
 		gtk_widget_show(m_window_load_contents);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list