From aafbb6374b903d0c8ec5364f4cb3f2065cc7d31e Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 6 Oct 2013 22:17:45 -0400 Subject: Round 2.5 of gtk accessor functions Some leftovers in chanview-tabs and maingui --- src/fe-gtk/maingui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fe-gtk/maingui.c') diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 4177514e..4d4707ea 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -3787,9 +3787,9 @@ mg_drag_begin_cb (GtkWidget *widget, GdkDragContext *context, gpointer userdata) return FALSE; cmap = gtk_widget_get_colormap (widget); - gdk_drawable_get_size (widget->window, &width, &height); + gdk_drawable_get_size (gtk_widget_get_window (widget), &width, &height); - pix = gdk_pixbuf_get_from_drawable (NULL, widget->window, cmap, 0, 0, 0, 0, width, height); + pix = gdk_pixbuf_get_from_drawable (NULL, gtk_widget_get_window (widget), cmap, 0, 0, 0, 0, width, height); pix2 = gdk_pixbuf_scale_simple (pix, width * 4 / 5, height / 2, GDK_INTERP_HYPER); g_object_unref (pix); -- cgit 1.4.1