~umang/indicator-stickynotes/trunk

« back to all changes in this revision

Viewing changes to stickynotes/gui.py

  • Committer: Umang Varma
  • Date: 2012-07-16 02:24:30 UTC
  • Revision ID: git-v1:3ecde6fe31a38b396bced775793fd651b2ffad0a
Added about dialog

Note: the copy of the indicator-stickynotes logo in the Icons directory is for
the regular gui to use. I'm using a copy because it is not easy to track where
the original logo lives (because it may be installed in one of many various
installation layouts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
    def focus_out(self, *args):
151
151
        self.save(*args)
152
152
 
 
153
def show_about_dialog():
 
154
    glade_file = os.path.abspath(os.path.join(os.path.dirname(__file__),
 
155
            '..', "StickyNotes.glade"))
 
156
    builder = Gtk.Builder()
 
157
    builder.add_from_file(glade_file)
 
158
    winAbout = builder.get_object("AboutWindow")
 
159
    ret =  winAbout.run()
 
160
    winAbout.destroy()
 
161
    return ret