587 |
g_object_set_data(G_OBJECT(window), "cur_view", appdata->cur_view); |
g_object_set_data(G_OBJECT(window), "cur_view", appdata->cur_view); |
588 |
|
|
589 |
appdata->cur_gpx = gpx; |
appdata->cur_gpx = gpx; |
590 |
char *title = g_strdup_printf("GPXView - %s", gpx->name); |
char *title = g_strdup_printf("%s - GPXView", gpx->name); |
591 |
gtk_window_set_title(GTK_WINDOW(window), title); |
gtk_window_set_title(GTK_WINDOW(window), title); |
592 |
g_free(title); |
g_free(title); |
593 |
|
|
1433 |
gtk_widget_destroy(dialog); |
gtk_widget_destroy(dialog); |
1434 |
} |
} |
1435 |
|
|
1436 |
void on_window_destroy (GtkWidget *widget, gpointer data); |
static void on_window_destroy (GtkWidget *widget, gpointer data); |
1437 |
|
|
1438 |
#ifndef USE_MAEMO |
#ifndef USE_MAEMO |
1439 |
static void |
static void |
1923 |
puts("everything is gone"); |
puts("everything is gone"); |
1924 |
} |
} |
1925 |
|
|
1926 |
void on_window_destroy (GtkWidget *widget, gpointer data) { |
static void on_window_destroy (GtkWidget *widget, gpointer data) { |
1927 |
appdata_t *appdata = (appdata_t*)data; |
appdata_t *appdata = (appdata_t*)data; |
1928 |
|
|
1929 |
gconf_save_state(appdata); |
gconf_save_state(appdata); |