gnome-games r8775 - in trunk/glchess: glade src/lib/gtkui
- From: thomashpa svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8775 - in trunk/glchess: glade src/lib/gtkui
- Date: Sun, 22 Feb 2009 19:57:44 +0000 (UTC)
Author: thomashpa
Date: Sun Feb 22 19:57:44 2009
New Revision: 8775
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8775&view=rev
Log:
Use gtk.show_uri() to display help. Removes optional libgnome stuff
Modified:
trunk/glchess/glade/glchess.glade
trunk/glchess/src/lib/gtkui/gtkui.py
Modified: trunk/glchess/glade/glchess.glade
==============================================================================
--- trunk/glchess/glade/glchess.glade (original)
+++ trunk/glchess/glade/glchess.glade Sun Feb 22 19:57:44 2009
@@ -307,6 +307,7 @@
<child>
<widget class="GtkImageMenuItem" id="menu_help">
+ <property name="visible">True</property>
<property name="label" translatable="yes">_Contents</property>
<property name="use_underline">True</property>
<signal name="activate" handler="_on_help_clicked" last_modification_time="Fri, 11 Aug 2006 12:43:28 GMT"/>
Modified: trunk/glchess/src/lib/gtkui/gtkui.py
==============================================================================
--- trunk/glchess/src/lib/gtkui/gtkui.py (original)
+++ trunk/glchess/src/lib/gtkui/gtkui.py Sun Feb 22 19:57:44 2009
@@ -20,12 +20,6 @@
import gtk.gdk
import cairo
import pango
-try:
- import gnome, gnome.ui
-except ImportError:
- haveGnomeSupport = False
-else:
- haveGnomeSupport = True
from glchess.defaults import *
@@ -197,10 +191,6 @@
def __init__(self, feedback):
"""Constructor for a GTK+ glChess GUI"""
- if haveGnomeSupport:
- gnome.program_init('glchess', VERSION,
- properties={gnome.PARAM_APP_DATADIR: APP_DATA_DIR})
-
self.feedback = feedback
self._watches = {}
self.__networkGames = {}
@@ -250,10 +240,6 @@
cell = gtk.CellRendererText()
combo.pack_start(cell, False)
combo.add_attribute(cell, 'text', 2)
-
- # Disble help support
- if haveGnomeSupport:
- self._gui.get_widget('menu_help').show()
self._updateViewButtons()
@@ -857,7 +843,7 @@
def _on_help_clicked(self, widget):
"""Gtk+ callback"""
try:
- gnome.help_display('glchess')
+ gtk.show_uri(self.mainWindow.get_screen(), "ghelp:glchess", gtk.get_current_event_time())
except gobject.GError, e:
# TODO: This should be 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]