Description: Fix startup with appindicator.
Forwarded: https://code.launchpad.net/~pitti/gtimelog/pygi/+merge/48327
=== modified file 'src/gtimelog/main.py'
--- a/src/gtimelog/main.py	2011-01-31 21:58:30 +0000
+++ b/src/gtimelog/main.py	2011-02-02 15:06:07 +0000
@@ -38,7 +38,7 @@
         APPINDICATOR_ACTIVE = appindicator.STATUS_ACTIVE
     except ImportError:
         # apt-get install python-appindicator on Ubuntu
-        appindicator = None
+        new_app_indicator = None
 
 except ImportError:
     import gi
@@ -60,7 +60,7 @@
         APPINDICATOR_CATEGORY = AppIndicator.IndicatorCategory.APPLICATION_STATUS
         APPINDICATOR_ACTIVE = AppIndicator.IndicatorStatus.ACTIVE
     except (ImportError, gi._gi.RepositoryError):
-        appindicator = None
+        new_app_indicator = None
 
 try:
     import dbus
@@ -1120,7 +1120,7 @@
         self.gtimelog_window = gtimelog_window
         self.timelog = gtimelog_window.timelog
         self.indicator = None
-        if appindicator is None:
+        if new_app_indicator is None:
             return
         self.indicator = new_app_indicator("gtimelog", self.icon_name,
                                            APPINDICATOR_CATEGORY)

