diff options
author | Denis Gorodnichev <[email protected]> | 2014-05-14 22:37:16 +0400 |
---|---|---|
committer | Denis Gorodnichev <[email protected]> | 2014-05-14 22:37:16 +0400 |
commit | 9add37607f20d8e44d743897456aa821032570be (patch) | |
tree | 5fb9686930231e4516e52db4a8e3f6ce3db15d57 /libmate-panel-applet/mate-panel-applet.c | |
parent | 472ccc0025494452e705ac28dc82fe5abd431de8 (diff) | |
download | mate-panel-9add37607f20d8e44d743897456aa821032570be.tar.bz2 mate-panel-9add37607f20d8e44d743897456aa821032570be.tar.xz |
gtk3: set rgba visual for applets
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet.c')
-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); |