/pidgin/main: dd4be794b71e: Fix a couple GTK2 typos.

Elliott Sales de Andrade qulogic at pidgin.im
Tue Jul 24 04:03:57 EDT 2012


Changeset: dd4be794b71eca396f948311ad6260bcbea00a99
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-24 01:08 -0400
Branch:	 cpw.qulogic.gtk3-required
URL: http://hg.pidgin.im/pidgin/main/rev/dd4be794b71e

Description:

Fix a couple GTK2 typos.

diffstat:

 pidgin/gtkwhiteboard.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (43 lines):

diff --git a/pidgin/gtkwhiteboard.c b/pidgin/gtkwhiteboard.c
--- a/pidgin/gtkwhiteboard.c
+++ b/pidgin/gtkwhiteboard.c
@@ -386,7 +386,7 @@
 	                     FALSE, gdk_visual_get_depth(GDK_VISUAL(window)),
 	                     allocation.width, allocation.height);
 #else
-	pix = gdk_pixmap_new(widget->window,
+	pix = gdk_pixmap_new(window,
 	                     allocation.width,
 	                     allocation.height,
 	                     -1);
@@ -395,7 +395,7 @@
 	gtkwb->priv->pix = pix;
 
 #if GTK_CHECK_VERSION(3,0,0)
-	cr = gdk_cairo_create(gtk_widget_get_window(widget));
+	cr = gdk_cairo_create(window);
 #else
 	cr = gdk_cairo_create(GDK_DRAWABLE(pix));
 #endif
@@ -813,8 +813,8 @@
 		pixbuf = gtkwb->priv->pix;
 #else
 		pixbuf = gdk_pixbuf_get_from_drawable(NULL,
-		                                      (GdkDrawable*)(gtkwb->priv->pixmap),
-		                                      gdk_drawable_get_colormap(gtkwb->priv->pixmap),
+		                                      (GdkDrawable*)(gtkwb->priv->pix),
+		                                      gdk_drawable_get_colormap(gtkwb->priv->pix),
 		                                      0, 0,
 		                                      0, 0,
 		                                      gtkwb->width, gtkwb->height);
@@ -843,8 +843,8 @@
 	pixbuf = gtkwb->priv->pix;
 #else
 	pixbuf = gdk_pixbuf_get_from_drawable(NULL,
-	                                      (GdkDrawable*)(gtkwb->priv->pixmap),
-	                                      gdk_drawable_get_colormap(gtkwb->priv->pixmap),
+	                                      (GdkDrawable*)(gtkwb->priv->pix),
+	                                      gdk_drawable_get_colormap(gtkwb->priv->pix),
 	                                      0, 0,
 	                                      0, 0,
 	                                      gtkwb->width, gtkwb->height);



More information about the Commits mailing list