[rhythmbox] entry-view: emit sort-order notifications only when it actually changes
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] entry-view: emit sort-order notifications only when it actually changes
- Date: Tue, 28 Aug 2012 23:15:42 +0000 (UTC)
commit a92b7e00f5b6ee1ecdfd03dd422a9df8f115a1fb
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Aug 29 09:14:35 2012 +1000
entry-view: emit sort-order notifications only when it actually changes
This cuts out some totally unnecessary GSettings writes on startup.
widgets/rb-entry-view.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/widgets/rb-entry-view.c b/widgets/rb-entry-view.c
index 6866d92..e0cca48 100644
--- a/widgets/rb-entry-view.c
+++ b/widgets/rb-entry-view.c
@@ -1102,9 +1102,6 @@ rb_entry_view_sync_sorting (RBEntryView *view)
else
view->priv->type_ahead_propid = RHYTHMDB_PROP_TITLE;
- rb_debug ("emitting sort order changed");
- g_object_notify (G_OBJECT (view), "sort-order");
-
g_free (column_name);
}
@@ -1181,6 +1178,7 @@ rb_entry_view_set_sorting_type (RBEntryView *view,
g_strfreev (strs);
rb_entry_view_sync_sorting (view);
+ g_object_notify (G_OBJECT (view), "sort-order");
}
/**
@@ -1228,6 +1226,7 @@ rb_entry_view_set_sorting_order (RBEntryView *view,
view->priv->sorting_order = sort_order;
rb_entry_view_sync_sorting (view);
+ g_object_notify (G_OBJECT (view), "sort-order");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]