Changeset 5145


Ignore:
Timestamp:
Feb 27, 2008, 6:33:17 PM (14 years ago)
Author:
charles
Message:

(gtk) add transparency support for gtk 2.10 and higher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-window.c

    r5122 r5145  
    451451                                gtk_ui_manager_get_accel_group (ui_manager));
    452452    g_signal_connect( self, "realize", G_CALLBACK(realized_cb), NULL);
     453
     454#ifdef GTK_CHECK_VERSION(2,10,0)
     455    {
     456        GdkScreen * screen = gtk_widget_get_screen( self );
     457        GdkColormap * colormap = gdk_screen_get_rgba_colormap( screen );
     458        if( colormap && gdk_screen_is_composited( screen ) )
     459            gtk_widget_set_default_colormap( colormap );
     460    }
     461#endif
    453462
    454463    /* window's main container */
Note: See TracChangeset for help on using the changeset viewer.