[gedit] Fix building with -DGSEAL_ENABLE



commit 8fe3f631c4866df594abc6b01ac2ca213dd4ad06
Author: Garrett Regier <alias301 gmail com>
Date:   Sat May 29 08:33:13 2010 -0700

    Fix building with -DGSEAL_ENABLE

 gedit/gedit-dbus.c |    4 ++--
 gedit/gedit-view.c |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-dbus.c b/gedit/gedit-dbus.c
index 51c08fd..f0d47c4 100644
--- a/gedit/gedit-dbus.c
+++ b/gedit/gedit-dbus.c
@@ -920,10 +920,10 @@ set_interaction_time_and_present (GeditWindow *window,
 #ifdef GDK_WINDOWING_X11
 	if (startup_time <= 0)
 	{
-		startup_time = gdk_x11_get_server_time (GTK_WIDGET (window)->window);
+		startup_time = gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (window)));
 	}
 
-	gdk_x11_window_set_user_time (GTK_WIDGET (window)->window, startup_time);
+	gdk_x11_window_set_user_time (gtk_widget_get_window (GTK_WIDGET (window)), startup_time);
 #endif
 
 	gtk_window_present (GTK_WINDOW (window));
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 4e0c6be..a6d5208 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -1957,7 +1957,9 @@ gedit_view_drag_motion (GtkWidget      *widget,
 	/* If this is a URL, deal with it here */
 	if (drag_get_uri_target (widget, context) != GDK_NONE) 
 	{
-		gdk_drag_status (context, context->suggested_action, timestamp);
+		gdk_drag_status (context,
+				 gdk_drag_context_get_suggested_action (context),
+				 timestamp);
 		result = TRUE;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]