# HG changeset patch # User Sean Egan # Date 1032208937 0 # Node ID 6f96100165031000a66c435bb3a12f8ec7113270 # Parent 82180bb28f1f9d49975c40d029dd910602b19c24 [gaim-migrate @ 3597] If I didn't do this, if you turned queuing on in the docklet, and then unloaded the docklet--you'd never get IMs ever again. committer: Tailor Script diff -r 82180bb28f1f -r 6f9610016503 src/buddy.c --- a/src/buddy.c Mon Sep 16 19:50:52 2002 +0000 +++ b/src/buddy.c Mon Sep 16 20:42:17 2002 +0000 @@ -110,7 +110,7 @@ }; static GSList *shows = NULL; -static int docklet_count = 0; +int docklet_count = 0; /* Predefine some functions */ static void new_bp_callback(GtkWidget *w, struct buddy *bs); diff -r 82180bb28f1f -r 6f9610016503 src/server.c --- a/src/server.c Mon Sep 16 19:50:52 2002 +0000 +++ b/src/server.c Mon Sep 16 20:42:17 2002 +0000 @@ -691,10 +691,10 @@ if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV)) play_sound(SND_FIRST_RECEIVE); - else if (cnv && cnv->makesound) + else if (new_conv || cnv->makesound) play_sound(SND_RECEIVE); - if (away_options & OPT_AWAY_QUEUE_UNREAD && !find_conversation(name)) { + if (away_options & OPT_AWAY_QUEUE_UNREAD && !find_conversation(name) && docklet_count) { /* We're gonna queue it up and wait for the user to ask for it... probably * by clicking the docklet or windows tray icon. */ struct queued_message *qm; diff -r 82180bb28f1f -r 6f9610016503 src/ui.h --- a/src/ui.h Mon Sep 16 19:50:52 2002 +0000 +++ b/src/ui.h Mon Sep 16 20:42:17 2002 +0000 @@ -276,6 +276,7 @@ extern GtkWidget *buddies; extern GtkWidget *bpmenu; extern GtkWidget *blist; +extern int docklet_count; /* Globals in buddy_chat.c */ extern GList *chats; /* list of all chats (only use for tabbing!) */