conduit r1298 - in trunk: . conduit/gtkui



Author: jstowers
Date: Sun Feb 10 22:52:26 2008
New Revision: 1298
URL: http://svn.gnome.org/viewvc/conduit?rev=1298&view=rev

Log:
2008-02-11  John Stowers  <john stowers gmail com>

	* conduit/gtkui/UI.py: Added RGBA support for conduit.
	Fixes bug #515648 (Jon Bolt)



Modified:
   trunk/ChangeLog
   trunk/conduit/gtkui/UI.py

Modified: trunk/conduit/gtkui/UI.py
==============================================================================
--- trunk/conduit/gtkui/UI.py	(original)
+++ trunk/conduit/gtkui/UI.py	Sun Feb 10 22:52:26 2008
@@ -88,6 +88,13 @@
         
         #Initialize the mainWindow
         self.mainWindow = self.widgets.get_widget("MainWindow")
+        #Enable RGBA colormap
+        screen = self.mainWindow.get_screen()
+        colormap = screen.get_rgba_colormap()
+        if colormap == None:
+            colormap = screen.get_rgb_colormap()
+        gtk.widget_set_default_colormap(colormap)       
+        
         self.mainWindow.set_position(gtk.WIN_POS_CENTER)
         self.mainWindow.set_icon_name("conduit")
         title = "%s" % conduit.APPNAME



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]