Ticket #418 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

[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

Controller.py (30.4 kB) - added by anonymous 7 months ago.
Config.py (17.1 kB) - added by anonymous 7 months ago.

Change History

Changed 17 months ago by C10uD

forgot to add: made by Cimi www.cimitan.com

Changed 17 months ago by Cimi

Works both on a composited environment and a rgb environment. Tested by few guys and works perfectly (100%)

Simply sets an rgba colormap, and before the creation of the system tray it forces the rgb, then returns to rgba. That approach for the tray is necessary, since actually the freedesktop.org specs doesn't support rgba visuals on tray, and using rgba on it will result in a xorg BadMatch?. Pushing rgb on it will be rock solid

Changed 17 months ago by dx

=D

Changed 17 months ago by dx

  • status changed from new to closed
  • resolution set to fixed

applied

Changed 7 months ago by anonymous

Changed 7 months ago by anonymous

Add/Change #418 ([PATCH] argb compliancy)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.