Don't use deprecated libgnome.

This commit is contained in:
Cole Robinson 2009-11-10 12:43:51 -05:00
parent ab0491c39d
commit f66409ecbf
3 changed files with 6 additions and 13 deletions

View File

@ -19,7 +19,6 @@
#
import gconf
import os
import gnome
import gtk.gdk
import libvirt
@ -100,10 +99,6 @@ class vmmConfig:
libvirt.VIR_DOMAIN_NOSTATE: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_running.png", 32, 32),
}
props = { gnome.PARAM_APP_DATADIR : self.get_data_dir()}
gnome.program_init(self.get_appname(), self.get_appversion(), \
properties=props)
def get_vm_status_icon(self, state):

View File

@ -22,7 +22,6 @@ import gobject
import gtk
import libvirt
import logging
import gnome
import traceback
import threading
@ -275,8 +274,12 @@ class vmmEngine(gobject.GObject):
def show_help(self, index):
try:
logging.debug("Showing help for %s" % index)
gnome.help_display(self.config.get_appname(), index)
uri = "ghelp:%s" % self.config.get_appname()
if index:
uri += "#%s" % index
logging.debug("Showing help for %s" % uri)
gtk.show_uri(None, uri, gtk.get_current_event_time())
except gobject.GError, e:
logging.error(("Unable to display documentation:\n%s") % e)

View File

@ -21,11 +21,6 @@ BuildArch: noarch
# These two are just the oldest version tested
Requires: pygtk2 >= 1.99.12-6
Requires: gnome-python2-gconf >= 1.99.11-7
%if 0%{?fedora} <= 9
Requires: gnome-python2
%else
Requires: gnome-python2-gnome
%endif
# This version not strictly required: virt-manager should work with older,
# however varying amounts of functionality will not be enabled.
Requires: libvirt-python >= 0.7.0