diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-11-05 04:53:48 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-11-05 04:53:48 +0000 |
commit | e18151212d3326dbf04797c6d5300fb1211ee875 (patch) | |
tree | 1ca56d6a4227efdb653cc8e2b2cbedbbc8de3d88 /x11/gnome-applets/files/patch-drivemount_drive-button.c | |
parent | Add bsdav 1.3, BSD native set of programs for audio and video reading (diff) |
Presenting GNOME 2.12 for FreeBSD. The release is chock full of bug fixes
and new features. Don't believe me? Then see for yourself at
http://www.gnome.org/start/2.12/notes/en/.
DO NOT USE portupgrade by itself to upgrade to GNOME 2.12. Instead, use
the gnome_upgrade.sh script from
http://www.marcuscom.com/downloads/gnome_upgrade212.sh. This script will
circumvent some potential pitfalls users can see if they use portupgrade
by itself.
In keeping with tradition, GNOME 2.12 for FreeBSD comes with a special
splash screen. The winner of this release's contest is
Dominique Goncalves <dominique.goncalves@gmail.com>. His splash screen
was inspired by http://art.gnome.org/contests/2.12-splash/83.
The FreeBSD GNOME Team would lank to thank the following users for
their contributions to this release:
Matthew Luckie <mjl@luckie.org.nz>
ade
sajd on #freebsd-gnome
Caelian on #freebsd-gnome
mnag
Yasuda Keisuke <kysd@po.harenet.ne.jp>
Mark Hobden <markhobden@gmail.com>
Sergey Akifyev <asa@agava.com>
Andreas Kohn
For more information on GNOME on FreeBSD, checkout
http://www.FreeBSD.org/gnome/. The 2.12 documentation will be
posted shortly.
Diffstat (limited to 'x11/gnome-applets/files/patch-drivemount_drive-button.c')
-rw-r--r-- | x11/gnome-applets/files/patch-drivemount_drive-button.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x11/gnome-applets/files/patch-drivemount_drive-button.c b/x11/gnome-applets/files/patch-drivemount_drive-button.c new file mode 100644 index 000000000000..f26e3121ee4b --- /dev/null +++ b/x11/gnome-applets/files/patch-drivemount_drive-button.c @@ -0,0 +1,48 @@ +--- drivemount/drive-button.c.orig Tue Aug 23 05:16:27 2005 ++++ drivemount/drive-button.c Tue Aug 23 20:37:43 2005 +@@ -24,6 +24,7 @@ + # include <config.h> + #endif + ++#include <string.h> + #include "drive-button.h" + #include <glib/gi18n.h> + #include <gdk/gdkkeysyms.h> +@@ -710,11 +711,13 @@ run_command (DriveButton *self, const ch + + GList *volumes; + GnomeVFSVolume *volume; ++ char *uri; ++ char *mount_path; + + volumes = gnome_vfs_drive_get_mounted_volumes (self->drive); + volume = GNOME_VFS_VOLUME (volumes->data); +- char *uri = gnome_vfs_volume_get_activation_uri (volume); +- char *mount_path = gnome_vfs_get_local_path_from_uri (uri); ++ uri = gnome_vfs_volume_get_activation_uri (volume); ++ mount_path = gnome_vfs_get_local_path_from_uri (uri); + g_free (uri); + + gnome_vfs_drive_get_display_name (self->drive); +@@ -794,6 +797,11 @@ drive_button_ensure_popup (DriveButton * + char *display_name, *tmp, *label; + int action; + GtkWidget *item; ++ GList *volumes; ++ GnomeVFSVolume *volume = NULL; ++ GnomeVFSDeviceType volume_type; ++ GCallback callback; ++ const char *action_icon = GTK_STOCK_OPEN; + + if (self->popup_menu) return; + +@@ -869,8 +877,7 @@ drive_button_ensure_popup (DriveButton * + g_free (display_name); + display_name = tmp; + +- GCallback callback = G_CALLBACK (open_drive); +- const char *action_icon = GTK_STOCK_OPEN; ++ callback = G_CALLBACK (open_drive); + + switch (device_type) { + case GNOME_VFS_DEVICE_TYPE_VIDEO_DVD: |