[Pkg-bazaar-commits] ./bzr-gtk/unstable r218: Move olive about dialog into olive.
Jelmer Vernooij
jelmer at samba.org
Fri Apr 10 07:45:49 UTC 2009
------------------------------------------------------------
revno: 218
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2007-07-14 02:09:47 +0300
message:
Move olive about dialog into olive.
modified:
dialog.py
olive/__init__.py
-------------- next part --------------
=== modified file 'dialog.py'
--- a/dialog.py 2007-02-04 12:11:31 +0000
+++ b/dialog.py 2007-07-13 23:09:47 +0000
@@ -24,22 +24,6 @@
import gtk.glade
-def about():
- """ Display the AboutDialog. """
- from bzrlib.plugins.gtk import __version__
- from bzrlib.plugins.gtk.olive.guifiles import GLADEFILENAME
-
- # Load AboutDialog description
- dglade = gtk.glade.XML(GLADEFILENAME, 'aboutdialog')
- dialog = dglade.get_widget('aboutdialog')
-
- # Set version
- dialog.set_version(__version__)
-
- dialog.run()
- # Destroy the dialog
- dialog.destroy()
-
def _message_dialog(type, primary, secondary, buttons=gtk.BUTTONS_OK):
""" Display a given type of MessageDialog with the given message.
=== modified file 'olive/__init__.py'
--- a/olive/__init__.py 2007-06-10 15:44:44 +0000
+++ b/olive/__init__.py 2007-07-13 23:09:47 +0000
@@ -55,6 +55,22 @@
from bzrlib.plugins.gtk.push import PushDialog
from bzrlib.plugins.gtk.revbrowser import RevisionBrowser
+def about():
+ """ Display the AboutDialog. """
+ from bzrlib.plugins.gtk import __version__
+ from bzrlib.plugins.gtk.olive.guifiles import GLADEFILENAME
+
+ # Load AboutDialog description
+ dglade = gtk.glade.XML(GLADEFILENAME, 'aboutdialog')
+ dialog = dglade.get_widget('aboutdialog')
+
+ # Set version
+ dialog.set_version(__version__)
+
+ dialog.run()
+ # Destroy the dialog
+ dialog.destroy()
+
class OliveGtk:
""" The main Olive GTK frontend class. This is called when launching the
program. """
@@ -354,9 +370,7 @@
return self.remote_branch.base
def on_about_activate(self, widget):
- from bzrlib.plugins.gtk.dialog import about
about()
-
def on_button_history_browse_clicked(self, widget):
""" Browse for revision button handler. """
More information about the Pkg-bazaar-commits
mailing list