ui/winui/button.cpp

branch
newapi
changeset 379
958bae372271
parent 374
eae5d6623fd3
--- a/ui/winui/button.cpp	Sun Nov 10 15:27:44 2024 +0100
+++ b/ui/winui/button.cpp	Tue Nov 12 14:58:03 2024 +0100
@@ -46,7 +46,7 @@
 
 
 
-static void set_button_label(ButtonBase button, const char* label, const char* stockid, const char *icon, UiLabelType type) {
+void ui_set_button_label(ButtonBase button, const char* label, const char* stockid, const char *icon, UiLabelType type) {
 	// TODO: stockid
 
 	if (type == UI_LABEL_ICON) {
@@ -92,7 +92,7 @@
 
 	// create button with label
 	Button button = Button();
-	set_button_label(button, args.label, args.stockid, args.icon, args.labeltype);
+	ui_set_button_label(button, args.label, args.stockid, args.icon, args.labeltype);
 
 	// create toolkit wrapper object and register destructor
 	UIElement elm = button;
@@ -180,7 +180,7 @@
 	UiObject* current = uic_current_obj(obj);
 
 	// set label
-	set_button_label(button, args.label, args.stockid, args.icon, args.labeltype);
+	ui_set_button_label(button, args.label, args.stockid, args.icon, args.labeltype);
 	togglebutton_register_callback(button, obj, args);
 
 	// create toolkit wrapper object and register destructor
@@ -267,7 +267,7 @@
 	UiObject* current = uic_current_obj(obj);
 
 	// set label
-	set_button_label(button, args.label, args.stockid, args.icon, args.labeltype);
+	ui_set_button_label(button, args.label, args.stockid, args.icon, args.labeltype);
 	togglebutton_register_callback(button, obj, args);
 
 	// create toolkit wrapper object and register destructor

mercurial