945 |
static void on_cache_destroy (GtkWidget *widget, appdata_t *appdata) { |
static void on_cache_destroy (GtkWidget *widget, appdata_t *appdata) { |
946 |
appdata->cur_cache = NULL; |
appdata->cur_cache = NULL; |
947 |
|
|
948 |
|
HildonWindowStack *stack = hildon_window_stack_get_default(); |
949 |
|
appdata->window = HILDON_WINDOW(hildon_window_stack_peek(stack)); |
950 |
|
|
951 |
/* restore cur_view */ |
/* restore cur_view */ |
952 |
appdata->cur_view = g_object_get_data(G_OBJECT(widget), "cur_view"); |
appdata->cur_view = g_object_get_data(G_OBJECT(widget), "cur_view"); |
953 |
} |
} |
954 |
|
|
955 |
void cache_dialog(appdata_t *appdata, cache_t *cache) { |
void cache_dialog(appdata_t *appdata, cache_t *cache) { |
956 |
GtkWidget *window = hildon_stackable_window_new(); |
GtkWidget *window = hildon_stackable_window_new(); |
957 |
|
appdata->window = HILDON_WINDOW(window); |
958 |
|
|
959 |
/* store last "cur_view" in window */ |
/* store last "cur_view" in window */ |
960 |
g_object_set_data(G_OBJECT(window), "cur_view", appdata->cur_view); |
g_object_set_data(G_OBJECT(window), "cur_view", appdata->cur_view); |