Ticket #418 (closed defect: fixed)
[PATCH] argb compliancy
| Reported by: | C10uD | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0 |
| Component: | gui | Version: | |
| Keywords: | Cc: |
Description
--- Controller.py 2008-02-12 22:33:06.000000000 +0100
+++ Controller-rgba.py 2008-02-12 22:34:09.000000000 +0100
@@ -113,7 +113,11 @@
self.config.connect('change::binary', self.updateDebug)
self.theme = Theme.Theme(self.config, 'default', 'default')
- self.mainWindow = MainWindow.MainWindow(self)
+ self.mainWindow = MainWindow.MainWindow(self)
+ self.gtk_screen = self.mainWindow.get_screen()
+ colormap = self.gtk_screen.get_rgba_colormap()
+ if colormap:
+ gtk.widget_set_default_colormap(colormap)
self.mainWindow.realize()
self.widget_style = self.mainWindow.get_style()
self.unifiedParser = UnifiedParser(self.theme)
@@ -126,9 +130,11 @@
self.contact_manager = None
self.group_manager = None
self.dialog_manager = DialogManager.DialogManager()
-
+
+ gtk.widget_push_colormap(self.gtk_screen.get_rgb_colormap())
if not TrayIcon.disabled:
- self.trayIcon = TrayIcon.TrayIcon(self)
+ self.trayIcon = TrayIcon.TrayIcon(self)
+ gtk.widget_pop_colormap()
if TrayIcon.disabled or not minimized:
self.mainWindow.show()
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
