[gedit] Use gedit_osx_show_url on OS X for update plugin



commit 9b79f08b726fb9207b61ef12fa47bed01c9ed8d4
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Nov 8 21:11:36 2009 +0100

    Use gedit_osx_show_url on OS X for update plugin

 plugins/checkupdate/gedit-check-update-plugin.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/plugins/checkupdate/gedit-check-update-plugin.c b/plugins/checkupdate/gedit-check-update-plugin.c
index 708b3bf..87a7042 100644
--- a/plugins/checkupdate/gedit-check-update-plugin.c
+++ b/plugins/checkupdate/gedit-check-update-plugin.c
@@ -45,6 +45,10 @@
 #define FILE_REGEX "gedit\\-[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9]+)?\\.dmg"
 #endif
 
+#ifdef OS_OSX
+#include "gedit/osx/gedit-osx.h"
+#endif
+
 #define GEDIT_CHECK_UPDATE_PLUGIN_GET_PRIVATE(object) \
 				(G_TYPE_INSTANCE_GET_PRIVATE ((object),	\
 				GEDIT_TYPE_CHECK_UPDATE_PLUGIN,		\
@@ -175,12 +179,15 @@ on_response_cb (GtkWidget   *infobar,
 		gchar *url;
 		
 		url = g_object_get_data (G_OBJECT (window), WINDOW_DATA_KEY);
-	
+
+#ifdef OS_OSX
+		gedit_osx_show_url (url);
+#else
 		gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (window)),
 			      url, 
 			      GDK_CURRENT_TIME,
 			      &error);
-
+#endif
 		if (error != NULL)
 		{
 			GtkWidget *dialog;



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