mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 22:59:58 -06:00
GTK: hook SetMinSize. fuck around with gtk_widget_set_size_request() so the window can be resized smaller than the initial size.
This commit is contained in:
@ -134,6 +134,7 @@ uiUnixControlDefaultEnabled(uiWindow)
|
||||
uiUnixControlDefaultEnable(uiWindow)
|
||||
uiUnixControlDefaultDisable(uiWindow)
|
||||
uiUnixControlDefaultSetFocus(uiWindow)
|
||||
uiUnixControlDefaultSetMinSize(uiWindow)
|
||||
// TODO?
|
||||
uiUnixControlDefaultSetContainer(uiWindow)
|
||||
|
||||
@ -310,6 +311,7 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar,
|
||||
|
||||
// set client size proper
|
||||
gtk_widget_set_size_request(w->childHolderWidget, width, height);
|
||||
gtk_widget_set_size_request(w->childHolderWidget, 1, 1);
|
||||
|
||||
// show everything in the vbox, but not the GtkWindow itself
|
||||
gtk_widget_show_all(w->vboxWidget);
|
||||
|
Reference in New Issue
Block a user