[xchat-gnome/xchat-0-26-3] Bug 652865 - Don't hardcode background pixmap depth



commit 5b843b0dceb4cffd26ab35dd96b17988b8002a7f
Author: Bill Nottingham <notting redhat com>
Date:   Mon Jun 20 17:47:13 2011 +0530

    Bug 652865 - Don't hardcode background pixmap depth

 src/fe-gnome/conversation-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fe-gnome/conversation-panel.c b/src/fe-gnome/conversation-panel.c
index 59e1bcd..b230fd5 100644
--- a/src/fe-gnome/conversation-panel.c
+++ b/src/fe-gnome/conversation-panel.c
@@ -592,7 +592,7 @@ conversation_panel_set_background (ConversationPanel *panel)
 				width  = gdk_pixbuf_get_width  (pixbuf);
 				height = gdk_pixbuf_get_height (pixbuf);
 
-				image = gdk_pixmap_new (NULL, width, height, 24);
+				image = gdk_pixmap_new (GDK_DRAWABLE (panel->priv->xtext->window), width, height, -1);
 #if GTK_CHECK_VERSION (2, 23, 0)
 				context = gdk_cairo_create (GDK_DRAWABLE (image));
 				gdk_cairo_set_source_pixbuf (context, pixbuf, 0, 0);



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