~ubuntu-branches/ubuntu/precise/gnome-games/precise-proposed

« back to all changes in this revision

Viewing changes to gnome-sudoku/src/lib/gnome_sudoku.py

  • Committer: Package Import Robot
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 12:08:49 UTC
  • mfrom: (1.2.1)
  • mto: (163.1.3 precise) (3.2.1 sid) (1.4.1)
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: package-import@ubuntu.com-20070502120849-p1824p19fzg6y0c8
Tags: upstream-2.19.1
ImportĀ upstreamĀ versionĀ 2.19.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
 
174
174
        self.cleared = [] # used for Undo memory
175
175
        self.cleared_notes = [] # used for Undo memory
176
 
        gnome.program_init('gnome-sudoku',VERSION,
177
 
                           properties={gnome.PARAM_APP_DATADIR:APP_DATA_DIR}
178
 
                           )
179
 
        self.w.set_title(APPNAME);
 
176
        gnome.program_init('gnome-sudoku',VERSION, properties={gnome.PARAM_APP_DATADIR:APP_DATA_DIR})
 
177
        self.w.set_default_size(self.gconf['width'], self.gconf['height'])
 
178
        self.w.set_title(APPNAME_SHORT)
180
179
        self.w.connect('configure-event',self.resize_cb)
181
180
        self.w.connect('delete-event',self.quit_cb)
182
181
        self.vb = gtk.VBox()
818
817
    @simple_debug
819
818
    def show_help (self, *args):
820
819
        #dialog_extras.show_faq(faq_file=os.path.join(BASE_DIR,_('FAQ')))
821
 
        gnome.help_display('gnome-sudoku')
 
820
        try:
 
821
            gnome.help_display('gnome-sudoku')
 
822
        except gobject.GError, e:
 
823
            # FIXME: This should create a pop-up dialog
 
824
            print _('Unable to display help: %s') % str(e)
822
825
 
823
826
    @simple_debug
824
827
    def print_game (self, *args):