nautilus r14856 - in trunk: . libnautilus-private
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14856 - in trunk: . libnautilus-private
- Date: Tue, 13 Jan 2009 15:42:34 +0000 (UTC)
Author: matthiasc
Date: Tue Jan 13 15:42:34 2009
New Revision: 14856
URL: http://svn.gnome.org/viewvc/nautilus?rev=14856&view=rev
Log:
* libnautilus-private/nautilus-trash-monitor.c (update_info_cb):
Only emit ::trash-state-changed when the state actually changes.
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-trash-monitor.c
Modified: trunk/libnautilus-private/nautilus-trash-monitor.c
==============================================================================
--- trunk/libnautilus-private/nautilus-trash-monitor.c (original)
+++ trunk/libnautilus-private/nautilus-trash-monitor.c Tue Jan 13 15:42:34 2009
@@ -122,12 +122,14 @@
}
}
}
- trash_monitor->details->empty = empty;
+ if (trash_monitor->details->empty != empty) {
+ trash_monitor->details->empty = empty;
- /* trash got empty or full, notify everyone who cares */
- g_signal_emit (trash_monitor,
- signals[TRASH_STATE_CHANGED], 0,
- trash_monitor->details->empty);
+ /* trash got empty or full, notify everyone who cares */
+ g_signal_emit (trash_monitor,
+ signals[TRASH_STATE_CHANGED], 0,
+ trash_monitor->details->empty);
+ }
}
g_object_unref (info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]