~ubuntu-branches/ubuntu/utopic/anjuta/utopic-proposed

« back to all changes in this revision

Viewing changes to libanjuta/resources.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.4.14)
  • Revision ID: package-import@ubuntu.com-20140712151739-p9xy0ntlgbpm2nxq
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
void
259
259
anjuta_res_help_search (const gchar * word)
260
260
{
 
261
        GError *error = NULL;
 
262
        gchar **argv = g_new0 (gchar *, 4);
 
263
 
 
264
        argv[0] = g_strdup ("devhelp");
 
265
 
261
266
        if(word)
262
267
        {
 
268
                argv[1] = g_strdup ("-s");
 
269
                argv[2] = g_strdup (word);
 
270
 
263
271
                fprintf(stderr, "Word is %s\n", word);
264
 
                if(fork()==0)
265
 
                {
266
 
                        execlp("devhelp", "devhelp", "-s", word, NULL);
267
 
                        g_warning (_("Cannot execute command: \"%s\""), "devhelp");
268
 
                        _exit(1);
269
 
                }
270
272
        }
271
 
        else
 
273
 
 
274
        if (g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
 
275
                           NULL, NULL, NULL, &error))
272
276
        {
273
 
                if(fork()==0)
274
 
                {
275
 
                        execlp("devhelp", "devhelp", NULL);
276
 
                        g_warning (_("Cannot execute command: \"%s\""), "devhelp");
277
 
                        _exit(1);
278
 
                }
 
277
                g_warning (_("Cannot execute command \"%s\": %s"), "devhelp", error->message);
 
278
                g_error_free (error);
279
279
        }
 
280
 
 
281
        g_strfreev (argv);
280
282
}
281
283
 
282
284
void