/pidgin/main: 9e16d21d4a6f: Fix compilation for GTK2

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Thu Nov 15 10:41:46 EST 2012


Changeset: 9e16d21d4a6f325c2576e671f45d1a6e9c44b190
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-11-15 16:41 +0100
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/9e16d21d4a6f

Description:

Fix compilation for GTK2

diffstat:

 pidgin/gtkdocklet.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff --git a/pidgin/gtkdocklet.c b/pidgin/gtkdocklet.c
--- a/pidgin/gtkdocklet.c
+++ b/pidgin/gtkdocklet.c
@@ -116,7 +116,11 @@ docklet_gtk_status_update_icon(PurpleSta
 
 #if !GTK_CHECK_VERSION(3,0,0)
 	if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/blink")) {
-		gtk_status_icon_set_blinking(docklet, (pending && !connecting));
+		gboolean pending = FALSE;
+		pending |= (newflag & PIDGIN_DOCKLET_EMAIL_PENDING);
+		pending |= (newflag & PIDGIN_DOCKLET_CONV_PENDING);
+		gtk_status_icon_set_blinking(docklet, pending &&
+			!(newflag & PIDGIN_DOCKLET_CONNECTING));
 	} else if (gtk_status_icon_get_blinking(docklet)) {
 		gtk_status_icon_set_blinking(docklet, FALSE);
 	}



More information about the Commits mailing list