ui/gtk/container.c

changeset 66
8d490d97aab8
parent 65
4697592e24ba
child 74
55718d4ed227
equal deleted inserted replaced
65:4697592e24ba 66:8d490d97aab8
31 31
32 #include "container.h" 32 #include "container.h"
33 #include "../common/context.h" 33 #include "../common/context.h"
34 #include "../common/object.h" 34 #include "../common/object.h"
35 35
36 static UiBool ui_lb2bool(UiLayoutBool b) {
37 return b == UI_LAYOUT_TRUE ? TRUE : FALSE;
38 }
39
40 static UiLayoutBool ui_bool2lb(UiBool b) {
41 return b ? UI_LAYOUT_TRUE : UI_LAYOUT_FALSE;
42 }
43
44 GtkWidget* ui_gtk_vbox_new() { 36 GtkWidget* ui_gtk_vbox_new() {
45 #ifdef UI_GTK3 37 #ifdef UI_GTK3
46 return gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); 38 return gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
47 #else 39 #else
48 return gtk_vbox_new(FALSE, 0); 40 return gtk_vbox_new(FALSE, 0);

mercurial