| 158 default: |
158 default: |
| 159 icon_name = PIDGIN_STOCK_TRAY_AVAILABLE; |
159 icon_name = PIDGIN_STOCK_TRAY_AVAILABLE; |
| 160 break; |
160 break; |
| 161 } |
161 } |
| 162 |
162 |
| 163 if (connecting && strcmp(current_icon_name, PIDGIN_STOCK_TRAY_CONNECT) != 0) { |
163 if (connecting && !purple_strequal(current_icon_name, PIDGIN_STOCK_TRAY_CONNECT)) { |
| 164 icon_name = PIDGIN_STOCK_TRAY_CONNECT; |
164 icon_name = PIDGIN_STOCK_TRAY_CONNECT; |
| 165 } |
165 } |
| 166 |
166 |
| 167 if (pending && strcmp(current_icon_name, PIDGIN_STOCK_TRAY_PENDING) != 0) { |
167 if (pending && !purple_strequal(current_icon_name, PIDGIN_STOCK_TRAY_PENDING)) { |
| 168 icon_name = PIDGIN_STOCK_TRAY_PENDING; |
168 icon_name = PIDGIN_STOCK_TRAY_PENDING; |
| 169 } |
169 } |
| 170 |
170 |
| 171 if (icon_name) { |
171 if (icon_name) { |
| 172 gtk_status_icon_set_from_icon_name(docklet, icon_name); |
172 gtk_status_icon_set_from_icon_name(docklet, icon_name); |