| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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)); |
| 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 |