ui/gtk/text.c

changeset 1016
ccde46662db7
parent 975
e0ac49797a30
--- a/ui/gtk/text.c	Wed Dec 17 18:31:20 2025 +0100
+++ b/ui/gtk/text.c	Thu Dec 18 17:50:15 2025 +0100
@@ -756,7 +756,7 @@
 // TODO: move to common
 static UiPathElm* default_pathelm_func(const char* full_path, size_t len, size_t* ret_nelm, void* data) {
     cxstring *pathelms;
-    size_t nelm = cx_strsplit_a(cxDefaultAllocator, cx_strn(full_path, len), CX_STR("/"), 4096, &pathelms);
+    size_t nelm = cx_strsplit_a(cxDefaultAllocator, cx_strn(full_path, len), cx_str("/"), 4096, &pathelms);
 
     if (nelm == 0) {
         *ret_nelm = 0;
@@ -1042,7 +1042,7 @@
         
         gtk_box_append(GTK_BOX(pathtf->hbox), button);
         
-        if(i+1 < pathtf->current_nelm && cx_strcmp(cx_strn(elm->name, elm->name_len), CX_STR("/"))) {
+        if(i+1 < pathtf->current_nelm && cx_strcmp(cx_strn(elm->name, elm->name_len), cx_str("/"))) {
             GtkWidget *path_separator = gtk_label_new("/");
             gtk_widget_add_css_class(path_separator, "pathbar-button-inactive");
             gtk_box_append(GTK_BOX(pathtf->hbox), path_separator);

mercurial