~ubuntu-branches/debian/sid/xfce4-clipman-plugin/sid

« back to all changes in this revision

Viewing changes to panel-plugin/actions.c

  • Committer: Package Import Robot
  • Author(s): Yves-Alexis Perez
  • Date: 2012-04-09 21:26:50 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20120409212650-u618echcdsndz3ak
Tags: 2:1.2.3-1
* New upstream release.
* debian/rules:
  - build with --parallel.
  - configure with --disable-static and stop removing .a files.
* debian/control:
  - update standards version to 3.9.3.
  - update debhelper build-dep to 9. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (c) 2009-2011 Mike Massonnet <mmassonnet@xfce.org>
 
2
 *  Copyright (c) 2009-2012 Mike Massonnet <mmassonnet@xfce.org>
3
3
 *
4
4
 *  XML parsing based on Xfce4 Panel:
5
5
 *  Copyright (c) 2005 Jasper Huijsmans <jasper@xfce.org>
771
771
 
772
772
  if (!load)
773
773
    {
 
774
      /* Create user directory early to be sure it exists for next actions */
 
775
      GFile *dir = g_file_get_parent (actions->priv->file);
 
776
      g_file_make_directory_with_parents (dir, NULL, NULL);
 
777
      g_object_unref (dir);
 
778
      dir = NULL;
 
779
 
 
780
      /* Load from system wide file */
774
781
      filename = g_strdup (SYSCONFDIR"/xdg/xfce4/panel/xfce4-clipman-actions.xml");
775
782
      load = g_file_get_contents (filename, &data, (gsize*)&size, NULL);
776
783
      g_free (filename);