[gimp] Use gtk_widget_get_window() instead of widget->window
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use gtk_widget_get_window() instead of widget->window
- Date: Fri, 9 Oct 2009 19:21:46 +0000 (UTC)
commit 88bb07571319a0247ace704f1fbe6e98d9efc08c
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 9 21:15:35 2009 +0200
Use gtk_widget_get_window() instead of widget->window
plug-ins/ifs-compose/ifs-compose.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plug-ins/ifs-compose/ifs-compose.c b/plug-ins/ifs-compose/ifs-compose.c
index f58194e..997b284 100644
--- a/plug-ins/ifs-compose/ifs-compose.c
+++ b/plug-ins/ifs-compose/ifs-compose.c
@@ -1490,7 +1490,7 @@ design_area_realize (GtkWidget *widget)
GdkDisplay *display = gtk_widget_get_display (widget);
GdkCursor *cursor = gdk_cursor_new_for_display (display,
cursors[ifsDesign->op]);
- gdk_window_set_cursor (widget->window, cursor);
+ gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
gdk_cursor_unref (cursor);
}
@@ -1505,7 +1505,7 @@ design_area_expose (GtkWidget *widget,
if (!ifsDesign->selected_gc)
{
- ifsDesign->selected_gc = gdk_gc_new (ifsDesign->area->window);
+ ifsDesign->selected_gc = gdk_gc_new (gtk_widget_get_window (ifsDesign->area));
gdk_gc_set_line_attributes (ifsDesign->selected_gc, 2,
GDK_LINE_SOLID, GDK_CAP_ROUND,
GDK_JOIN_ROUND);
@@ -1544,7 +1544,7 @@ design_area_expose (GtkWidget *widget,
g_object_unref (layout);
- gdk_draw_drawable (widget->window,
+ gdk_draw_drawable (gtk_widget_get_window (widget),
style->fg_gc[GTK_WIDGET_STATE (widget)],
ifsDesign->pixmap,
event->area.x, event->area.y,
@@ -1573,10 +1573,10 @@ design_area_configure (GtkWidget *widget,
{
g_object_unref (ifsDesign->pixmap);
}
- ifsDesign->pixmap = gdk_pixmap_new (widget->window,
- widget->allocation.width,
- widget->allocation.height,
- -1); /* Is this correct? */
+ ifsDesign->pixmap = gdk_pixmap_new (gtk_widget_get_window (widget),
+ widget->allocation.width,
+ widget->allocation.height,
+ -1); /* Is this correct? */
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]