diff options
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 5 |
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); |