[rhythmbox] dbus-media-server: don't emit updates for 'all' property values
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] dbus-media-server: don't emit updates for 'all' property values
- Date: Mon, 16 Jan 2012 20:31:01 +0000 (UTC)
commit e17fae5c1e37b2cafceecf8cab75d23d661610cb
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Jan 17 06:30:15 2012 +1000
dbus-media-server: don't emit updates for 'all' property values
We don't actually show these in the object tree, so it's a bit
pointless to emit updates for them.
.../rb-dbus-media-server-plugin.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
index feee551..456d416 100644
--- a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
+++ b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
@@ -984,16 +984,24 @@ prop_model_row_changed_cb (GtkTreeModel *model,
{
char *value;
RBRefString *refstring;
+ gboolean is_all;
GList *l;
gtk_tree_model_get (model, iter,
RHYTHMDB_PROPERTY_MODEL_COLUMN_TITLE, &value,
+ RHYTHMDB_PROPERTY_MODEL_COLUMN_PRIORITY, &is_all,
-1);
+ if (is_all) {
+ g_free (value);
+ return;
+ }
+
refstring = rb_refstring_new (value);
g_free (value);
for (l = prop_data->updated_values; l != NULL; l = l->next) {
if (refstring == (RBRefString *)l->data) {
+ rb_refstring_unref (refstring);
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]