Commits

elbaschid committed 89ae747

removed deprecated code; set up icon when database is unlocked

  • Participants
  • Parent commits acb84b1

Comments (0)

Files changed (1)

revelation_indicator

         self.ind.set_status(appindicator.STATUS_ACTIVE)
 
         #self.ind.set_status(AppIndicator3.STATUS_ACTIVE)
-        #self.ind.set_attention_icon("new-messages-red")
 
         import sys
         sys.excepthook	= self.__cb_exception
             lambda d,l: gtk.show_uri(None, "mailto:" + l, gtk.get_current_event_time())
         )
 
-#	# set up window icons
-#	pixbufs = [ self.items.get_pixbuf("revelation", size) for size in ( 48, 32, 24, 16) ]
-#	pixbufs = [ pixbuf for pixbuf in pixbufs if pixbuf != None ]
-#
-#	if len(pixbufs) > 0:
-#	    gtk.window_set_default_icon_list(*pixbufs)
-#
-        ##NOTE: some code removed
-
-        #self.icon = ui.Image()
-        #self.eventbox = ui.EventBox(self.icon)
-        #self.eventbox.connect("button_press_event", self.__cb_icon_buttonpress)
-
-        ## handle Gnome Panel background
-        #self.applet.connect("change-background",self.panel_bg)
-
-        #self.applet.show_all()
-
         ## set up various ui element holders
-        #self.popup_entryview	= None
-        #self.popup_entrylist	= None
-
-        #self.entrymenu		= None
+        self.popup_entryview	= None
+        self.popup_entrylist	= None
 
     def file_close(self):
         logger.debug(_("closing unlocked database file."))
     def file_open(self, file, password = None):
         logger.debug(_("opening database file."))
         try:
-            return self.__file_load(file, password)
+
+            success = self.__file_load(file, password)
+            self.ind.set_icon("revelation-indicator-unlocked")
+            return success
 
         except dialog.CancelError:
             pass