[gnome-music/gnome-3-12] BUG 738254 - replaces instaces of get_songs_count with all_songs_count



commit 6351de2ac59467b9aab656f3b2ce420001a42714
Author: Tina Hinojosa <agustina hinojosa gmail com>
Date:   Mon Oct 13 10:21:30 2014 -0700

    BUG 738254 - replaces instaces of get_songs_count with all_songs_count

 gnomemusic/query.py  |    2 +-
 gnomemusic/view.py   |    2 +-
 gnomemusic/window.py |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index fd0e376..a782275 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -350,7 +350,7 @@ class Query():
                                           'download_dir': Query.DOWNLOAD_DIR}
 
     @staticmethod
-    def get_songs_count():
+    def all_songs_count():
         return '''
         SELECT
             COUNT(?song) AS childcount
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 76455f0..145b437 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -447,7 +447,7 @@ class Songs(ViewContainer):
     @log
     def __init__(self, header_bar, selection_toolbar, player):
         ViewContainer.__init__(self, _("Songs"), header_bar, selection_toolbar, Gd.MainViewType.LIST)
-        self.countQuery = Query.get_songs_count()
+        self.countQuery = Query.all_songs_count()
         self._items = {}
         self.monitors = []
         self.isStarred = None
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 7eef6a0..6e84019 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -112,7 +112,7 @@ class Window(Gtk.ApplicationWindow):
     @log
     def _on_changes_pending(self, data=None):
         count = 1
-        cursor = tracker.query(Query.get_songs_count(), None)
+        cursor = tracker.query(Query.all_songs_count(), None)
         if cursor is not None and cursor.next(None):
             count = cursor.get_integer(0)
         if not count > 0:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]