anjuta r3797 - in trunk: . libanjuta plugins/project-import



Author: naba
Date: Wed Mar 26 20:58:22 2008
New Revision: 3797
URL: http://svn.gnome.org/viewvc/anjuta?rev=3797&view=rev

Log:
	* libanjuta/resources.c (anjuta_res_url_show): Get rid of gnome_url_open.
	* plugins/project-import/project-import.c (on_import_cancel): Remove
	stray GnomeDruid variable.


Modified:
   trunk/ChangeLog
   trunk/libanjuta/resources.c
   trunk/plugins/project-import/project-import.c

Modified: trunk/libanjuta/resources.c
==============================================================================
--- trunk/libanjuta/resources.c	(original)
+++ trunk/libanjuta/resources.c	Wed Mar 26 20:58:22 2008
@@ -32,7 +32,9 @@
 #	include <config.h>
 #endif
 
-#include <gnome.h>
+#include <unistd.h>
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
 
 #include <libanjuta/resources.h>
 
@@ -276,8 +278,24 @@
 	}
 }
 
-void anjuta_res_url_show (const char *url)
+void anjuta_res_url_show (const gchar *url)
 {
-	GError *error = NULL;
-	gnome_url_show (url, &error);
+	gchar *open[3];
+
+	if (g_find_program_in_path ("xdg-open"))
+	{
+		open[0] = "xdg-open";
+	}
+	else return;
+	
+	open[1] = (gchar *)url;
+	open[2] = NULL;
+					
+	gdk_spawn_on_screen (gdk_screen_get_default (),
+			     NULL,
+			     open,
+			     NULL,
+			     G_SPAWN_SEARCH_PATH,
+			     NULL,
+			     NULL, NULL, NULL);
 }

Modified: trunk/plugins/project-import/project-import.c
==============================================================================
--- trunk/plugins/project-import/project-import.c	(original)
+++ trunk/plugins/project-import/project-import.c	Wed Mar 26 20:58:22 2008
@@ -32,7 +32,7 @@
 static GObjectClass *parent_class = NULL;
 
 static void
-on_import_cancel (GnomeDruid* druid, ProjectImport* pi)
+on_import_cancel (GtkAssistant* assistant, ProjectImport* pi)
 {
 	g_object_unref (G_OBJECT(pi));
 }



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