~ubuntu-branches/ubuntu/lucid/vinagre/lucid

« back to all changes in this revision

Viewing changes to vinagre/vinagre-bookmarks-migration.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-02-09 16:25:33 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100209162533-7p06h6l947irsdyp
Tags: 2.29.90-0ubuntu1
* New upstream release:
 - Features
   + Improved SSH tunneling.
   + Show a message in the first run explaining menu accelerators and
     keyboard shortcuts behavior in Vinagre.
   + Store window size, position, panel state, etc in the XDG_CACHE_DIR
     instead of GConf.
   + Enable the username field for SSH connections.
   + Option to keep the aspect ratio when using scaling.
   + Modernize autotools.
   + SSH plugin uses the username provided from mdns (Avahi).
 - Fixes
   + Fix build on Solaris (Halton Huo).
   + Drop 1px line at toolbar in fullscreen mode.
   + Minor fixes
 - UI translations
* debian/control.in:
  - bump intltool build-dep
  - libx11-dev and libdbus-glib-1-dev build-dep

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
  return entries;
204
204
}
205
205
 
206
 
static gboolean
207
 
create_dir (const gchar *filename, GError **error)
208
 
{
209
 
  GFile    *file, *parent;
210
 
  gboolean result;
211
 
  gchar    *path;
212
 
 
213
 
  file   = g_file_new_for_path (filename);
214
 
  parent = g_file_get_parent (file);
215
 
  path   = g_file_get_path (parent);
216
 
  result = TRUE;
217
 
 
218
 
  if (!g_file_test (path, G_FILE_TEST_EXISTS))
219
 
    result = g_file_make_directory_with_parents (parent, NULL, error);
220
 
 
221
 
  g_object_unref (file);
222
 
  g_object_unref (parent);
223
 
  g_free (path);
224
 
  return result;
225
 
}
226
 
 
227
206
void
228
207
vinagre_bookmarks_migration_migrate (const gchar *filename)
229
208
{
233
212
  GSList   *entries;
234
213
 
235
214
  error  = NULL;
236
 
  if (!create_dir (filename, &error))
 
215
  if (!vinagre_utils_create_dir (filename, &error))
237
216
    {
238
217
      g_warning (_("Error while migrating bookmarks: %s"), error?error->message:_("Failed to create the directory"));
239
218
      if (error)