[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 03/09: Clean up showing section buttons.

noreply at xfce.org noreply at xfce.org
Sun Apr 15 01:13:22 CEST 2018


This is an automated email from the git hooks/post-receive script.

g   o   t   t   c   o   d   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit cad4dc2ee4ba0e6696fff7f39ffdc988c49fac3d
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Oct 24 14:58:38 2017 -0400

    Clean up showing section buttons.
---
 panel-plugin/section-button.cpp | 2 ++
 panel-plugin/window.cpp         | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/section-button.cpp b/panel-plugin/section-button.cpp
index ea217d4..8f073ea 100644
--- a/panel-plugin/section-button.cpp
+++ b/panel-plugin/section-button.cpp
@@ -79,6 +79,8 @@ SectionButton::SectionButton(const gchar* icon, const gchar* text) :
 	m_label = gtk_label_new(text);
 	gtk_box_pack_start(m_box, m_label, false, true, 0);
 
+	gtk_widget_show_all(GTK_WIDGET(m_button));
+
 	reload_icon_size();
 }
 
diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 2d6f39f..c4a2cc4 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -666,7 +666,6 @@ void WhiskerMenu::Window::set_categories(const std::vector<SectionButton*>& cate
 		gtk_box_pack_start(m_sidebar_buttons, GTK_WIDGET((*i)->get_button()), false, false, 0);
 		g_signal_connect_slot<GtkToggleButton*>((*i)->get_button(), "toggled", &Window::category_toggled, this);
 	}
-	gtk_widget_show_all(GTK_WIDGET(m_sidebar_buttons));
 
 	show_default_page();
 }

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


More information about the Xfce4-commits mailing list