summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-18 13:20:36 +0200
committerStefano Karapetsas <[email protected]>2014-05-18 13:20:36 +0200
commitf327306271032e7b8ef716655f91c58513792cde (patch)
tree1852e491033e64b75ed44c61bcffe93c39586e9c /libmate-panel-applet
parente964b756355ad5e66a0166d9ca218bdde2054f6d (diff)
parent9add37607f20d8e44d743897456aa821032570be (diff)
downloadmate-panel-f327306271032e7b8ef716655f91c58513792cde.tar.bz2
mate-panel-f327306271032e7b8ef716655f91c58513792cde.tar.xz
Merge pull request #195 from dnk/applet_rgba_visual
gtk3: set rgba visual for applets
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r--libmate-panel-applet/mate-panel-applet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
index 7a514c58..ef61f846 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -2039,6 +2039,11 @@ mate_panel_applet_init (MatePanelApplet *applet)
applet->priv->plug = gtk_plug_new (0);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(applet->priv->plug));
+ GdkVisual *visual = gdk_screen_get_rgba_visual(screen);
+ gtk_widget_set_visual(GTK_WIDGET(applet->priv->plug), visual);
+#endif
g_signal_connect_swapped (G_OBJECT (applet->priv->plug), "embedded",
G_CALLBACK (mate_panel_applet_setup),
applet);