summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-05-14 22:37:16 +0400
committerDenis Gorodnichev <[email protected]>2014-05-14 22:37:16 +0400
commit9add37607f20d8e44d743897456aa821032570be (patch)
tree5fb9686930231e4516e52db4a8e3f6ce3db15d57
parent472ccc0025494452e705ac28dc82fe5abd431de8 (diff)
downloadmate-panel-9add37607f20d8e44d743897456aa821032570be.tar.bz2
mate-panel-9add37607f20d8e44d743897456aa821032570be.tar.xz
gtk3: set rgba visual for applets
-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 c11ac37a..c3b8e422 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -2055,6 +2055,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);