341 |
341 |
342 return widget; |
342 return widget; |
343 } |
343 } |
344 |
344 |
345 |
345 |
346 #if GTK_MAJOR_VERSION >= 4 |
|
347 #define SCROLLEDWINDOW_NEW() gtk_scrolled_window_new() |
|
348 #else |
|
349 #define SCROLLEDWINDOW_NEW() gtk_scrolled_window_new(NULL, NULL) |
|
350 #endif |
|
351 UIWIDGET ui_scrolledwindow_create(UiObject* obj, UiFrameArgs args) { |
346 UIWIDGET ui_scrolledwindow_create(UiObject* obj, UiFrameArgs args) { |
352 UiObject* current = uic_current_obj(obj); |
347 UiObject* current = uic_current_obj(obj); |
353 UI_APPLY_LAYOUT1(current, args); |
348 UI_APPLY_LAYOUT1(current, args); |
354 |
349 |
355 GtkWidget *sw = SCROLLEDWINDOW_NEW(); |
350 GtkWidget *sw = SCROLLEDWINDOW_NEW(); |