[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 14/15: Fix sidebar buttons retaining incorrect width.
noreply at xfce.org
noreply at xfce.org
Fri Jul 13 13:27:02 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 a n n o t a t e d t a g v 2 . 2 . 1
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit f46ea496ad5d3c388c3d55a7f0142328ab150278
Author: Graeme Gott <graeme at gottcode.org>
Date: Mon Jul 9 07:51:25 2018 -0400
Fix sidebar buttons retaining incorrect width.
---
panel-plugin/window.cpp | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 017705a..a11ff4d 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -476,7 +476,7 @@ void WhiskerMenu::Window::show(const Position position)
g_object_ref(m_commands_box);
if (m_layout_commands_alternate)
{
- if (!wm_settings->position_categories_alternate)
+ if (!m_sidebar_size_group)
{
m_sidebar_size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
gtk_size_group_add_widget(m_sidebar_size_group, GTK_WIDGET(m_sidebar));
@@ -488,8 +488,13 @@ void WhiskerMenu::Window::show(const Position position)
}
else
{
- g_object_unref(m_sidebar_size_group);
- m_sidebar_size_group = NULL;
+ if (m_sidebar_size_group)
+ {
+ gtk_size_group_remove_widget(m_sidebar_size_group, GTK_WIDGET(m_sidebar));
+ gtk_size_group_remove_widget(m_sidebar_size_group, GTK_WIDGET(m_commands_box));
+ g_object_unref(m_sidebar_size_group);
+ m_sidebar_size_group = NULL;
+ }
gtk_container_remove(GTK_CONTAINER(m_search_box), GTK_WIDGET(m_commands_box));
gtk_box_pack_start(m_title_box, GTK_WIDGET(m_commands_box), false, false, 0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list