[Tkabber-dev] r2101 - in trunk/tkabber: . ifacetk

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sun Jan 26 19:38:44 MSK 2014


Author: sergei
Date: 2014-01-26 19:38:44 +0400 (Sun, 26 Jan 2014)
New Revision: 2101

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/ifacetk/systray.tcl
Log:
	* ifacetk/systray.tcl: Added option not to change the systray icon
	  when a groupchat message which is not highlighted is received.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2014-01-26 09:49:59 UTC (rev 2100)
+++ trunk/tkabber/ChangeLog	2014-01-26 15:38:44 UTC (rev 2101)
@@ -25,6 +25,9 @@
 	  and in Unix buttons 2 and 3 correspond to different mous buttons
 	  (thanks to Vitaly Takmazov).
 
+	* ifacetk/systray.tcl: Added option not to change the systray icon
+	  when a groupchat message which is not highlighted is received.
+
 2014-01-22  Sergei Golovan  <sgolovan at nes.ru>
 
 	* gpgme.tcl, chats.tcl: Adjusted priority of rewrite_message_hook

Modified: trunk/tkabber/ifacetk/systray.tcl
===================================================================
--- trunk/tkabber/ifacetk/systray.tcl	2014-01-26 09:49:59 UTC (rev 2100)
+++ trunk/tkabber/ifacetk/systray.tcl	2014-01-26 15:38:44 UTC (rev 2101)
@@ -37,6 +37,10 @@
     custom::defvar options(display_muc_change) 1 \
 	[::msgcat::mc "Change icon on server and enter/exit groupchat messages."] \
 	-group Systray -type boolean
+
+    custom::defvar options(display_muc_others) 1 \
+	[::msgcat::mc "Change icon on other users groupchat messages."] \
+	-group Systray -type boolean
 }
 
 ##########################################################################
@@ -263,8 +267,9 @@
 	}
     }
 
-    if {($hitP == 0) || \
-    	(($hitP == 1) && !$options(display_muc_change))} {
+    if {($hitP == 0) ||
+    	(($hitP == 1) && !$options(display_muc_change)) ||
+	(($hitP == 2) && !$options(display_muc_others))} {
 	update $icon ::curuserstatus
 	return
     }



More information about the Tkabber-dev mailing list