Permalink
Browse files

Small cleanup and new logo.

  • Loading branch information...
Frank
Frank committed Dec 22, 2009
1 parent 005e781 commit 620b0c71d612fd1caf8d41c14749d453d77bc42e
View
4 README
@@ -15,7 +15,8 @@ To startup AnimeList you need 'cd' to the AnimeList directory and make "animelis
(if needed) and do "./animelist.py". A dialog will popup and ask about your login details.
After you've done that it will load your list.
-Send a PM to "http://myanimelist.net/profile/FSX" if you have questions.
+Send a PM to "http://myanimelist.net/profile/FSX" if you have questions. Or visit
+the project page: http://61924.nl/projects/animelist.html
[1]: http://www.gtk.org/
[2]: http://www.python.org/
@@ -41,6 +42,7 @@ appreciated.
Notes:
+ - The *.ui files are gtk.Builder files, which can be edited with Glade 3.
- Pygtkhelpers is a library from PIDA and is licensed under the LGPL 2 or later.
The source code can be found at Bitbucket[7].
View
3 TODO
@@ -2,8 +2,7 @@ A TODO list
# 0.2
- - Plugin tab in settings window
- - "Get help" window
+ - Done
# 0.3
View
@@ -7,6 +7,12 @@
# License: GPL v3, see the COPYING file for details
# =============================================================================
+__author__ = 'Frank Smit'
+__email__ = '61924.00@gmail.com'
+__date__ = 'December 22th, 2009'
+__app_name__ = 'AnimeList'
+__version__ = '0.2-beta1'
+
import os
import sys
@@ -35,8 +41,8 @@ def __init__(self):
# Set some variables
self.HOME = os.path.expanduser('~/.animelist')
- self.name = 'AnimeList'
- self.version = '0.2-dev'
+ self.name = __app_name__
+ self.version = __version__
self._position = (0, 0)
self.path = sys.path[0] # This path is used to load image and other resources
@@ -96,6 +102,10 @@ def __init__(self):
# Make all the GUI widgets visible
self.gui['window'].show_all()
+ # Hide the systemtray icon if needed
+ if not self.config.settings['systray']:
+ self.gui['systray'].set_visible(False)
+
# Accelerators for menu items
accel_group = gtk.AccelGroup()
self.gui['window'].add_accel_group(accel_group)
View
@@ -149,6 +149,7 @@
<object class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="show_tabs">False</property>
<child>
<object class="GtkVBox" id="vbox2">
<property name="visible">True</property>
View
@@ -1,7 +1,5 @@
-#!/usr/bin/python
-
# =============================================================================
-# config.py
+# lib/config.py
#
# Copyright (c) 2009 Frank Smit (FSX)
# License: GPL v3, see the COPYING file for details
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# lib/myanimelist.py
# This module is made for the Unofficial MAL API: http://mal-api.com/
View
@@ -1,7 +1,5 @@
-#!/usr/bin/python
-
# =============================================================================
-# plugin.py
+# lib/plugin.py
#
# Copyright (c) 2009 Frank Smit (FSX)
# License: GPL v3, see the COPYING file for details
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# lib/request.py
#
View
@@ -1,7 +1,5 @@
-#!/usr/bin/python
-
# =============================================================================
-# signals.py
+# lib/signals.py
#
# Copyright (c) 2009 Frank Smit (FSX)
# License: GPL v3, see the COPYING file for details
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# lib/utils.py
#
View
@@ -1,7 +1,5 @@
-#!/usr/bin/python
-
# =============================================================================
-# dialogs.py
+# lib/widgets.py
#
# Copyright (c) 2009 Frank Smit (FSX)
# License: GPL v3, see the COPYING file for details
@@ -14,7 +12,8 @@
from lib import utils
class ToolBar():
- """The toolbar holds the buttons that enable the user to navigate between the
+ """
+ The toolbar holds the buttons that enable the user to navigate between the
sections. This class extends gtk.Toolbar and adds extra functionality.
"""
@@ -28,7 +27,8 @@ def __init__(self, al, toolbar):
self.al.signal.connect('al-init-done', self._insert_buttons)
def set_section(self, bid=None, label=None):
- """Emit a 'al-switch-section' signal when a button on the sections
+ """
+ Emit a 'al-switch-section' signal when a button on the sections
toolbar is pressed or when called in the script. Plugins can connect
to this signal and do the actual 'section switch'.
"""
@@ -184,6 +184,12 @@ def _set_settings(self, fields):
self.al.config.settings['systray'] = fields['systray'].get_active()
self.al.config.settings['startup_refresh'] = fields['startup_refresh'].get_active()
+ # Show or hide the systemtray icon if needed
+ if self.al.config.settings['systray']:
+ self.al.gui['systray'].set_visible(True)
+ else:
+ self.al.gui['systray'].set_visible(False)
+
class AboutDialog(gtk.AboutDialog):
"""A GTK+ about dialog that displays a description, a link to the website etc."""
Binary file not shown.
Binary file not shown.
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# plugins/anime.py
#
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# plugins/media.py
#
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# plugins/search.py
#
View
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# =============================================================================
# plugins/torrent.py
#

0 comments on commit 620b0c7

Please sign in to comment.