From 27ca14bbb162523d6f01b65b440698e8d49cd056 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 5 Apr 2002 00:47:37 +0000 Subject: [PATCH] Fix image in tool display svn: r893 --- gramps/src/Plugins.py | 5 +++-- gramps/src/plugins.glade | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/src/Plugins.py b/gramps/src/Plugins.py index 827544360..a5cb618c6 100644 --- a/gramps/src/Plugins.py +++ b/gramps/src/Plugins.py @@ -32,6 +32,7 @@ filters, importer, exporters, and document generators. # GTK libraries # #------------------------------------------------------------------------- +import GdkImlib import gtk import libglade @@ -138,11 +139,11 @@ class PluginDialog: (task,cat,title,doc,xpm,status) = obj.get_data(TASK) - i,m = gtk.create_pixmap_from_xpm_d(gtk.GtkWindow(),None,xpm) + image = GdkImlib.create_image_from_xpm(xpm) self.description.set_text(doc) self.status.set_text(": %s" % status) self.label.show() - self.img.set(i,m) + self.img.load_imlib(image) self.title.set_text(title) self.dialog.get_widget("title").set_text(title) diff --git a/gramps/src/plugins.glade b/gramps/src/plugins.glade index 08d664d59..18d043e7d 100644 --- a/gramps/src/plugins.glade +++ b/gramps/src/plugins.glade @@ -147,7 +147,7 @@ GnomePixmap - pixmap1 + image gramps.png 10