static void caja_emblem_sidebar_refresh (CajaEmblemSidebar *emblem_sidebar) { caja_emblem_refresh_list (); gtk_container_foreach (GTK_CONTAINER (emblem_sidebar->details->emblems_table), (GtkCallback)remove_widget, emblem_sidebar->details->emblems_table); caja_emblem_sidebar_populate (emblem_sidebar); }
static void caja_emblem_sidebar_init (CajaEmblemSidebar *emblem_sidebar) { GtkWidget *widget; emblem_sidebar->details = g_new0 (CajaEmblemSidebarDetails, 1); create_popup_menu (emblem_sidebar); widget = caja_emblem_sidebar_create_container (emblem_sidebar); caja_emblem_sidebar_populate (emblem_sidebar); g_signal_connect_object (caja_signaller_get_current (), "emblems_changed", G_CALLBACK (emblems_changed_callback), emblem_sidebar, 0); gtk_box_pack_start (GTK_BOX (emblem_sidebar), widget, TRUE, TRUE, 0); }