File: refresh_active_callback.C

package info (click to toggle)
peruser 4b33-10
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,944 kB
  • ctags: 1,064
  • sloc: cpp: 22,397; perl: 2,733; makefile: 345; sh: 335
file content (21 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "npconfig.h"

void refresh_active_callback( GtkWidget *widget, gpointer data )
{
   NP_Config *config = ( NP_Config *)data;

   const char *server = config->subscription[ config->current_server ];

   char buffer[ 1024 ];
   snprintf( buffer, sizeof buffer, "%s/.peruser_spool/%s-LIST",
             config->home, server );
   remove( buffer );

   snprintf( buffer, sizeof buffer, "%s/.peruser_spool/%s-TIMESTAMP", 
             config->home, server );
   remove( buffer );

   lists_update_callback( config->update_button, data );

   return;
}