Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions macros/src/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub(crate) fn generate_stack_remove_children() -> syn::Result<proc_macro2::Token
let window = ApplicationWindow::window();
window._add_removed_widget(removed);
window.layout_change(self);
self.update();
}
})
}
Expand Down
1 change: 1 addition & 0 deletions tlib/src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ use std::{

type ActionsMap = Box<
IntMap<
// Emitter id
ObjectId,
(
IntSet<ObjectId>,
Expand Down
4 changes: 2 additions & 2 deletions tlib/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl StaticType for String {

fn dyn_bytes_len(&self) -> usize {
// An extra '\0'
self.bytes().len() + 1
self.len() + 1
}
}

Expand All @@ -368,7 +368,7 @@ impl StaticType for &str {

fn dyn_bytes_len(&self) -> usize {
// An extra '\0'
self.bytes().len() + 1
self.len() + 1
}
}

Expand Down
5 changes: 5 additions & 0 deletions tmui/src/icons/svg_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ impl SvgIcon {
pub fn load_bytes(&mut self, data: &[u8]) {
self.build_from_data(data);
}

#[inline]
pub fn get_view_size(&self) -> Size {
self.view_size
}
}

impl SvgIcon {
Expand Down
1 change: 1 addition & 0 deletions tmui/src/primitive/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use tlib::{
winit::window::WindowId,
};

#[allow(clippy::large_enum_variant)]
pub(crate) enum Message {
/// VSync signal to redraw the window
VSync(WindowId, Instant),
Expand Down
1 change: 1 addition & 0 deletions tmui/src/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ impl Tooltip {
}
}

#[allow(clippy::large_enum_variant)]
pub(crate) enum TooltipStrat<'a> {
Show(&'a str, Point, OptionSize, Option<Styles>),
Hide,
Expand Down
2 changes: 1 addition & 1 deletion tmui/src/views/list_view/list_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl ListStore {

/// @param `internal`
/// - true: The view scrolling triggered internally in ListView
/// requires notifying the scroll bar to change the value.
/// requires notifying the scroll bar to change the value.
///
/// @return `true` if scroll value has updated, should update the image.
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion tmui/src/views/tree_view/tree_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ impl TreeStore {

/// @param `internal`
/// - true: The view scrolling triggered internally in TreeView
/// requires notifying the scroll bar to change the value.
/// requires notifying the scroll bar to change the value.
///
/// @return `true` if scroll value has updated, should update the image.
#[inline]
Expand Down