2065 |
/********************* end of menu **********************/ |
/********************* end of menu **********************/ |
2066 |
|
|
2067 |
void cleanup(appdata_t *appdata) { |
void cleanup(appdata_t *appdata) { |
2068 |
|
gconf_save_state(appdata); |
2069 |
|
|
2070 |
gpx_free_all(appdata->gpx); |
gpx_free_all(appdata->gpx); |
|
if(appdata->path) free(appdata->path); |
|
|
if(appdata->image_path) free(appdata->image_path); |
|
|
if(appdata->search_str) free(appdata->search_str); |
|
2071 |
|
|
2072 |
#ifdef USE_STACKABLE_WINDOW |
#ifdef USE_STACKABLE_WINDOW |
2073 |
if(appdata->export_menu) submenu_cleanup(appdata->export_menu); |
if(appdata->export_menu) submenu_cleanup(appdata->export_menu); |
2105 |
static void on_window_destroy (GtkWidget *widget, gpointer data) { |
static void on_window_destroy (GtkWidget *widget, gpointer data) { |
2106 |
appdata_t *appdata = (appdata_t*)data; |
appdata_t *appdata = (appdata_t*)data; |
2107 |
|
|
|
gconf_save_state(appdata); |
|
2108 |
gtk_main_quit(); |
gtk_main_quit(); |
2109 |
appdata->window = NULL; |
appdata->window = NULL; |
2110 |
} |
} |