Fix occurances of get_nick_name() -> get_name()

This commit is contained in:
Dan Williams 2006-07-24 10:57:21 -05:00
parent a216a19f3f
commit ba6c75725d
3 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@ class BrowserActivity(Activity):
# Create our activity-specific browser sharing service # Create our activity-specific browser sharing service
self._model = LocalModel(self, self._pservice, self._share_service) self._model = LocalModel(self, self._pservice, self._share_service)
self._model.set_value('owner', self._pservice.get_owner().get_nick_name()) self._model.set_value('owner', self._pservice.get_owner().get_name())
self._update_shared_location() self._update_shared_location()
self.set_mode(BrowserActivity.LEADING) self.set_mode(BrowserActivity.LEADING)

View File

@ -136,7 +136,7 @@ class PresenceView(gtk.VBox):
aniter = self._buddy_store.append(None) aniter = self._buddy_store.append(None)
self._buddy_store.set(aniter, self._buddy_store.set(aniter,
self._MODEL_COL_NICK, buddy.get_nick_name(), self._MODEL_COL_NICK, buddy.get_name(),
self._MODEL_COL_BUDDY, buddy, self._MODEL_COL_BUDDY, buddy,
self._MODEL_COL_VISIBLE, self._is_buddy_visible(buddy)) self._MODEL_COL_VISIBLE, self._is_buddy_visible(buddy))
buddy.connect('icon-changed', self.__buddy_icon_changed_cb) buddy.connect('icon-changed', self.__buddy_icon_changed_cb)

View File

@ -108,7 +108,7 @@ class Chat(gtk.VBox):
if icon: if icon:
rise = int(icon.get_height() / 4) * -1 rise = int(icon.get_height() / 4) * -1
hash_string = "%s-%s" % (buddy.get_nick_name(), buddy.get_address()) hash_string = "%s-%s" % (buddy.get_name(), buddy.get_ip4_address())
sha_hash = sha.new() sha_hash = sha.new()
sha_hash.update(hash_string) sha_hash.update(hash_string)
tagname = "buddyicon-%s" % sha_hash.hexdigest() tagname = "buddyicon-%s" % sha_hash.hexdigest()
@ -127,7 +127,7 @@ class Chat(gtk.VBox):
buf.create_tag("nickname", weight=pango.WEIGHT_BOLD) buf.create_tag("nickname", weight=pango.WEIGHT_BOLD)
aniter = buf.get_end_iter() aniter = buf.get_end_iter()
offset = aniter.get_offset() offset = aniter.get_offset()
buf.insert(aniter, " " + buddy.get_nick_name() + ": ") buf.insert(aniter, " " + buddy.get_name() + ": ")
enditer = buf.get_iter_at_offset(offset) enditer = buf.get_iter_at_offset(offset)
buf.apply_tag_by_name("nickname", aniter, enditer) buf.apply_tag_by_name("nickname", aniter, enditer)
@ -216,7 +216,7 @@ class Chat(gtk.VBox):
# FIXME a better way to compare buddies? # FIXME a better way to compare buddies?
owner = self._pservice.get_owner() owner = self._pservice.get_owner()
if buddy.get_nick_name() == owner.get_nick_name(): if buddy.get_name() == owner.get_name():
return return
chunk = self._get_first_richtext_chunk(msg) chunk = self._get_first_richtext_chunk(msg)
@ -245,14 +245,14 @@ class Chat(gtk.VBox):
if self._stream_writer: if self._stream_writer:
self._stream_writer.write(self.serialize_message(text)) self._stream_writer.write(self.serialize_message(text))
else: else:
print 'Cannot send message, there is no stream writer' logging.warning("Cannot send message, there is no stream writer")
owner = self._pservice.get_owner() owner = self._pservice.get_owner()
if owner: if owner:
self._insert_rich_message(owner, text) self._insert_rich_message(owner, text)
def serialize_message(self, message): def serialize_message(self, message):
owner = self._pservice.get_owner() owner = self._pservice.get_owner()
return owner.get_nick_name() + '||' + message return owner.get_name() + '||' + message
def deserialize_message(message): def deserialize_message(message):
return message.split('||', 1) return message.split('||', 1)