42 ct->add(ct, widget, FALSE); |
42 ct->add(ct, widget, FALSE); |
43 |
43 |
44 return widget; |
44 return widget; |
45 } |
45 } |
46 |
46 |
|
47 UIWIDGET ui_llabel(UiObject *obj, char *label) { |
|
48 UIWIDGET widget = ui_label(obj, label); |
|
49 gtk_misc_set_alignment(GTK_MISC(widget), 0, .5); |
|
50 return widget; |
|
51 } |
|
52 |
|
53 UIWIDGET ui_rlabel(UiObject *obj, char *label) { |
|
54 UIWIDGET widget = ui_label(obj, label); |
|
55 //gtk_label_set_justify(GTK_LABEL(widget), GTK_JUSTIFY_RIGHT); |
|
56 gtk_misc_set_alignment(GTK_MISC(widget), 1, .5); |
|
57 return widget; |
|
58 } |
|
59 |
47 UIWIDGET ui_space(UiObject *obj) { |
60 UIWIDGET ui_space(UiObject *obj) { |
48 GtkWidget *widget = gtk_label_new(""); |
61 GtkWidget *widget = gtk_label_new(""); |
49 UiContainer *ct = uic_get_current_container(obj); |
62 UiContainer *ct = uic_get_current_container(obj); |
50 ct->add(ct, widget, TRUE); |
63 ct->add(ct, widget, TRUE); |
51 |
64 |
52 return widget; |
65 return widget; |
53 } |
66 } |
|
67 |
|
68 UIWIDGET ui_separator(UiObject *obj) { |
|
69 GtkWidget *widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); |
|
70 UiContainer *ct = uic_get_current_container(obj); |
|
71 ct->add(ct, widget, FALSE); |
|
72 |
|
73 return widget; |
|
74 } |
|
75 |