Show
Ignore:
Timestamp:
07/19/09 00:21:28 (3 years ago)
Author:
Leo Antunes <leo@…>
Children:
c5606aa8a15998dd28faee8a3141cb8ac83b8d24
Parents:
ebf9132bb918ff995e2b561867be329ec3e9a9ee
git-committer:
Leo Antunes <leo@…> (07/19/09 00:21:28)
Message:

add option to activate only if Available

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • prefs.c

    rbbdcdb4 reac542b  
    22 awayonlock - plugin to set away status on screensaver activation 
    33 Copyright (C) 2009  Leo Antunes <leo@costela.net> 
    4   
     4 
    55 This program is free software; you can redistribute it and/or 
    66 modify it under the terms of the GNU General Public License 
    77 as published by the Free Software Foundation; either version 2 
    88 of the License, or (at your option) any later version. 
    9   
     9 
    1010 This program is distributed in the hope that it will be useful, 
    1111 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1212 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1313 GNU General Public License for more details. 
    14   
     14 
    1515 You should have received a copy of the GNU General Public License 
    1616 along with this program; if not, write to the Free Software 
     
    5454                        purple_plugin_pref_add_choice(ppref, (gchar *)purple_savedstatus_get_title(statuses->data), creation_time); 
    5555                        /* 
    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? 
    6058                         */ 
    6159                        //g_free(creation_time); 
     
    6462        purple_plugin_pref_frame_add(frame, ppref); 
    6563        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); 
    6667 
    6768        return frame;