Skip to content

Commit

Permalink
Organized the source files
Browse files Browse the repository at this point in the history
  • Loading branch information
a5anka committed Mar 17, 2012
1 parent 828e472 commit 638dcb4
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 8 deletions.
File renamed without changes
2 changes: 1 addition & 1 deletion lyrics-downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from gi.repository import GObject, Peas, GdkPixbuf, Gtk, Notify # pylint: disable-msg=E0611

from sidebar import LyricsSidebar
from view.sidebar import LyricsSidebar

class LyricsPlugin (GObject.Object, Peas.Activatable):
__gtype_name__ = 'LyricsPlugin'
Expand Down
Empty file added model/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added view/__init__.py
Empty file.
13 changes: 8 additions & 5 deletions dialog_box.py → view/dialog_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
from gi.repository import Totem # pylint: disable-msg=E0611

from tag_identifier import identify_mp3
from chart_lyrics_model import ChartLyricsModel
from lyrdb_model import LyrdbModel
from search_thread import SearchThread
from download_thread import DownloadThread

from model.chart_lyrics_model import ChartLyricsModel
from model.lyrdb_model import LyrdbModel

from workers.search_thread import SearchThread
from workers.download_thread import DownloadThread


class DialogBox (object):

Expand Down Expand Up @@ -45,7 +48,7 @@ def _build_dialog(self):
"""
builder = Totem.plugin_load_interface ("lyrics-downloader",
"lyrics-downloader.ui", True,
"ui/lyrics-downloader.ui", True,
self._totem.get_main_window (),
self)
self._dialog = builder.get_object ('lyrics_dialog')
Expand Down
4 changes: 2 additions & 2 deletions sidebar.py → view/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from gi.repository import GObject, Peas, GdkPixbuf, Gtk, Notify # pylint: disable-msg=E0611
from gi.repository import Totem, Gio # pylint: disable-msg=E0611

from dialog_box import DialogBox
from view.dialog_box import DialogBox

class LyricsSidebar(object):

Expand All @@ -14,7 +14,7 @@ def __init__(self, totem):

# Add sidebar GUI
builder = Totem.plugin_load_interface ("lyrics-downloader", #
"sidebar.ui",
"ui/sidebar.ui",
True,
self._totem.get_main_window (),
self)
Expand Down
Empty file added workers/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.

0 comments on commit 638dcb4

Please sign in to comment.