summaryrefslogtreecommitdiff
path: root/gio/gvolumemonitor.c
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2008-07-07 02:23:52 +0000
committerDavid Zeuthen <davidz@src.gnome.org>2008-07-07 02:23:52 +0000
commit7a5a2be92b0502deb171830020124bc6c4b9f65e (patch)
tree8da053c357e0a805a41d10dbcd4de425c64e8320 /gio/gvolumemonitor.c
parent532e476d62dbc8a8ec2c2a8023588cc7f68af053 (diff)
downloadglib-7a5a2be92b0502deb171830020124bc6c4b9f65e.tar.gz
Export the eject-button signal on the volume monitor class (#541794).
2008-07-06 David Zeuthen <davidz@redhat.com> * gvolumemonitor.[ch]: * gunionvolumemonitor.c: Export the eject-button signal on the volume monitor class (#541794). svn path=/trunk/; revision=7168
Diffstat (limited to 'gio/gvolumemonitor.c')
-rw-r--r--gio/gvolumemonitor.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gio/gvolumemonitor.c b/gio/gvolumemonitor.c
index 8b9560e7b..e14af1618 100644
--- a/gio/gvolumemonitor.c
+++ b/gio/gvolumemonitor.c
@@ -56,6 +56,7 @@ enum {
DRIVE_CONNECTED,
DRIVE_DISCONNECTED,
DRIVE_CHANGED,
+ DRIVE_EJECT_BUTTON,
LAST_SIGNAL
};
@@ -229,6 +230,23 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_DRIVE);
+ /**
+ * GVolumeMonitor::drive-eject-button:
+ * @volume_monitor: The volume monitor emitting the signal.
+ * @drive: the drive where the eject button was pressed
+ *
+ * Emitted when the eject button is pressed on @drive.
+ *
+ * Since: 2.18
+ **/
+ signals[DRIVE_EJECT_BUTTON] = g_signal_new (I_("drive_eject_button"),
+ G_TYPE_VOLUME_MONITOR,
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GVolumeMonitorClass, drive_eject_button),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
+ G_TYPE_NONE, 1, G_TYPE_DRIVE);
+
}
static void