The unified diff between revisions [2ae3c42c..] and [7ab22dd1..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'interapplet.py'

#
#
# patch "interapplet.py"
#  from [9ee23a6d3af01e5b4217f7cf3068167495fc3090]
#    to [663dda2fd27005467c1ded02eaee035e9409b9b4]
#
============================================================
--- interapplet.py	9ee23a6d3af01e5b4217f7cf3068167495fc3090
+++ interapplet.py	663dda2fd27005467c1ded02eaee035e9409b9b4
@@ -26,8 +26,10 @@ show_log_xml = '''\
 show_log_xml = '''\
 <popup name="button3">
 	<menuitem name="log_item" verb="log_verb_show" label="_Show log" />
+        <menuitem name="interapplet_about" verb="interapplet_about" _label="_About" pixtype="stock" pixname="gnome-stock-about"/>
 </popup>'''

+
 def set_nonblocking(fd):
 	fl = fcntl.fcntl(fd, fcntl.F_GETFL)
 	fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NDELAY)
@@ -91,7 +93,7 @@ class InterfaceApplet(gnomeapplet.Applet
 		self.box.add(self.icon)
 		self.applet.add(self.box)
 		self.applet.show_all()
-		self.applet.setup_menu(show_log_xml, [('log_verb_hide', self.log_verb_cb), ('log_verb_show', self.log_verb_cb)])
+		self.applet.setup_menu(show_log_xml, [('log_verb_show', self.log_verb_cb), ('interapplet_about', self.about_cb)])
 		self.tooltips = gtk.Tooltips()
 		self.set_applet_tip(None)

@@ -359,7 +361,35 @@ class InterfaceApplet(gnomeapplet.Applet
 		if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
 			self.menu.popup(None,None,self.position_popup_cb,event.button,event.time)
 			return False
+	def about_cb(self, widget, user=None):
+		about = gtk.AboutDialog()
+		about.set_name("InterApplet")
+		about.set_version("0.01")
+		about.set_copyright("Copyright 2005 Grahame Bowland")
+		about.set_website("http://grahame.angrygoats.net/interapplet.shtml")
+		about.set_authors(["Grahame Bowland"])
+		about.set_license("""\
+InterApplet
+Copyright (C) 2005 Grahame Bowland

+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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+""")
+		about.run()
+		about.destroy()
+
+
 def interface_applet_factory(applet, iid):
 	InterfaceApplet(applet, iid)
 	return gtk.TRUE