Sun, 09 Jun 2024 10:24:49 +0200
add ui_window_size and ui_simple_window functions (GTK)
ui/gtk/window.c | file | annotate | diff | comparison | revisions |
--- a/ui/gtk/window.c Sun Apr 07 21:56:56 2024 +0200 +++ b/ui/gtk/window.c Sun Jun 09 10:24:49 2024 +0200 @@ -151,10 +151,17 @@ return create_window(title, window_data, FALSE); } -UiObject* ui_simplewindow(const char *title, void *window_data) { +UiObject* ui_simple_window(const char *title, void *window_data) { return create_window(title, window_data, TRUE); } +void ui_window_size(UiObject *obj, int width, int height) { + gtk_window_set_default_size( + GTK_WINDOW(obj->widget), + width, + height); +} + static void ui_dialog_response (GtkDialog* self, gint response_id, gpointer user_data) { UiEventData *data = user_data; UiEvent evt;