ui/gtk/toolkit.c

changeset 60
ee4e4742391e
parent 56
294d5515583a
--- a/ui/gtk/toolkit.c	Wed Oct 23 21:46:43 2024 +0200
+++ b/ui/gtk/toolkit.c	Sun Oct 27 18:24:37 2024 +0100
@@ -296,7 +296,7 @@
     uic_unbind_var(var);
     
     if(var->type == UI_VAR_SPECIAL) {
-        free(var);
+        ui_free(var->from_ctx, var);
     } else {
         ui_free(var->from_ctx, var);
         // TODO: free or unbound
@@ -351,15 +351,25 @@
 ".ui_test {\n"
 "  background-color: red;\n"
 "}\n"
+".ui_label_title {\n"
+"  font-weight: bold;\n"
+"}\n"
 ;
 
 #elif GTK_MAJOR_VERSION == 3
 static const char *ui_gtk_css = 
-"#path-textfield-box {"
-"  background-color: @theme_base_color;"
-"  border-radius: 5px;"
-"  padding: 0px;"
-"}";
+"#path-textfield-box {\n"
+"  background-color: @theme_base_color;\n"
+"  border-radius: 5px;\n"
+"  padding: 0px;\n"
+"}"
+".ui_test {\n"
+"  background-color: red;\n"
+"}\n"
+".ui_label_title {\n"
+"  font-weight: bold;\n"
+"}\n"
+;
 #endif
 
 void ui_css_init(void) {

mercurial