Debian Codegraph @

systray/src/systray-config.c

raw symbols SCIP
1 /*
2 ** Login : <[email protected]>
3 ** Started on Fri Nov 30 05:31:31 2007 GESTES Cedric
4 ** $Id$
5 **
6 ** Copyright (C) 2007 GESTES Cedric
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 3 of the License, or
10 ** (at your option) any later version.
11 **
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program; if not, write to the Free Software
19 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22 #include <cairo-dock.h>
23 #include <string.h>
24
25 #include "systray-config.h"
26 #include "systray-init.h"
27 #include "systray-interface.h"
28 #include "systray-struct.h"
29
30
31 CD_APPLET_GET_CONFIG_BEGIN
32 CD_CONFIG_RENAME_GROUP ("GUI", "Configuration");
33 myConfig.shortcut = CD_CONFIG_GET_STRING_WITH_DEFAULT ("Configuration", "shortkey", "<Ctrl>F2");
34 myConfig.iIconPacking = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "icon packing", 0);
35 CD_APPLET_GET_CONFIG_END
36
37
38 CD_APPLET_RESET_CONFIG_BEGIN
39 g_free (myConfig.shortcut);
40 CD_APPLET_RESET_CONFIG_END
41
42
43 CD_APPLET_RESET_DATA_BEGIN
44 if (myData.dialog)
45 {
46 gldi_object_unref (GLDI_OBJECT(myData.dialog)); // detruit aussi le widget interactif.
47 myData.dialog = NULL;
48 }
49 else if (myDesklet && myData.tray)
50 {
51 gldi_desklet_steal_interactive_widget (myDesklet);
52 gtk_widget_destroy (GTK_WIDGET (myData.tray));
53 myData.tray = NULL;
54 }
55 CD_APPLET_RESET_DATA_END