Skip to content

Commit 4115af8

Browse files
committed
Fixup previous merge
1 parent bbdb5a8 commit 4115af8

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

api/cpp/include/slint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class WindowRc
148148
(*reinterpret_cast<F *>(data))(state);
149149
};
150150
SetRenderingNotifierError err;
151-
if (cbindgen_private::sixtyfps_windowrc_set_rendering_notifier(
151+
if (cbindgen_private::slint_windowrc_set_rendering_notifier(
152152
&inner, actual_cb,
153153
[](void *user_data) { delete reinterpret_cast<F *>(user_data); },
154154
new F(std::move(callback)), &err)) {
@@ -158,7 +158,7 @@ class WindowRc
158158
}
159159
}
160160

161-
void request_redraw() const { cbindgen_private::sixtyfps_windowrc_request_redraw(&inner); }
161+
void request_redraw() const { cbindgen_private::slint_windowrc_request_redraw(&inner); }
162162

163163
private:
164164
cbindgen_private::WindowRcOpaque inner;

examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
88
find_package(OpenGLES2 QUIET)
99

1010
if (NOT TARGET Slint::Slint)
11-
find_package(SixtyFPS REQUIRED)
11+
find_package(Slint REQUIRED)
1212
include(FetchContent)
1313
endif()
1414

@@ -26,6 +26,6 @@ endif()
2626
if (SLINT_FEATURE_INTERPRETER)
2727
add_subdirectory(iot-dashboard/)
2828
endif()
29-
if (OpenGLES2_FOUND AND SIXTYFPS_FEATURE_BACKEND_GL)
29+
if (OpenGLES2_FOUND AND SLINT_FEATURE_BACKEND_GL)
3030
add_subdirectory(opengl_underlay)
3131
endif()

internal/core/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::rc::Rc;
1010
use crate::component::ComponentVTable;
1111
use crate::window::WindowRc;
1212

13-
/// This enum describes a low-level access to specific graphcis APIs used
13+
/// This enum describes a low-level access to specific graphics APIs used
1414
/// by the renderer.
1515
#[derive(Clone)]
1616
#[non_exhaustive]
@@ -76,7 +76,7 @@ impl<F: FnMut(RenderingState, &GraphicsAPI)> RenderingNotifier for F {
7676
}
7777

7878
/// This enum describes the different error scenarios that may occur when the applicaton
79-
/// registers a rendering notifier on a [`sixtyfps::Window`].
79+
/// registers a rendering notifier on a [`slint::Window`].
8080
#[derive(Debug, Clone)]
8181
#[repr(C)]
8282
#[non_exhaustive]

internal/core/window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ pub mod ffi {
692692

693693
/// C binding to the set_rendering_notifier() API of Window
694694
#[no_mangle]
695-
pub unsafe extern "C" fn sixtyfps_windowrc_set_rendering_notifier(
695+
pub unsafe extern "C" fn slint_windowrc_set_rendering_notifier(
696696
handle: *const WindowRcOpaque,
697697
callback: extern "C" fn(rendering_state: RenderingState, user_data: *mut c_void),
698698
drop_user_data: extern "C" fn(user_data: *mut c_void),
@@ -733,7 +733,7 @@ pub mod ffi {
733733

734734
/// This function issues a request to the windowing system to redraw the contents of the window.
735735
#[no_mangle]
736-
pub unsafe extern "C" fn sixtyfps_windowrc_request_redraw(handle: *const WindowRcOpaque) {
736+
pub unsafe extern "C" fn slint_windowrc_request_redraw(handle: *const WindowRcOpaque) {
737737
let window = &*(handle as *const WindowRc);
738738
window.request_redraw();
739739
}

tools/syntax_updater/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,9 @@ fn fold_node(
224224
if args.from.as_str() <= "0.0.6" && from_0_0_6::fold_node(node, file, state)? {
225225
return Ok(true);
226226
}
227-
if args.from.as_str() <= "0.1.0" && from_0_1_0::fold_node(node, file, state)? {
227+
if args.from.as_str() <= "0.1.6" && from_0_1_0::fold_node(node, file, state)? {
228228
return Ok(true);
229229
}
230-
231230
Ok(false)
232231
}
233232

0 commit comments

Comments
 (0)