summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Zubenko <sheela.na.geek@gmail.com>2012-06-01 12:01:49 +0300
committerAnna Zubenko <sheela.na.geek@gmail.com>2012-06-01 12:01:49 +0300
commit1caeaac08ff8b10b11ba72223424a08a96ebac88 (patch)
tree91532f06d988d4a11da60ce809d6263c1088b67d /net-im/gajim/files/window_class.patch
parentRemoved live gajim ebuild (diff)
downloadeatnumber1-master.tar.gz
eatnumber1-master.tar.bz2
eatnumber1-master.zip
Gajim removalHEADmaster
Diffstat (limited to 'net-im/gajim/files/window_class.patch')
-rw-r--r--net-im/gajim/files/window_class.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/net-im/gajim/files/window_class.patch b/net-im/gajim/files/window_class.patch
deleted file mode 100644
index 007cd25..0000000
--- a/net-im/gajim/files/window_class.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-diff -r 09d54b679f9d src/message_window.py
---- a/src/message_window.py Wed Dec 01 17:03:38 2010 +0300
-+++ b/src/message_window.py Fri Dec 10 19:14:34 2010 +0300
-@@ -75,6 +75,7 @@
- self.widget_name = 'message_window'
- self.xml = gtkgui_helpers.get_gtk_builder('%s.ui' % self.widget_name)
- self.window = self.xml.get_object(self.widget_name)
-+ self.window.set_wmclass("%s - Gajim" % self.make_wmname(False), "gajim[%s]" % self.type_)
- self.notebook = self.xml.get_object('notebook')
- self.parent_paned = None
-
-@@ -443,6 +444,20 @@
- if icon:
- self.window.set_icon(icon.get_pixbuf())
-
-+ def make_wmname(self, translate=True):
-+ if not translate:
-+ tr = lambda x: x
-+ else:
-+ tr = _
-+ if self.type_ == 'chat':
-+ label = tr('Chats')
-+ elif self.type_ == 'gc':
-+ label = tr('Group Chats')
-+ else:
-+ label = tr('Private Chats')
-+
-+ return label
-+
- def show_title(self, urgent=True, control=None):
- """
- Redraw the window's title
-@@ -481,12 +496,7 @@
- window_mode = gajim.interface.msg_win_mgr.mode
- if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE:
- # Show the plural form since number of tabs > 1
-- if self.type_ == 'chat':
-- label = _('Chats')
-- elif self.type_ == 'gc':
-- label = _('Group Chats')
-- else:
-- label = _('Private Chats')
-+ label = self.make_wmname()
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
- label = None
- elif self.get_num_controls() == 1: \ No newline at end of file