Merge lp:~jassmith/netbook-remix-launcher/glib-fix into lp:netbook-remix-launcher

Proposed by Jason Smith
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jassmith/netbook-remix-launcher/glib-fix
Merge into: lp:netbook-remix-launcher
Diff against target: None lines
To merge this branch: bzr merge lp:~jassmith/netbook-remix-launcher/glib-fix
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Review via email: mp+11176@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jason Smith (jassmith) wrote :

Makes netbook-launcher buildable on jaunty (and probably earlier, did not check to see how far back down the glib chain this goes now).

Revision history for this message
David Barth (dbarth) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2009-09-03 11:56:29 +0000
+++ configure.ac 2009-09-04 02:00:33 +0000
@@ -67,7 +67,7 @@
67 clutter-gtk-0.10 >= 0.10.067 clutter-gtk-0.10 >= 0.10.0
68 clutter-x11-1.0 >= 1.0.068 clutter-x11-1.0 >= 1.0.0
69 clutk-0.269 clutk-0.2
70 glib-2.0 >= 2.2170 glib-2.0 >= 2.20
71 gthread-2.071 gthread-2.0
72 gobject-2.072 gobject-2.0
73 gtk+-2.073 gtk+-2.0
7474
=== modified file 'src/nl-volumes-source.c'
--- src/nl-volumes-source.c 2009-08-11 13:34:04 +0000
+++ src/nl-volumes-source.c 2009-09-04 02:00:33 +0000
@@ -437,14 +437,22 @@
437on_volume_ejected (GVolume *volume,437on_volume_ejected (GVolume *volume,
438 GAsyncResult *res)438 GAsyncResult *res)
439{439{
440#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 21
440 g_volume_eject_with_operation_finish (volume, res, NULL);441 g_volume_eject_with_operation_finish (volume, res, NULL);
442#else
443 g_volume_eject_finish (volume, res, NULL);
444#endif
441}445}
442446
443static void447static void
444on_mount_unmounted (GMount *mount,448on_mount_unmounted (GMount *mount,
445 GAsyncResult *res)449 GAsyncResult *res)
446{450{
451#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 21
447 g_mount_unmount_with_operation_finish (mount, res, NULL);452 g_mount_unmount_with_operation_finish (mount, res, NULL);
453#else
454 g_mount_unmount_finish (mount, res, NULL);
455#endif
448}456}
449457
450static void458static void
@@ -454,8 +462,13 @@
454462
455 if (g_volume_can_eject (volume))463 if (g_volume_can_eject (volume))
456 {464 {
465#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 21
457 g_volume_eject_with_operation (volume, 0, NULL, NULL,466 g_volume_eject_with_operation (volume, 0, NULL, NULL,
458 (GAsyncReadyCallback)on_volume_ejected, NULL);467 (GAsyncReadyCallback)on_volume_ejected, NULL);
468#else
469 g_volume_eject (volume, 0, NULL,
470 (GAsyncReadyCallback)on_volume_ejected, NULL);
471#endif
459 }472 }
460 else473 else
461 {474 {
@@ -463,8 +476,13 @@
463476
464 if (!mount)477 if (!mount)
465 return;478 return;
479#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 21
466 g_mount_unmount_with_operation (mount, 0, NULL, NULL,480 g_mount_unmount_with_operation (mount, 0, NULL, NULL,
467 (GAsyncReadyCallback)on_mount_unmounted, NULL);481 (GAsyncReadyCallback)on_mount_unmounted, NULL);
482#else
483 g_mount_unmount (mount, 0, NULL,
484 (GAsyncReadyCallback)on_mount_unmounted, NULL);
485#endif
468 }486 }
469}487}
470488

Subscribers

People subscribed via source and target branches