meld r1270 - trunk
- From: kaiw svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1270 - trunk
- Date: Wed, 18 Mar 2009 17:52:20 +0000 (UTC)
Author: kaiw
Date: Wed Mar 18 17:52:20 2009
New Revision: 1270
URL: http://svn.gnome.org/viewvc/meld?rev=1270&view=rev
Log:
Use gobject namespace instead of glib for compatibility reasons (Edwin Vane)
Modified:
trunk/tree.py
Modified: trunk/tree.py
==============================================================================
--- trunk/tree.py (original)
+++ trunk/tree.py Wed Mar 18 17:52:20 2009
@@ -15,7 +15,7 @@
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import os
-import glib
+import gobject
import gtk
import misc
import gnomeglade
@@ -85,7 +85,7 @@
for i in range(self.ntree):
self.set_value(child, self.column_index(COL_STATE,i), STATE_EMPTY)
self.set_value(child, self.column_index(COL_PATH,i), self.pixstyle[STATE_EMPTY])
- self.set_value(child, self.column_index(COL_TEXT, i), self.textstyle[STATE_EMPTY] % glib.markup_escape_text(text))
+ self.set_value(child, self.column_index(COL_TEXT, i), self.textstyle[STATE_EMPTY] % gobject.markup_escape_text(text))
return child
def add_error(self, parent, msg, pane):
@@ -93,7 +93,7 @@
for i in range(self.ntree):
self.set_value(err, self.column_index(COL_STATE,i), STATE_ERROR)
self.set_value(err, self.column_index(COL_ICON, pane), self.pixstyle[STATE_ERROR][0] )
- self.set_value(err, self.column_index(COL_TEXT, pane), self.textstyle[STATE_ERROR] % glib.markup_escape_text(msg))
+ self.set_value(err, self.column_index(COL_TEXT, pane), self.textstyle[STATE_ERROR] % gobject.markup_escape_text(msg))
def value_paths(self, iter):
return [ self.value_path(iter, i) for i in range(self.ntree) ]
@@ -104,7 +104,7 @@
def set_state(self, iter, pane, state, isdir=0):
fullname = self.get_value(iter, self.column_index(COL_PATH,pane))
- name = glib.markup_escape_text(os.path.basename(fullname))
+ name = gobject.markup_escape_text(os.path.basename(fullname))
STATE = self.column_index(COL_STATE, pane)
TEXT = self.column_index(COL_TEXT, pane)
ICON = self.column_index(COL_ICON, pane)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]