[Xfce4-commits] <xfce4-wmdock-plugin:0.6.x> Set the tile window style equal to the XFCE panel style.

Andre Ellguth noreply at xfce.org
Wed Oct 16 10:58:02 CEST 2013


Updating branch refs/heads/0.6.x
         to 489ca0e314640548c9f604493a19406df8334427 (commit)
       from 6329390ff4ca61ddd353423885664126bf8509dd (commit)

commit 489ca0e314640548c9f604493a19406df8334427
Author: Andre Ellguth <andre at ellguth.com>
Date:   Wed Oct 16 10:56:10 2013 +0200

    Set the tile window style equal to the XFCE panel style.

 panel-plugin/dockapp.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/panel-plugin/dockapp.c b/panel-plugin/dockapp.c
index bf31467..62eee81 100644
--- a/panel-plugin/dockapp.c
+++ b/panel-plugin/dockapp.c
@@ -879,6 +879,9 @@ GtkWidget *wmdock_create_tile_from_socket(DockappNode *dapp)
 		/* Hide window from the taskbar and the pager. */
 		gtk_window_set_skip_taskbar_hint(GTK_WINDOW(tile), TRUE);
 		gtk_window_set_skip_pager_hint(GTK_WINDOW(tile), TRUE);
+		/* Set the background style of the tile window like the XFCE panel. */
+		gtk_widget_set_style(GTK_WIDGET(dapp->evbox), gtk_widget_get_style(GTK_WIDGET(wmdock->plugin)));
+		gtk_widget_set_style(GTK_WIDGET(_evbox), gtk_widget_get_style(GTK_WIDGET(wmdock->plugin)));
 
 		gtk_container_add(GTK_CONTAINER(tile), _fixed);
 


More information about the Xfce4-commits mailing list