ui/gtk/toolkit.c

branch
newapi
changeset 411
3e91b7aff6a1
parent 396
4cb216085479
child 413
b8e41d42f400
equal deleted inserted replaced
410:a080c69125d1 411:3e91b7aff6a1
298 ui_destroy_boundvar(data->obj->ctx, data->var); 298 ui_destroy_boundvar(data->obj->ctx, data->var);
299 } 299 }
300 free(data); 300 free(data);
301 } 301 }
302 302
303 void ui_destroy_widget_var(GtkWidget *object, UiVar *var) {
304 ui_destroy_boundvar(NULL, var);
305 }
306
303 void ui_destroy_boundvar(UiContext *ctx, UiVar *var) { 307 void ui_destroy_boundvar(UiContext *ctx, UiVar *var) {
304 uic_unbind_var(var); 308 uic_unbind_var(var);
305 309
306 if(var->type == UI_VAR_SPECIAL) { 310 if(var->type == UI_VAR_SPECIAL) {
307 ui_free(var->from_ctx, var); 311 ui_free(var->from_ctx, var);
360 " background-color: red;\n" 364 " background-color: red;\n"
361 "}\n" 365 "}\n"
362 ".ui_label_title {\n" 366 ".ui_label_title {\n"
363 " font-weight: bold;\n" 367 " font-weight: bold;\n"
364 "}\n" 368 "}\n"
369 ".ui-listbox-header {\n"
370 " font-weight: bold;\n"
371 " margin-left: 10px;\n"
372 " margin-top: 12px;\n"
373 " margin-bottom: 10px;\n"
374 "}\n"
375 ".ui-listbox-header-first {\n"
376 " font-weight: bold;\n"
377 " margin-left: 10px;\n"
378 " margin-top: 4px;\n"
379 " margin-bottom: 10px;\n"
380 "}\n"
365 ; 381 ;
366 382
367 #elif GTK_MAJOR_VERSION == 3 383 #elif GTK_MAJOR_VERSION == 3
368 static const char *ui_gtk_css = 384 static const char *ui_gtk_css =
369 "#path-textfield-box {\n" 385 "#path-textfield-box {\n"

mercurial