Changeset 237:db3f0f8c33b2


Ignore:
Timestamp:
06/06/12 18:44:04 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added a link to the project homepage on the About dialog

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r227 r237  
    12991299            dialog.set_version(const.VERSION)
    13001300            dialog.set_copyright("(c) 2012 by István Váradi")
     1301            dialog.set_website("http://mlx.varadiistvan.hu")
     1302            dialog.set_website_label(xstr("about_website"))
    13011303
    13021304            isHungarian = getLanguage()=="hu"
     
    13111313            dialog.set_license(xstr("about_license"))
    13121314
     1315            if not pygobject:
     1316                gtk.about_dialog_set_url_hook(self._showAboutURL, None)
     1317
    13131318        return self._aboutDialog
     1319
     1320    def _showAboutURL(self, dialog, link, user_data):
     1321        """Show the about URL."""       
     1322        webbrowser.open(url = link, new = 1)
  • src/mlx/i18n.py

    r228 r237  
    953953        self.add("pirepView_tab_log", "_Log")
    954954        self.add("pirepView_tab_log_tooltip", "The flight log.")
     955
     956        self.add("about_website", "Project Homepage")
    955957
    956958        self.add("about_license",
     
    17971799        self.add("pirepView_tab_log_tooltip", "A repülési napló.")
    17981800
     1801        self.add("about_website", "A projekt honlapja")
     1802
    17991803        self.add("about_license",
    18001804                 "A program köztulajdonban van.")
Note: See TracChangeset for help on using the changeset viewer.