ui/gtk/text.c

changeset 29
3fc287f06305
parent 0
2483f517c562
--- a/ui/gtk/text.c	Sun Feb 11 15:59:56 2024 +0100
+++ b/ui/gtk/text.c	Mon Feb 12 17:32:02 2024 +0100
@@ -193,7 +193,7 @@
     return str;
 }
 
-void ui_textarea_set(UiText *text, char *str) {
+void ui_textarea_set(UiText *text, const char *str) {
     gtk_text_buffer_set_text((GtkTextBuffer*)text->obj, str, -1);
     if(text->value.ptr) {
         text->value.free(text->value.ptr);
@@ -632,7 +632,7 @@
     }
 }
 
-UIWIDGET ui_textfield(UiObject *obj, UiString *value) {
+UIWIDGET ui_textfield_deprecated(UiObject *obj, UiString *value) {
     return create_textfield(obj, 0, FALSE, FALSE, value);
 }
 
@@ -648,7 +648,7 @@
     return create_textfield_nv(obj, width, FALSE, FALSE, varname);
 }
 
-UIWIDGET ui_frameless_textfield(UiObject *obj, UiString *value) {
+UIWIDGET ui_frameless_textfield_deprecated(UiObject *obj, UiString *value) {
     return create_textfield(obj, 0, TRUE, FALSE, value);
 }
 
@@ -656,7 +656,7 @@
     return create_textfield_nv(obj, 0, TRUE, FALSE, varname);
 }
 
-UIWIDGET ui_passwordfield(UiObject *obj, UiString *value) {
+UIWIDGET ui_passwordfield_deprecated(UiObject *obj, UiString *value) {
     return create_textfield(obj, 0, FALSE, TRUE, value);
 }
 
@@ -681,7 +681,7 @@
     return str->value.ptr;
 }
 
-void ui_textfield_set(UiString *str, char *value) {
+void ui_textfield_set(UiString *str, const char *value) {
     gtk_entry_set_text(str->obj, value);
     if(str->value.ptr) {
         str->value.free(str->value.ptr);

mercurial