Fix in Merge.py for list handling
svn: r580
This commit is contained in:
		| @@ -104,6 +104,7 @@ class AbiWordDoc(TextDoc): | |||||||
|         self.f.close() |         self.f.close() | ||||||
|  |  | ||||||
|     def add_photo(self,pos,name,x_cm,y_cm): |     def add_photo(self,pos,name,x_cm,y_cm): | ||||||
|  |         import gtk | ||||||
|         import GdkImlib |         import GdkImlib | ||||||
|  |  | ||||||
|         image = GdkImlib.Image(name) |         image = GdkImlib.Image(name) | ||||||
|   | |||||||
| @@ -30,6 +30,7 @@ import string | |||||||
| # GTK/Gnome modules | # GTK/Gnome modules | ||||||
| # | # | ||||||
| #------------------------------------------------------------------------- | #------------------------------------------------------------------------- | ||||||
|  | import gtk | ||||||
| from gnome.ui import GnomeErrorDialog, GnomeWarningDialog, GnomeQuestionDialog | from gnome.ui import GnomeErrorDialog, GnomeWarningDialog, GnomeQuestionDialog | ||||||
| import libglade | import libglade | ||||||
| import GdkImlib | import GdkImlib | ||||||
|   | |||||||
| @@ -230,6 +230,7 @@ class OpenOfficeDoc(TextDoc): | |||||||
|         self._write_zip() |         self._write_zip() | ||||||
|  |  | ||||||
|     def add_photo(self,name,pos,x_cm,y_cm): |     def add_photo(self,name,pos,x_cm,y_cm): | ||||||
|  |         import gtk | ||||||
|         import GdkImlib |         import GdkImlib | ||||||
|  |  | ||||||
|         image = GdkImlib.Image(name) |         image = GdkImlib.Image(name) | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import string | |||||||
| # GTK/Gnome modules | # GTK/Gnome modules | ||||||
| # | # | ||||||
| #------------------------------------------------------------------------- | #------------------------------------------------------------------------- | ||||||
|  | import gtk | ||||||
| from gnome.ui import GnomeErrorDialog, GnomeWarningDialog | from gnome.ui import GnomeErrorDialog, GnomeWarningDialog | ||||||
|  |  | ||||||
| #------------------------------------------------------------------------- | #------------------------------------------------------------------------- | ||||||
|   | |||||||
| @@ -33,13 +33,6 @@ import os | |||||||
| from intl import gettext | from intl import gettext | ||||||
| _ = gettext | _ = gettext | ||||||
|  |  | ||||||
| #------------------------------------------------------------------------- |  | ||||||
| # |  | ||||||
| # GNOME/GTK |  | ||||||
| # |  | ||||||
| #------------------------------------------------------------------------- |  | ||||||
| from GdkImlib import create_image_from_xpm |  | ||||||
|  |  | ||||||
| #------------------------------------------------------------------------- | #------------------------------------------------------------------------- | ||||||
| # | # | ||||||
| # Paths to external programs | # Paths to external programs | ||||||
|   | |||||||
| @@ -225,7 +225,7 @@ class Merge: | |||||||
|                 p2 = self.dellist[p2] |                 p2 = self.dellist[p2] | ||||||
|             if p1 == p2: |             if p1 == p2: | ||||||
|                 continue |                 continue | ||||||
|             list.append(c,p1,p2) |             list.append((c,p1,p2)) | ||||||
|         list.sort() |         list.sort() | ||||||
|         list.reverse() |         list.reverse() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user