Skip to content

Instantly share code, notes, and snippets.

View shivanipods's full-sized avatar

Shivani Poddar shivanipods

View GitHub Profile
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index b3dda1c..dbb3305 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -65,7 +65,7 @@ class ViewContainer(Gtk.Stack):
else:
self._grid.add(box)
- self._loadMore = Widgets.LoadMoreButton(self._get_remaining_item_count)
+ self._loadMore = Widgets.LoadMoreButton(Widgets._get_remaining_item_count)
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index b3dda1c..dbb3305 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -65,7 +65,7 @@ class ViewContainer(Gtk.Stack):
else:
self._grid.add(box)
- self._loadMore = Widgets.LoadMoreButton(self._get_remaining_item_count)
+ self._loadMore = Widgets.LoadMoreButton(Widgets._get_remaining_item_count)
index b3dda1c..ca776eb 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -64,7 +64,7 @@ class ViewContainer(Gtk.Stack):
self._grid.add(self.stack)
else:
self._grid.add(box)
-
+ self._get_remaining_item_count = Widgets.AllArtistsAlbums._get_remaining_item_count()
self._loadMore = Widgets.LoadMoreButton(self._get_remaining_item_count)
# -*- mode: python -*-
# -*- coding: utf-8 -*-
# edit this file to match your settings and copy it to ~/.config/jhbuildrc
# if you have a GNOME git account, uncomment this line
# repos['git.gnome.org'] = 'ssh://[email protected]/git/'
# what module set should be used. The default can be found in
# jhbuild/defaults.jhbuildrc, but can be any file in the modulesets directory
shivani@shivani:~/checkout/gnome/gnome-music/gnomemusic$ git diff
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index a87c82c..08a179e 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -34,6 +34,7 @@ class Toolbar(GObject.GObject):
self._searchButton = self._ui.get_object("search-button")
self._backButton.connect('clicked', self.on_back_button_clicked)
self._closeButton.connect('clicked', self._close_button_clicked)
+ self._searchButton.connect('clicked', self.on_search_button_clicked)
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index dd57ea6..0a3b252 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -188,7 +188,7 @@ class ViewContainer(Gtk.Stack):
[str(item.get_id()), "", title,
artist, self._symbolicIcon, item,
-1, self.errorIconName, False, True])
- GLib.idle_add(self._update_album_art, item, itr)
+ #GLib.idle_add(self._update_album_art, item, itr)
From 23535cde32dd38aec4e4dded187486fa67cbd15f Mon Sep 17 00:00:00 2001
From: shivanipoddariiith <[email protected]>
Date: Mon, 15 Jul 2013 13:14:22 +0530
Subject: [PATCH] Fix AttributeError
---
gnomemusic/player.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
From 8164f2b02b04cd8507b46232cb991bf9dac0b5d7 Mon Sep 17 00:00:00 2001
From: shivanipoddariiith <[email protected]>
Date: Mon, 15 Jul 2013 13:14:22 +0530
Subject: [PATCH] Fix AttributeError
---
gnomemusic/player.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
@shivanipods
shivanipods / gist:5990588
Created July 13, 2013 12:29
syntax correction for view.py
diff --git a/gnome-music/view.py b/gnome-music/view.py
index 7955ab6..50a2b80 100644
--- a/gnome-music/view.py
+++ b/gnome-music/view.py
@@ -219,7 +219,7 @@ class Albums(ViewContainer):
self.headerBar.setState (1)
def _onStateChanged(self, widget):
- if (self.headerBar.get_stack() not None and self == self.headerBar.get_stack().get_visible_child()):
+ if self.headerBar.get_stack != None and self == self.headerBar.get_stack().get_visible_child():
diff --git a/src/searchbar.js b/src/searchbar.js
index b968308..5525837 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -23,6 +23,8 @@ const Gtk = imports.gi.Gtk;
const Gdk = imports.gi.Gdk;
const Gd = imports.gi.Gd;
const Signals = imports.signals;
+const Mainloop = imports.mainloop;
+const Window = imports.window;