gnome-applets r10969 - trunk/accessx-status
- From: callum svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r10969 - trunk/accessx-status
- Date: Tue, 9 Sep 2008 00:36:38 +0000 (UTC)
Author: callum
Date: Tue Sep 9 00:36:38 2008
New Revision: 10969
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=10969&view=rev
Log:
Patch to fix a crash due to the lack of a colormap (Matt Keenan, Bug 549722)
Modified:
trunk/accessx-status/ChangeLog
trunk/accessx-status/applet.c
Modified: trunk/accessx-status/applet.c
==============================================================================
--- trunk/accessx-status/applet.c (original)
+++ trunk/accessx-status/applet.c Tue Sep 9 00:36:38 2008
@@ -393,8 +393,10 @@
pango_layout_set_text (layout, glyphstring, -1);
gc = gdk_gc_new (GDK_DRAWABLE (pixmap));
cmap = gdk_drawable_get_colormap (GDK_DRAWABLE (pixmap));
- if (!cmap) cmap = gdk_colormap_new (visual, FALSE);
- else g_object_ref (cmap);
+ if (!cmap) {
+ cmap = gdk_colormap_new (visual, FALSE);
+ gdk_drawable_set_colormap (GDK_DRAWABLE (pixmap), cmap);
+ } else g_object_ref (cmap);
gdk_colormap_alloc_color (cmap, fg, FALSE, TRUE);
gdk_colormap_alloc_color (cmap, bg, FALSE, TRUE);
gdk_gc_set_foreground (gc, bg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]