[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 02/05: Create sidebar viewport automatically.

noreply at xfce.org noreply at xfce.org
Tue Jan 7 17:52:02 CET 2020


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 8be72bb970f21d623dc51f603b038d97fc57881c
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Jan 7 06:00:03 2020 -0500

    Create sidebar viewport automatically.
---
 panel-plugin/window.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 72dc7d7..14a0da0 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -234,12 +234,7 @@ WhiskerMenu::Window::Window(Plugin* plugin) :
 	gtk_box_pack_start(m_contents_box, GTK_WIDGET(m_sidebar), false, false, 0);
 	gtk_scrolled_window_set_shadow_type(m_sidebar, GTK_SHADOW_NONE);
 	gtk_scrolled_window_set_policy(m_sidebar, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-
-	GtkWidget* viewport = gtk_viewport_new(gtk_scrolled_window_get_hadjustment(m_sidebar),
-		gtk_scrolled_window_get_vadjustment(m_sidebar));
-	gtk_viewport_set_shadow_type(GTK_VIEWPORT(viewport), GTK_SHADOW_NONE);
-	gtk_container_add(GTK_CONTAINER(m_sidebar), viewport);
-	gtk_container_add(GTK_CONTAINER(viewport), GTK_WIDGET(m_sidebar_buttons));
+	gtk_container_add(GTK_CONTAINER(m_sidebar), GTK_WIDGET(m_sidebar_buttons));
 
 	// Show widgets
 	gtk_widget_show_all(frame);

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


More information about the Xfce4-commits mailing list