From 17adcf752035be600920154c32194204d6abc464 Mon Sep 17 00:00:00 2001
From: Julien Pivotto <roidelapluie@esquimaux.be>
Date: Sun, 10 Jun 2007 06:44:52 +0000
Subject: [PATCH] Print Offline icon instead Gtk-Stop in blocked items roster
 context 'send custom status' menu entry.

---
 src/roster_window.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index 7ab0a0c2dd..a8e902e23f 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -2021,8 +2021,7 @@ class RosterWindow:
 					blocked = True
 					break
 		if blocked:
-			icon = gtk.image_new_from_stock(gtk.STOCK_STOP, gtk.ICON_SIZE_MENU)
-			send_custom_status_menuitem.set_image(icon)
+			send_custom_status_menuitem.set_image(self.load_icon('offline'))
 			send_custom_status_menuitem.set_sensitive(False)
 		elif gajim.interface.status_sent_to_users.has_key(account) and \
 		jid in gajim.interface.status_sent_to_users[account]:
@@ -2560,8 +2559,7 @@ class RosterWindow:
 		send_custom_status_menuitem = gtk.ImageMenuItem(_('Send Cus_tom Status'))
 		# add a special img for this menuitem
 		if group in gajim.connections[account].blocked_groups:
-			icon = gtk.image_new_from_stock(gtk.STOCK_STOP, gtk.ICON_SIZE_MENU)
-			send_custom_status_menuitem.set_image(icon)
+			send_custom_status_menuitem.set_image(self.load_icon('offline'))
 			send_custom_status_menuitem.set_sensitive(False)
 		elif gajim.interface.status_sent_to_groups.has_key(account) and \
 		group in gajim.interface.status_sent_to_groups[account]:
-- 
GitLab