~awn-extras/awn-extras/vector-effects-extras

« back to all changes in this revision

Viewing changes to src/media-control/mediacontrol.py

  • Committer: Michal Hruby
  • Date: 2008-09-29 19:42:23 UTC
  • mfrom: (877.1.13 awn-extras)
  • Revision ID: mhr3@zoznam.sk-20080929194223-c2q6qbr7attyuo8o
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        self.title = awn.awn_title_get_default ()
71
71
        self.dialog = awn.AppletDialog (self)
72
72
        self.dialog_visible = False
 
73
 
 
74
        #Popup menu
 
75
        self.about = gtk.ImageMenuItem(gtk.STOCK_ABOUT)
 
76
        self.about.connect("activate", self.show_about)
 
77
 
73
78
        self.popup_menu = self.create_default_menu()
 
79
        self.popup_menu.append(self.about)
 
80
        self.popup_menu.show_all()
 
81
 
74
82
        # Defining Widgets
75
83
        vbox = gtk.VBox()
76
84
        self.players_frame.add(vbox)
341
349
        context.finish(result, False, time)
342
350
        return True
343
351
 
 
352
    def show_about(self, widget):
 
353
        about = gtk.AboutDialog()
 
354
        about.set_logo(self.get_awn_icons().get_icon_simple_at_height(48))
 
355
        about.set_icon(self.get_awn_icons().get_icon_simple())
 
356
        about.set_name("Media Control Applet")
 
357
        about.set_copyright("Copyright (c) 2007 Randal Barlow <im.tehk at gmail.com>")
 
358
        about.set_authors(["Randal Barlow <im.tehk at gmail.com>", "Michal Hruby <michal.mhr at gmail.com>"])
 
359
        about.set_comments("Controls your favourite music player.")
 
360
        about.set_license("This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.")
 
361
        about.set_wrap_license(True)
 
362
        about.set_documenters(["Randal Barlow <im.tehk at gmail.com>"])
 
363
        about.set_artists(["Claudio Benech"])
 
364
        about.run()
 
365
        about.destroy()
344
366
 
345
367
 
346
368
if __name__ == "__main__":