glib r7339 - trunk/gio
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7339 - trunk/gio
- Date: Mon, 11 Aug 2008 19:45:08 +0000 (UTC)
Author: neo
Date: Mon Aug 11 19:45:08 2008
New Revision: 7339
URL: http://svn.gnome.org/viewvc/glib?rev=7339&view=rev
Log:
2008-08-11 Sven Neumann <sven gimp org>
* gfilenamecompleter.c
* glocaldirectorymonitor.c
* gmountoperation.c
* gunionvolumemonitor.c
* gunixmount.c
* gunixmounts.c
* gunixvolume.c
* gunixvolumemonitor.c
* gvolumemonitor.c
* gwin32mount.c
* gwin32volumemonitor.c: use canonical signal names.
Modified:
trunk/gio/ChangeLog
trunk/gio/gfilenamecompleter.c
trunk/gio/glocaldirectorymonitor.c
trunk/gio/gmountoperation.c
trunk/gio/gunionvolumemonitor.c
trunk/gio/gunixmount.c
trunk/gio/gunixmounts.c
trunk/gio/gunixvolume.c
trunk/gio/gunixvolumemonitor.c
trunk/gio/gvolumemonitor.c
trunk/gio/gwin32mount.c
trunk/gio/gwin32volumemonitor.c
Modified: trunk/gio/gfilenamecompleter.c
==============================================================================
--- trunk/gio/gfilenamecompleter.c (original)
+++ trunk/gio/gfilenamecompleter.c Mon Aug 11 19:45:08 2008
@@ -104,7 +104,7 @@
*
* Emitted when the file name completion information comes available.
**/
- signals[GOT_COMPLETION_DATA] = g_signal_new (I_("got_completion_data"),
+ signals[GOT_COMPLETION_DATA] = g_signal_new (I_("got-completion-data"),
G_TYPE_FILENAME_COMPLETER,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GFilenameCompleterClass, got_completion_data),
Modified: trunk/gio/glocaldirectorymonitor.c
==============================================================================
--- trunk/gio/glocaldirectorymonitor.c (original)
+++ trunk/gio/glocaldirectorymonitor.c Mon Aug 11 19:45:08 2008
@@ -130,7 +130,7 @@
g_unix_mount_free (mount);
local_monitor->mount_monitor = g_unix_mount_monitor_new ();
- g_signal_connect_object (local_monitor->mount_monitor, "mounts_changed",
+ g_signal_connect_object (local_monitor->mount_monitor, "mounts-changed",
G_CALLBACK (mounts_changed), local_monitor, 0);
#endif
}
Modified: trunk/gio/gmountoperation.c
==============================================================================
--- trunk/gio/gmountoperation.c (original)
+++ trunk/gio/gmountoperation.c Mon Aug 11 19:45:08 2008
@@ -251,7 +251,7 @@
* Emitted when a mount operation asks the user for a password.
*/
signals[ASK_PASSWORD] =
- g_signal_new (I_("ask_password"),
+ g_signal_new (I_("ask-password"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GMountOperationClass, ask_password),
@@ -270,7 +270,7 @@
* choices for the user to choose from.
*/
signals[ASK_QUESTION] =
- g_signal_new (I_("ask_question"),
+ g_signal_new (I_("ask-question"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GMountOperationClass, ask_question),
Modified: trunk/gio/gunionvolumemonitor.c
==============================================================================
--- trunk/gio/gunionvolumemonitor.c (original)
+++ trunk/gio/gunionvolumemonitor.c Mon Aug 11 19:45:08 2008
@@ -248,7 +248,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "volume_added",
+ "volume-added",
child_volume);
}
@@ -258,7 +258,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "volume_removed",
+ "volume-removed",
child_volume);
}
@@ -268,7 +268,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "volume_changed",
+ "volume-changed",
child_volume);
}
@@ -278,7 +278,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "mount_added",
+ "mount-added",
child_mount);
}
@@ -288,7 +288,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "mount_removed",
+ "mount-removed",
child_mount);
}
@@ -298,7 +298,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "mount_pre_unmount",
+ "mount-pre-unmount",
child_mount);
}
@@ -309,7 +309,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "mount_changed",
+ "mount-changed",
child_mount);
}
@@ -319,7 +319,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "drive_connected",
+ "drive-connected",
child_drive);
}
@@ -329,7 +329,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "drive_disconnected",
+ "drive-disconnected",
child_drive);
}
@@ -339,7 +339,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "drive_changed",
+ "drive-changed",
child_drive);
}
@@ -349,7 +349,7 @@
GUnionVolumeMonitor *union_monitor)
{
g_signal_emit_by_name (union_monitor,
- "drive_eject_button",
+ "drive-eject-button",
child_drive);
}
@@ -364,17 +364,17 @@
g_list_prepend (union_monitor->monitors,
g_object_ref (volume_monitor));
- g_signal_connect (volume_monitor, "volume_added", (GCallback)child_volume_added, union_monitor);
- g_signal_connect (volume_monitor, "volume_removed", (GCallback)child_volume_removed, union_monitor);
- g_signal_connect (volume_monitor, "volume_changed", (GCallback)child_volume_changed, union_monitor);
- g_signal_connect (volume_monitor, "mount_added", (GCallback)child_mount_added, union_monitor);
- g_signal_connect (volume_monitor, "mount_removed", (GCallback)child_mount_removed, union_monitor);
- g_signal_connect (volume_monitor, "mount_pre_unmount", (GCallback)child_mount_pre_unmount, union_monitor);
- g_signal_connect (volume_monitor, "mount_changed", (GCallback)child_mount_changed, union_monitor);
- g_signal_connect (volume_monitor, "drive_connected", (GCallback)child_drive_connected, union_monitor);
- g_signal_connect (volume_monitor, "drive_disconnected", (GCallback)child_drive_disconnected, union_monitor);
- g_signal_connect (volume_monitor, "drive_changed", (GCallback)child_drive_changed, union_monitor);
- g_signal_connect (volume_monitor, "drive_eject_button", (GCallback)child_drive_eject_button, union_monitor);
+ g_signal_connect (volume_monitor, "volume-added", (GCallback)child_volume_added, union_monitor);
+ g_signal_connect (volume_monitor, "volume-removed", (GCallback)child_volume_removed, union_monitor);
+ g_signal_connect (volume_monitor, "volume-changed", (GCallback)child_volume_changed, union_monitor);
+ g_signal_connect (volume_monitor, "mount-added", (GCallback)child_mount_added, union_monitor);
+ g_signal_connect (volume_monitor, "mount-removed", (GCallback)child_mount_removed, union_monitor);
+ g_signal_connect (volume_monitor, "mount-pre-unmount", (GCallback)child_mount_pre_unmount, union_monitor);
+ g_signal_connect (volume_monitor, "mount-changed", (GCallback)child_mount_changed, union_monitor);
+ g_signal_connect (volume_monitor, "drive-connected", (GCallback)child_drive_connected, union_monitor);
+ g_signal_connect (volume_monitor, "drive-disconnected", (GCallback)child_drive_disconnected, union_monitor);
+ g_signal_connect (volume_monitor, "drive-changed", (GCallback)child_drive_changed, union_monitor);
+ g_signal_connect (volume_monitor, "drive-eject-button", (GCallback)child_drive_eject_button, union_monitor);
}
static void
Modified: trunk/gio/gunixmount.c
==============================================================================
--- trunk/gio/gunixmount.c (original)
+++ trunk/gio/gunixmount.c Mon Aug 11 19:45:08 2008
@@ -154,7 +154,7 @@
/* TODO: Emit changed in idle to avoid locking issues */
g_signal_emit_by_name (mount, "changed");
if (mount->volume_monitor != NULL)
- g_signal_emit_by_name (mount->volume_monitor, "mount_changed", mount);
+ g_signal_emit_by_name (mount->volume_monitor, "mount-changed", mount);
}
}
Modified: trunk/gio/gunixmounts.c
==============================================================================
--- trunk/gio/gunixmounts.c (original)
+++ trunk/gio/gunixmounts.c Mon Aug 11 19:45:08 2008
@@ -1149,7 +1149,7 @@
* Emitted when the unix mounts have changed.
**/
signals[MOUNTS_CHANGED] =
- g_signal_new ("mounts_changed",
+ g_signal_new ("mounts-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1163,7 +1163,7 @@
* Emitted when the unix mount points have changed.
**/
signals[MOUNTPOINTS_CHANGED] =
- g_signal_new ("mountpoints_changed",
+ g_signal_new ("mountpoints-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
Modified: trunk/gio/gunixvolume.c
==============================================================================
--- trunk/gio/gunixvolume.c (original)
+++ trunk/gio/gunixvolume.c Mon Aug 11 19:45:08 2008
@@ -190,7 +190,7 @@
/* TODO: Emit changed in idle to avoid locking issues */
g_signal_emit_by_name (volume, "changed");
if (volume->volume_monitor != NULL)
- g_signal_emit_by_name (volume->volume_monitor, "volume_changed", volume);
+ g_signal_emit_by_name (volume->volume_monitor, "volume-changed", volume);
}
/**
@@ -209,7 +209,7 @@
/* TODO: Emit changed in idle to avoid locking issues */
g_signal_emit_by_name (volume, "changed");
if (volume->volume_monitor != NULL)
- g_signal_emit_by_name (volume->volume_monitor, "volume_changed", volume);
+ g_signal_emit_by_name (volume->volume_monitor, "volume-changed", volume);
}
}
Modified: trunk/gio/gunixvolumemonitor.c
==============================================================================
--- trunk/gio/gunixvolumemonitor.c (original)
+++ trunk/gio/gunixvolumemonitor.c Mon Aug 11 19:45:08 2008
@@ -210,11 +210,11 @@
unix_monitor->mount_monitor = g_unix_mount_monitor_new ();
g_signal_connect (unix_monitor->mount_monitor,
- "mounts_changed", G_CALLBACK (mounts_changed),
+ "mounts-changed", G_CALLBACK (mounts_changed),
unix_monitor);
g_signal_connect (unix_monitor->mount_monitor,
- "mountpoints_changed", G_CALLBACK (mountpoints_changed),
+ "mountpoints-changed", G_CALLBACK (mountpoints_changed),
unix_monitor);
update_volumes (unix_monitor);
@@ -347,7 +347,7 @@
{
_g_unix_volume_disconnected (volume);
monitor->volumes = g_list_remove (monitor->volumes, volume);
- g_signal_emit_by_name (monitor, "volume_removed", volume);
+ g_signal_emit_by_name (monitor, "volume-removed", volume);
g_signal_emit_by_name (volume, "removed");
g_object_unref (volume);
}
@@ -361,7 +361,7 @@
if (volume)
{
monitor->volumes = g_list_prepend (monitor->volumes, volume);
- g_signal_emit_by_name (monitor, "volume_added", volume);
+ g_signal_emit_by_name (monitor, "volume-added", volume);
}
}
@@ -400,7 +400,7 @@
{
_g_unix_mount_unmounted (mount);
monitor->mounts = g_list_remove (monitor->mounts, mount);
- g_signal_emit_by_name (monitor, "mount_removed", mount);
+ g_signal_emit_by_name (monitor, "mount-removed", mount);
g_signal_emit_by_name (mount, "unmounted");
g_object_unref (mount);
}
@@ -417,7 +417,7 @@
if (mount)
{
monitor->mounts = g_list_prepend (monitor->mounts, mount);
- g_signal_emit_by_name (monitor, "mount_added", mount);
+ g_signal_emit_by_name (monitor, "mount-added", mount);
}
}
Modified: trunk/gio/gvolumemonitor.c
==============================================================================
--- trunk/gio/gvolumemonitor.c (original)
+++ trunk/gio/gvolumemonitor.c Mon Aug 11 19:45:08 2008
@@ -87,7 +87,7 @@
*
* Emitted when a mountable volume is added to the system.
**/
- signals[VOLUME_ADDED] = g_signal_new (I_("volume_added"),
+ signals[VOLUME_ADDED] = g_signal_new (I_("volume-added"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, volume_added),
@@ -102,7 +102,7 @@
*
* Emitted when a mountable volume is removed from the system.
**/
- signals[VOLUME_REMOVED] = g_signal_new (I_("volume_removed"),
+ signals[VOLUME_REMOVED] = g_signal_new (I_("volume-removed"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, volume_removed),
@@ -117,7 +117,7 @@
*
* Emitted when mountable volume is changed.
**/
- signals[VOLUME_CHANGED] = g_signal_new (I_("volume_changed"),
+ signals[VOLUME_CHANGED] = g_signal_new (I_("volume-changed"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, volume_changed),
@@ -132,7 +132,7 @@
*
* Emitted when a mount is added.
**/
- signals[MOUNT_ADDED] = g_signal_new (I_("mount_added"),
+ signals[MOUNT_ADDED] = g_signal_new (I_("mount-added"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_added),
@@ -147,7 +147,7 @@
*
* Emitted when a mount is removed.
**/
- signals[MOUNT_REMOVED] = g_signal_new (I_("mount_removed"),
+ signals[MOUNT_REMOVED] = g_signal_new (I_("mount-removed"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_removed),
@@ -162,7 +162,7 @@
*
* Emitted when a mount is about to be removed.
**/
- signals[MOUNT_PRE_UNMOUNT] = g_signal_new (I_("mount_pre_unmount"),
+ signals[MOUNT_PRE_UNMOUNT] = g_signal_new (I_("mount-pre-unmount"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_pre_unmount),
@@ -177,7 +177,7 @@
*
* Emitted when a mount changes.
**/
- signals[MOUNT_CHANGED] = g_signal_new (I_("mount_changed"),
+ signals[MOUNT_CHANGED] = g_signal_new (I_("mount-changed"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_changed),
@@ -192,7 +192,7 @@
*
* Emitted when a drive is connected to the system.
**/
- signals[DRIVE_CONNECTED] = g_signal_new (I_("drive_connected"),
+ signals[DRIVE_CONNECTED] = g_signal_new (I_("drive-connected"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_connected),
@@ -207,7 +207,7 @@
*
* Emitted when a drive is disconnected from the system.
**/
- signals[DRIVE_DISCONNECTED] = g_signal_new (I_("drive_disconnected"),
+ signals[DRIVE_DISCONNECTED] = g_signal_new (I_("drive-disconnected"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_disconnected),
@@ -222,7 +222,7 @@
*
* Emitted when a drive changes.
**/
- signals[DRIVE_CHANGED] = g_signal_new (I_("drive_changed"),
+ signals[DRIVE_CHANGED] = g_signal_new (I_("drive-changed"),
G_TYPE_VOLUME_MONITOR,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_changed),
@@ -239,7 +239,7 @@
*
* Since: 2.18
**/
- signals[DRIVE_EJECT_BUTTON] = g_signal_new (I_("drive_eject_button"),
+ 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),
Modified: trunk/gio/gwin32mount.c
==============================================================================
--- trunk/gio/gwin32mount.c (original)
+++ trunk/gio/gwin32mount.c Mon Aug 11 19:45:08 2008
@@ -177,7 +177,7 @@
/* TODO: Emit changed in idle to avoid locking issues */
g_signal_emit_by_name (mount, "changed");
if (mount->volume_monitor != NULL)
- g_signal_emit_by_name (mount->volume_monitor, "mount_changed", mount);
+ g_signal_emit_by_name (mount->volume_monitor, "mount-changed", mount);
}
}
Modified: trunk/gio/gwin32volumemonitor.c
==============================================================================
--- trunk/gio/gwin32volumemonitor.c (original)
+++ trunk/gio/gwin32volumemonitor.c Mon Aug 11 19:45:08 2008
@@ -273,11 +273,11 @@
unix_monitor->mount_monitor = g_win32_mount_monitor_new ();
g_signal_connect (win32_monitor->mount_monitor,
- "mounts_changed", G_CALLBACK (mounts_changed),
+ "mounts-changed", G_CALLBACK (mounts_changed),
win32_monitor);
g_signal_connect (win32_monitor->mount_monitor,
- "mountpoints_changed", G_CALLBACK (mountpoints_changed),
+ "mountpoints-changed", G_CALLBACK (mountpoints_changed),
win32_monitor);
update_volumes (win32_monitor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]