[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 428/473: Make command activation public.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:59:58 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 a15db67922d63cb29ee08d0c0e1b618cb0d6c36d
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Dec 9 19:40:19 2014 -0500

    Make command activation public.
---
 panel-plugin/command.cpp |    6 +++---
 panel-plugin/command.h   |    3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/command.cpp b/panel-plugin/command.cpp
index 1d686ee..d597458 100644
--- a/panel-plugin/command.cpp
+++ b/panel-plugin/command.cpp
@@ -92,7 +92,7 @@ GtkWidget* Command::get_button()
 	m_button = gtk_button_new();
 	gtk_button_set_relief(GTK_BUTTON(m_button), GTK_RELIEF_NONE);
 	gtk_widget_set_tooltip_text(m_button, tooltip.c_str());
-	g_signal_connect_slot<GtkButton*>(m_button, "clicked", &Command::activated, this);
+	g_signal_connect_slot<GtkButton*>(m_button, "clicked", &Command::activate, this);
 
 	GtkWidget* image = gtk_image_new_from_icon_name(m_icon, GTK_ICON_SIZE_LARGE_TOOLBAR);
 	gtk_container_add(GTK_CONTAINER(m_button), GTK_WIDGET(image));
@@ -117,7 +117,7 @@ GtkWidget* Command::get_menuitem()
 	m_menuitem = gtk_image_menu_item_new_with_mnemonic(m_text);
 	GtkWidget* image = gtk_image_new_from_icon_name(m_icon, GTK_ICON_SIZE_MENU);
 	gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(m_menuitem), image);
-	g_signal_connect_slot<GtkMenuItem*>(m_menuitem, "activate", &Command::activated, this);
+	g_signal_connect_slot<GtkMenuItem*>(m_menuitem, "activate", &Command::activate, this);
 
 	gtk_widget_set_visible(m_menuitem, m_shown);
 	gtk_widget_set_sensitive(m_menuitem, m_status == WHISKERMENU_COMMAND_VALID);
@@ -198,7 +198,7 @@ void Command::check()
 
 //-----------------------------------------------------------------------------
 
-void Command::activated()
+void Command::activate()
 {
 	GError* error = NULL;
 	if (g_spawn_command_line_async(m_command, &error) == false)
diff --git a/panel-plugin/command.h b/panel-plugin/command.h
index d97be08..53753ed 100644
--- a/panel-plugin/command.h
+++ b/panel-plugin/command.h
@@ -53,8 +53,7 @@ public:
 
 	void check();
 
-private:
-	void activated();
+	void activate();
 
 private:
 	GtkWidget* m_button;

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


More information about the Xfce4-commits mailing list