[xchat-gnome] Bug 652865 - Don't hardcode background pixmap depth
- From: Ritesh Khadgaray <rkhadgaray src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xchat-gnome] Bug 652865 - Don't hardcode background pixmap depth
- Date: Mon, 20 Jun 2011 12:26:55 +0000 (UTC)
commit 8c39ff9c7d946fdb4aa6a8c38fdd26537356931c
Author: Bill Nottingham <notting redhat com>
Date: Mon Jun 20 17:47:13 2011 +0530
Bug 652865 - Don't hardcode background pixmap depth
Conflicts:
src/fe-gnome/conversation-panel.c
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 72b5ae8..d39f56a 100644
--- a/src/fe-gnome/conversation-panel.c
+++ b/src/fe-gnome/conversation-panel.c
@@ -590,7 +590,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);
context = gdk_cairo_create (GDK_DRAWABLE (image));
gdk_cairo_set_source_pixbuf (context, pixbuf, 0, 0);
cairo_paint (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]