gtranslator r3527 - in trunk: . src
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3527 - in trunk: . src
- Date: Wed, 26 Mar 2008 11:59:58 +0000 (GMT)
Author: icq
Date: Wed Mar 26 11:59:57 2008
New Revision: 3527
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3527&view=rev
Log:
2008-03-25 Ignacio Casal Quinteiro <nacho resa gmail com>
* src/utils.c:
Minor fixes in gtranslator_utils_activate_url func.
Modified:
trunk/ChangeLog
trunk/src/utils.c
Modified: trunk/src/utils.c
==============================================================================
--- trunk/src/utils.c (original)
+++ trunk/src/utils.c Wed Mar 26 11:59:57 2008
@@ -502,21 +502,16 @@
const gchar *url,
gpointer data)
{
- gchar **open;
- gchar *program;
- GPtrArray *array;
+ gchar *open[3];
if (g_find_program_in_path ("xdg-open"))
{
- program = g_strdup ("xdg-open");
+ open[0] = "xdg-open";
}
else return;
- array = g_ptr_array_new ();
- g_ptr_array_add (array, program);
- g_ptr_array_add (array, g_strdup (url));
-
- open = (gchar **)g_ptr_array_free (array, FALSE);
+ open[1] = (gchar *)url;
+ open[2] = NULL;
gdk_spawn_on_screen (gdk_screen_get_default (),
NULL,
@@ -525,8 +520,6 @@
G_SPAWN_SEARCH_PATH,
NULL,
NULL, NULL, NULL);
-
- g_strfreev (open);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]