122 int spacing; |
122 int spacing; |
123 int columnspacing; |
123 int columnspacing; |
124 int rowspacing; |
124 int rowspacing; |
125 } UiGtkTabView; |
125 } UiGtkTabView; |
126 |
126 |
|
127 typedef struct UiHeaderbarContainer { |
|
128 UiContainer container; |
|
129 GtkWidget *centerbox; |
|
130 int part; |
|
131 UiHeaderbarAlternative alternative; /* only used by fallback headerbar */ |
|
132 } UiHeaderbarContainer; |
|
133 |
127 GtkWidget* ui_gtk_vbox_new(int spacing); |
134 GtkWidget* ui_gtk_vbox_new(int spacing); |
128 GtkWidget* ui_gtk_hbox_new(int spacing); |
135 GtkWidget* ui_gtk_hbox_new(int spacing); |
129 |
136 |
130 UiContainer* ui_frame_container(UiObject *obj, GtkWidget *frame); |
137 UiContainer* ui_frame_container(UiObject *obj, GtkWidget *frame); |
131 void ui_frame_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); |
138 void ui_frame_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); |
151 |
158 |
152 UiGtkTabView* ui_widget_get_tabview_data(UIWIDGET tabview); |
159 UiGtkTabView* ui_widget_get_tabview_data(UIWIDGET tabview); |
153 |
160 |
154 void ui_gtk_notebook_select_tab(GtkWidget *widget, int tab); |
161 void ui_gtk_notebook_select_tab(GtkWidget *widget, int tab); |
155 |
162 |
|
163 #if GTK_CHECK_VERSION(3, 10, 0) |
|
164 UiContainer* ui_headerbar_container(UiObject *obj, GtkWidget *headerbar); |
|
165 void ui_headerbar_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); |
|
166 #endif |
|
167 |
|
168 UiContainer* ui_headerbar_fallback_container(UiObject *obj, GtkWidget *headerbar); |
|
169 void ui_headerbar_fallback_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); |
|
170 |
156 #ifdef __cplusplus |
171 #ifdef __cplusplus |
157 } |
172 } |
158 #endif |
173 #endif |
159 |
174 |
160 #endif /* CONTAINER_H */ |
175 #endif /* CONTAINER_H */ |