mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-12 20:41:34 +00:00
Only emit ::trash-state-changed when the state actually changes.
* libnautilus-private/nautilus-trash-monitor.c (update_info_cb): Only emit ::trash-state-changed when the state actually changes. svn path=/trunk/; revision=14856
This commit is contained in:
parent
5a4f860df8
commit
9665b199bd
|
@ -1,3 +1,10 @@
|
|||
2009-01-13 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 567460 – NautilusTrashMonitor emits trash-state-changed too often
|
||||
|
||||
* libnautilus-private/nautilus-trash-monitor.c (update_info_cb):
|
||||
Only emit ::trash-state-changed when the state actually changes.
|
||||
|
||||
2009-01-13 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* src/nautilus-navigation-window-ui.xml:
|
||||
|
|
|
@ -122,6 +122,7 @@ update_info_cb (GObject *source_object,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (trash_monitor->details->empty != empty) {
|
||||
trash_monitor->details->empty = empty;
|
||||
|
||||
/* trash got empty or full, notify everyone who cares */
|
||||
|
@ -129,6 +130,7 @@ update_info_cb (GObject *source_object,
|
|||
signals[TRASH_STATE_CHANGED], 0,
|
||||
trash_monitor->details->empty);
|
||||
}
|
||||
}
|
||||
g_object_unref (info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue