static void window_unload(Window *window) {
  text_layer_destroy(s_text_layer);
  scroll_layer_destroy(s_scroll_layer);
  
  window_destroy(s_main_window);
  s_main_window = NULL;
}
Пример #2
0
static void window_disappear(Window *window) {
  gbitmap_destroy(urlab_logo);
  /* layer_destroy(image_layer); */
  bitmap_layer_destroy(image_layer);
  text_layer_destroy(text_layer);
  scroll_layer_destroy(scroll_layer);
}
Пример #3
0
void scroll_text_layer_destroy(ScrollTextLayer* layer) {
  if (layer == NULL) {
    return;
  }
  text_layer_destroy(scroll_text_layer_get_text_layer(layer));
  scroll_layer_destroy(scroll_text_layer_get_scroll_layer(layer));
  free(layer);
}
Пример #4
0
static void traveltime_details_window_unload(Window *window) {
  text_layer_destroy(traveltime_bkg_text_layer);
  text_layer_destroy(traveltime_details_text_layer);
  text_layer_destroy(traveltime_from_text_layer);
  text_layer_destroy(traveltime_name_text_layer);
  scroll_layer_destroy(traveltime_details_scroll_layer);
  window_destroy(window);
  traveltime_details = NULL;
}
Пример #5
0
static void main_window_unload(Window *window) {
  text_layer_destroy(title_layer);
  text_layer_destroy(region_layer);
  text_layer_destroy(reports_layer);
  scroll_layer_destroy(s_scroll_layer);
  layer_destroy(s_indicator_up_layer);
  layer_destroy(s_indicator_down_layer);


}
static void window_unload(Window *window) {
    text_layer_destroy(s_title_layer);  
    s_title_layer=NULL;  
    for (int i = 0; i < 5; ++i)        
    {
        text_layer_destroy(s_sets_time_layer[i]);  
        s_sets_time_layer[i]=NULL;  

        text_layer_destroy(s_sets_num_layer[i]);  
        s_sets_num_layer[i]=NULL;          
    }
	
    scroll_layer_destroy(s_scroll_layer);
    
    window_destroy(window);
    s_stats_sets_time_window = NULL;
}
static void detail_window_unload(Window *window)
{
  text_layer_destroy(s_detail_title_text_layer);
  s_detail_title_text_layer = NULL;
  text_layer_destroy(s_detail_text_layer);
  s_detail_text_layer = NULL;
  scroll_layer_destroy(s_detail_scroll_layer);
  s_detail_scroll_layer = NULL;

  window_destroy(s_detail_window);
  s_detail_window = NULL;

  free(s_detail_title);
  s_detail_title = NULL;
  free(s_detail_text);
  s_detail_text = NULL;
}
Пример #8
0
void thread_window_unload(Window *window)
{
	DEBUG_MSG("thread_window_unload");

	free_netimage();

	if(current_thread.body != NULL)
	{
		nt_Free(current_thread.body);
		current_thread.body = NULL;
	}

	if (current_thread.image != NULL)
	{
		gbitmap_destroy(current_thread.image);
		current_thread.image = NULL;
	}

	layer_destroy(thread_title_layer);

	if(thread_body_layer != NULL)
	{
		text_layer_destroy(thread_body_layer);
		thread_body_layer = NULL;
	}

	if(thread_bitmap_layer != NULL)
	{
		bitmap_layer_destroy(thread_bitmap_layer);
		thread_bitmap_layer = NULL;
	}

	inverter_layer_destroy(thread_inverter_layer);
	text_layer_destroy(thread_view_comments_layer);
	scroll_layer_destroy(thread_scroll_layer);
}
Пример #9
0
static void handle_window_unload(Window* window) {
  destroy_ui();
  
  text_layer_destroy(text_layer);
  scroll_layer_destroy(scroll_layer);
}
Пример #10
0
static void window_unload(Window *window) {
  text_layer_destroy(s_text_layer);
  scroll_layer_destroy(s_scroll_layer);
}
Пример #11
0
static void history_window_unload(Window *window) {
  text_layer_destroy(history_layer);
  scroll_layer_destroy(history_scroller);
}
static void window_unload(Window *window) {
  inverter_layer_destroy(inverter_layer);
  text_layer_destroy(text_layer);
  scroll_layer_destroy(scroll_layer);
}
Пример #13
0
static void window_unload(Window *window) {
  scroll_layer_destroy(s_scroll_layer);
  text_layer_destroy(s_content_layer);
  layer_destroy(s_indicator_up_layer);
  layer_destroy(s_indicator_down_layer);
}
Пример #14
0
void instruction_window_unload(Window *window) {
  scroll_layer_destroy(s_instruction_scroll_layer);
  text_layer_destroy(s_instruction_text_layer);
  window_destroy(s_instruction_window);
  s_instruction_window = NULL;
}