gnome-games r8753 - trunk/gnome-sudoku/src/lib
- From: thomashpa svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8753 - trunk/gnome-sudoku/src/lib
- Date: Wed, 18 Feb 2009 01:29:16 +0000 (UTC)
Author: thomashpa
Date: Wed Feb 18 01:29:16 2009
New Revision: 8753
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8753&view=rev
Log:
Use gtk.show_uri for showing help. Kill missed libgnome usage in gnome-sudoku
Modified:
trunk/gnome-sudoku/src/lib/main.py
Modified: trunk/gnome-sudoku/src/lib/main.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/main.py (original)
+++ trunk/gnome-sudoku/src/lib/main.py Wed Feb 18 01:29:16 2009
@@ -5,8 +5,7 @@
except ImportError, err:
print ("PyGTK not found. Please make sure it is installed properly and referenced in your PYTHONPATH environment variable.")
-import gtk, gobject, gtk.glade
-import gnome, gnome.ui, pango
+import gtk, gobject, gtk.glade, pango
import os, os.path
from gtk_goodies import gconf_wrapper, Undo, dialog_extras, image_extras
import gsudoku, sudoku, saver, sudoku_maker, printing, sudoku_generator_gui
@@ -204,7 +203,6 @@
self.w.show()
def setup_gui (self):
- gnome.program_init('gnome-sudoku',VERSION, properties={gnome.PARAM_APP_DATADIR:APP_DATA_DIR})
self.initialize_prefs()
self.setup_main_window()
self.gsd = gsudoku.SudokuGameDisplay()
@@ -809,9 +807,8 @@
@simple_debug
def show_help (self, *args):
- #dialog_extras.show_faq(faq_file=os.path.join(BASE_DIR,_('FAQ')))
try:
- gnome.help_display('gnome-sudoku')
+ gtk.show_uri(self.w.get_screen(), "ghelp:gnome-sudoku", gtk.get_current_event_time())
except gobject.GError, e:
# FIXME: This should create a pop-up dialog
print _('Unable to display help: %s') % str(e)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]