MCPcopy Create free account
hub / github.com/angular-rust/ux-components / push

Method push

src/rendering/backend/native/utils/path_bar.rs:262–295  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

260 }
261
262 fn push(&self, name: &str) -> usize {
263 let pathbar = self.as_ref();
264 let mut props = pathbar.props.borrow_mut();
265
266 if props.clear_on_change {
267 // path_bar_set_text(bar, "");
268 }
269
270 // let crumb = path_bar_button_new(name);
271 // actor_add_child(CLUTTER_ACTOR (bar), crumb);
272 // pathbar.crumbs = g_list_insert(pathbar.crumbs, crumb, pathbar.current_level);
273
274 // if !pathbar.entry {
275 // if pathbar.current_level {
276 // let old_last_crumb =
277 // g_list_nth_data(pathbar.crumbs, pathbar.current_level - 1);
278
279 // stylable_set_style_class(STYLABLE(old_last_crumb), None);
280 // }
281
282 // stylable_set_style_class(STYLABLE(crumb), "End");
283 // }
284
285 props.current_level += 1;
286
287 // g_signal_connect(crumb, "clicked",
288 // G_CALLBACK(path_bar_crumb_clicked_cb), bar);
289
290 // path_bar_animate_button(bar, crumb, false);
291 // actor_queue_relayout(CLUTTER_ACTOR(bar));
292 // g_object_notify(G_OBJECT(bar), "level");
293
294 props.current_level
295 }
296
297 /// set_clear_on_change:
298 /// @bar: A #PathBar

Callers 15

newMethod · 0.80
refreshMethod · 0.80
newMethod · 0.80
newMethod · 0.80
newMethod · 0.80
addMethod · 0.80
newMethod · 0.80
newMethod · 0.80
newMethod · 0.80
newMethod · 0.80
refreshMethod · 0.80
newMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected