| 1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ |
| 2 | /* |
| 3 | ** Login : <[email protected]> |
| 4 | ** Started on Fri Nov 30 05:31:31 2007 GESTES Cedric |
| 5 | ** $Id$ |
| 6 | ** |
| 7 | ** Copyright (C) 2007 GESTES Cedric |
| 8 | ** This program is free software; you can redistribute it and/or modify |
| 9 | ** it under the terms of the GNU General Public License as published by |
| 10 | ** the Free Software Foundation; either version 3 of the License, or |
| 11 | ** (at your option) any later version. |
| 12 | ** |
| 13 | ** This program is distributed in the hope that it will be useful, |
| 14 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | ** GNU General Public License for more details. |
| 17 | ** |
| 18 | ** You should have received a copy of the GNU General Public License |
| 19 | ** along with this program; if not, write to the Free Software |
| 20 | ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 21 | */ |
| 22 | |
| 23 | #include <stdlib.h> |
| 24 | #include <string.h> |
| 25 | #include <signal.h> |
| 26 | |
| 27 | #include "systray-notifications.h" |
| 28 | #include "systray-interface.h" |
| 29 | #include "systray-struct.h" |
| 30 | |
| 31 | |
| 32 | CD_APPLET_ON_CLICK_BEGIN |
| 33 | |
| 34 | if (myDesklet) |
| 35 | gldi_desklet_show (myDesklet); |
| 36 | else if (myData.dialog) |
| 37 | gldi_dialog_toggle_visibility (myData.dialog); |
| 38 | |
| 39 | CD_APPLET_ON_CLICK_END |
| 40 | |
| 41 | |
| 42 | CD_APPLET_ON_MIDDLE_CLICK_BEGIN |
| 43 | |
| 44 | if (myData.tray) |
| 45 | { |
| 46 | if (myData.dialog) |
| 47 | gldi_dialog_hide (myData.dialog); |
| 48 | } |
| 49 | |
| 50 | CD_APPLET_ON_MIDDLE_CLICK_END |
| 51 | |
| 52 | /* |
| 53 | CD_APPLET_ON_BUILD_MENU_BEGIN |
| 54 | |
| 55 | CD_APPLET_ON_BUILD_MENU_END |
| 56 | */ |