plugins/notify.c

changeset 10984
8d8c654bf34d
parent 10971
4c823ffab27a
child 11338
1a3663ac9b05
equal deleted inserted replaced
10983:92b924aee486 10984:8d8c654bf34d
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 }

mercurial