Skip to content

Commit

Permalink
Fixing resizing programmatically when resizable is false #370
Browse files Browse the repository at this point in the history
- GTK3 manual recommends using gtk_widget_set_size_request() to resize
without geometry constaints.
- https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-resize
  • Loading branch information
IanTrudel committed Sep 30, 2017
1 parent afae967 commit 912c55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoes/native/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ void shoes_native_app_title(shoes_app *app, char *msg) {

void shoes_native_app_resize_window(shoes_app *app) {
if ((app->os.window != NULL) && (app->width > 0 && app->height > 0)) {
gtk_window_resize(GTK_WINDOW(app->os.window), app->width, app->height);
gtk_widget_set_size_request(GTK_WINDOW(app->os.window), app->width, app->height);
}
}

Expand Down

0 comments on commit 912c55f

Please sign in to comment.