Closed tuttza closed 4 years ago
I think I found the issue(and a fix!) that was causing windows not to be able to shrink after making the window larger with Menus enabled.
windows
Menus
The culprit resides in gtk.c essentially we were incorrectly referencing the widget pointer.
gtk.c
GtkWidget *wdg = app->slot->oscanvas; gtk_widget_set_size_request(wdg, app->width, app->height);
GtkWidget *wdg = app->slot->oscanvas; gtk_widget_set_size_request(&wdg, app->width, app->height);
Also I added some braces around if statements (which is really most of the other changes). I think we should start doing that seems to be a good practice follow.
if
Sadly there are problems.
Reference #430
I think I found the issue(and a fix!) that was causing
windows
not to be able to shrink after making the window larger withMenus
enabled.The culprit resides in
gtk.c
essentially we were incorrectly referencing the widget pointer.before:
after:
Also I added some braces around
if
statements (which is really most of the other changes). I think we should start doing that seems to be a good practice follow.