Changeset eac542b8dbbb0cd226442fbe8494256371810a8a for prefs.c
- Timestamp:
- 07/19/09 00:21:28 (3 years ago)
- Children:
- c5606aa8a15998dd28faee8a3141cb8ac83b8d24
- Parents:
- ebf9132bb918ff995e2b561867be329ec3e9a9ee
- git-committer:
- Leo Antunes <leo@…> (07/19/09 00:21:28)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
prefs.c
rbbdcdb4 reac542b 2 2 awayonlock - plugin to set away status on screensaver activation 3 3 Copyright (C) 2009 Leo Antunes <leo@costela.net> 4 4 5 5 This program is free software; you can redistribute it and/or 6 6 modify it under the terms of the GNU General Public License 7 7 as published by the Free Software Foundation; either version 2 8 8 of the License, or (at your option) any later version. 9 9 10 10 This program is distributed in the hope that it will be useful, 11 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 13 GNU General Public License for more details. 14 14 15 15 You should have received a copy of the GNU General Public License 16 16 along with this program; if not, write to the Free Software … … 54 54 purple_plugin_pref_add_choice(ppref, (gchar *)purple_savedstatus_get_title(statuses->data), creation_time); 55 55 /* 56 * FIXME: memleak! how can we free this after the frame has 57 * been destroyed? Alternatively, how could we pass a 58 * pointer to the original creation_time inside the 59 * PurpleSavedStatus struct? 56 * FIXME: memleak! how can we free this after the frame has 57 * been destroyed? 60 58 */ 61 59 //g_free(creation_time); … … 64 62 purple_plugin_pref_frame_add(frame, ppref); 65 63 g_list_free(statuses); 64 65 ppref = purple_plugin_pref_new_with_name_and_label(AWAYONLOCK_PREF_AVAILABLE_ONLY, _("Activate only if available")); 66 purple_plugin_pref_frame_add(frame, ppref); 66 67 67 68 return frame;