| 114 gtk_status_icon_set_from_icon_name(docklet, icon_name); |
114 gtk_status_icon_set_from_icon_name(docklet, icon_name); |
| 115 } |
115 } |
| 116 |
116 |
| 117 #if !GTK_CHECK_VERSION(3,0,0) |
117 #if !GTK_CHECK_VERSION(3,0,0) |
| 118 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/blink")) { |
118 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/blink")) { |
| 119 gtk_status_icon_set_blinking(docklet, (pending && !connecting)); |
119 gboolean pending = FALSE; |
| |
120 pending |= (newflag & PIDGIN_DOCKLET_EMAIL_PENDING); |
| |
121 pending |= (newflag & PIDGIN_DOCKLET_CONV_PENDING); |
| |
122 gtk_status_icon_set_blinking(docklet, pending && |
| |
123 !(newflag & PIDGIN_DOCKLET_CONNECTING)); |
| 120 } else if (gtk_status_icon_get_blinking(docklet)) { |
124 } else if (gtk_status_icon_get_blinking(docklet)) { |
| 121 gtk_status_icon_set_blinking(docklet, FALSE); |
125 gtk_status_icon_set_blinking(docklet, FALSE); |
| 122 } |
126 } |
| 123 #endif |
127 #endif |
| 124 } |
128 } |