[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:20:25 +0000 (UTC)
commit 83c092bfe2ca8561253400f782874bbd1e5b27c0
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 9 11:20:10 2009 +0200
Use gtk_widget_get_window() instead of widget->window
app/actions/window-commands.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/window-commands.c b/app/actions/window-commands.c
index 757c68f..9c6de2f 100644
--- a/app/actions/window-commands.c
+++ b/app/actions/window-commands.c
@@ -44,11 +44,11 @@ window_close_cmd_callback (GtkAction *action,
if (! GTK_WIDGET_TOPLEVEL (widget))
widget = gtk_widget_get_toplevel (widget);
- if (widget && widget->window)
+ if (widget && gtk_widget_get_window (widget));
{
GdkEvent *event = gdk_event_new (GDK_DELETE);
- event->any.window = g_object_ref (widget->window);
+ event->any.window = g_object_ref (gtk_widget_get_window (widget));
event->any.send_event = TRUE;
gtk_main_do_event (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]