| 177 |
177 |
| 178 g_object_get(G_OBJECT(GAIM_GTK_WINDOW(gaimwin)->window), |
178 g_object_get(G_OBJECT(GAIM_GTK_WINDOW(gaimwin)->window), |
| 179 "has-toplevel-focus", &has_focus, NULL); |
179 "has-toplevel-focus", &has_focus, NULL); |
| 180 |
180 |
| 181 if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/type_focused") || |
181 if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/type_focused") || |
| 182 !has_focus || |
182 !has_focus) { |
| 183 gaim_conv_window_get_active_conversation(gaimwin) != conv) { |
|
| 184 if (increment) { |
183 if (increment) { |
| 185 count = GPOINTER_TO_INT(gaim_conversation_get_data(conv, "notify-message-count")); |
184 count = GPOINTER_TO_INT(gaim_conversation_get_data(conv, "notify-message-count")); |
| 186 count++; |
185 count++; |
| 187 gaim_conversation_set_data(conv, "notify-message-count", GINT_TO_POINTER(count)); |
186 gaim_conversation_set_data(conv, "notify-message-count", GINT_TO_POINTER(count)); |
| 188 } |
187 } |