]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qpe-gaim/files/buzzer-notification.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qpe-gaim / files / buzzer-notification.patch
1 #
2 # with this patch qpe-gaim also notifies if it is minimized to the taskbar.
3 # this could be nice if you have more apps open
4 #
5 # Author: Patrick Steiner <patrick.steiner@a1.ner>
6 # Version: 1.01 (20050328)
7 #
8
9 Index: qpe-gaim/src/QGaimConvWindow.cpp
10 ===================================================================
11 --- qpe-gaim.orig/src/QGaimConvWindow.cpp       2005-04-03 19:57:31.924379043 +0200
12 +++ qpe-gaim/src/QGaimConvWindow.cpp    2005-04-03 20:02:03.281769318 +0200
13 @@ -175,24 +175,20 @@
14                 win = gaim_conversation_get_window(conv);
15                 activeConv = gaim_conv_window_get_active_conversation(win);
16  
17 -               if (conv != activeConv ||
18 -                       win != qGaimGetMainWindow()->getLastActiveConvWindow())
19 -               {
20 -                       const char *prefName;
21 +               const char *prefName;
22  
23 -                       if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT)
24 -                               prefName = "/gaim/qpe/notify/incoming_chat";
25 -                       else
26 -                               prefName = "/gaim/qpe/notify/incoming_im";
27 +               if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT)
28 +                       prefName = "/gaim/qpe/notify/incoming_chat";
29 +               else
30 +                       prefName = "/gaim/qpe/notify/incoming_im";
31  
32 -                       if (gaim_prefs_get_bool(prefName))
33 -                       {
34 -                               if (notifying)
35 -                                       qGaimNotifyUserStop();
36 +               if (gaim_prefs_get_bool(prefName))
37 +               {
38 +                       if (notifying)
39 +                               qGaimNotifyUserStop();
40  
41 -                               qGaimNotifyUser();
42 -                               notifying = true;
43 -                       }
44 +                       qGaimNotifyUser();
45 +                       notifying = true;
46                 }
47         }
48  }