[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 254/473: Rename option for showing generic application names. Closes #40.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:57:04 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 fad8c07640e830bccfb053c442b3ac48ef2a3e85
Author: Graeme Gott <graeme at gottcode.org>
Date:   Wed Nov 20 16:35:41 2013 -0500

    Rename option for showing generic application names. Closes #40.
---
 panel-plugin/configuration-dialog.cpp |   12 ++++++------
 panel-plugin/configuration-dialog.h   |    8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/panel-plugin/configuration-dialog.cpp b/panel-plugin/configuration-dialog.cpp
index f170663..80e1f24 100644
--- a/panel-plugin/configuration-dialog.cpp
+++ b/panel-plugin/configuration-dialog.cpp
@@ -154,9 +154,9 @@ void ConfigurationDialog::toggle_hover_switch_category(GtkToggleButton* button)
 
 //-----------------------------------------------------------------------------
 
-void ConfigurationDialog::toggle_show_name(GtkToggleButton* button)
+void ConfigurationDialog::toggle_show_generic_name(GtkToggleButton* button)
 {
-	wm_settings->launcher_show_name = gtk_toggle_button_get_active(button);
+	wm_settings->launcher_show_name = !gtk_toggle_button_get_active(button);
 	wm_settings->set_modified();
 	m_plugin->reload();
 }
@@ -309,10 +309,10 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
 	gtk_container_set_border_width(GTK_CONTAINER(appearance_frame), 6);
 
 	// Add option to use generic names
-	m_show_names = gtk_check_button_new_with_mnemonic(_("Show applications by _name"));
-	gtk_box_pack_start(appearance_vbox, m_show_names, true, true, 0);
-	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_show_names), wm_settings->launcher_show_name);
-	g_signal_connect(m_show_names, "toggled", G_CALLBACK(ConfigurationDialog::toggle_show_name_slot), this);
+	m_show_generic_names = gtk_check_button_new_with_mnemonic(_("Show generic application _names"));
+	gtk_box_pack_start(appearance_vbox, m_show_generic_names, true, true, 0);
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_show_generic_names), !wm_settings->launcher_show_name);
+	g_signal_connect(m_show_generic_names, "toggled", G_CALLBACK(ConfigurationDialog::toggle_show_generic_name_slot), this);
 
 	// Add option to hide descriptions
 	m_show_descriptions = gtk_check_button_new_with_mnemonic(_("Show application _descriptions"));
diff --git a/panel-plugin/configuration-dialog.h b/panel-plugin/configuration-dialog.h
index f476cb7..1565202 100644
--- a/panel-plugin/configuration-dialog.h
+++ b/panel-plugin/configuration-dialog.h
@@ -38,7 +38,7 @@ public:
 	}
 
 private:
-	void toggle_show_name(GtkToggleButton* button);
+	void toggle_show_generic_name(GtkToggleButton* button);
 	void toggle_show_description(GtkToggleButton* button);
 	void toggle_show_hierarchy(GtkToggleButton* button);
 	void toggle_position_search_alternate(GtkToggleButton* button);
@@ -63,7 +63,7 @@ private:
 	Plugin* m_plugin;
 	GtkWidget* m_window;
 
-	GtkWidget* m_show_names;
+	GtkWidget* m_show_generic_names;
 	GtkWidget* m_show_descriptions;
 	GtkWidget* m_show_hierarchy;
 	GtkWidget* m_position_search_alternate;
@@ -118,9 +118,9 @@ private:
 		obj->toggle_hover_switch_category(button);
 	}
 
-	static void toggle_show_name_slot(GtkToggleButton* button, ConfigurationDialog* obj)
+	static void toggle_show_generic_name_slot(GtkToggleButton* button, ConfigurationDialog* obj)
 	{
-		obj->toggle_show_name(button);
+		obj->toggle_show_generic_name(button);
 	}
 
 	static void toggle_show_description_slot(GtkToggleButton* button, ConfigurationDialog* obj)

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


More information about the Xfce4-commits mailing list