~unity-team/unity/5.0

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DeviceLauncherIcon.cpp

  • Committer: Tarmac
  • Author(s): Andrea Azzarone
  • Date: 2012-10-09 11:16:40 UTC
  • mfrom: (2403.2.1 5.0)
  • Revision ID: tarmac-20121009111640-mf1stzqffdzji45d
Use GMountOperation in g_volume_mount. GMountOperation provides a mechanism for interacting with the use.. Fixes: https://bugs.launchpad.net/bugs/713432. Approved by Marco Trevisan (Treviño).

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
  if (G_IS_MOUNT(mount.RawPtr()))
301
301
    ShowMount(mount);
302
302
  else
 
303
  {
 
304
    glib::Object<GMountOperation> mount_op(gtk_mount_operation_new(nullptr));
 
305
 
303
306
    g_volume_mount(volume_,
304
307
                   (GMountMountFlags)0,
305
 
                   NULL,
 
308
                   mount_op,
306
309
                   NULL,
307
310
                   (GAsyncReadyCallback)&DeviceLauncherIcon::OnMountReady,
308
311
                   this);
 
312
  }
309
313
}
310
314
 
311
315
void DeviceLauncherIcon::OnMountReady(GObject* object,