[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 157/473: Allow pango markup in launcher title. Closes #28.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:55:27 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 b14aa5dff3b4509959bebeac189f1e35fdec683c
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Aug 13 14:11:40 2013 -0400

    Allow pango markup in launcher title. Closes #28.
---
 src/panel_plugin.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/panel_plugin.cpp b/src/panel_plugin.cpp
index d2857ce..9f1a3ca 100644
--- a/src/panel_plugin.cpp
+++ b/src/panel_plugin.cpp
@@ -107,7 +107,8 @@ PanelPlugin::PanelPlugin(XfcePanelPlugin* plugin) :
 		gtk_widget_show(GTK_WIDGET(m_button_icon));
 	}
 
-	m_button_label = GTK_LABEL(gtk_label_new(m_button_title.c_str()));
+	m_button_label = GTK_LABEL(gtk_label_new(NULL));
+	gtk_label_set_markup(m_button_label, m_button_title.c_str());
 	gtk_box_pack_start(m_button_box, GTK_WIDGET(m_button_label), false, false, 0);
 	if (m_button_title_visible)
 	{
@@ -191,7 +192,7 @@ void PanelPlugin::set_button_style(ButtonStyle style)
 void PanelPlugin::set_button_title(const std::string& title)
 {
 	m_button_title = title;
-	gtk_label_set_label(m_button_label, m_button_title.c_str());
+	gtk_label_set_markup(m_button_label, m_button_title.c_str());
 	size_changed(xfce_panel_plugin_get_size(m_plugin));
 }
 

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


More information about the Xfce4-commits mailing list