[snappy] ui: reset minimum window size when loading new file
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] ui: reset minimum window size when loading new file
- Date: Tue, 12 Mar 2013 14:52:20 +0000 (UTC)
commit 89574cca10213bc5cc1316e9bd14927a1ab848f0
Author: Luis de Bethencourt <luis debethencourt com>
Date: Tue Mar 12 10:52:13 2013 -0400
ui: reset minimum window size when loading new file
src/user_interface.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index 785f57c..cc5b208 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -1150,10 +1150,19 @@ interface_load_uri (UserInterface * ui, gchar * uri)
ui->media_height);
size_change (CLUTTER_STAGE (ui->stage), NULL, 0, ui);
- if (!ui->fullscreen)
+ if (!ui->fullscreen) {
+ ui->stage_width = ui->media_width;
+ ui->stage_height = ui->media_height;
+
+ gtk_widget_set_size_request (ui->clutter_widget, ui->stage_width,
+ ui->stage_height);
clutter_actor_set_size (CLUTTER_ACTOR (ui->stage), ui->media_width,
ui->media_height);
+ gtk_window_resize (GTK_WINDOW (ui->window), ui->media_width,
+ ui->media_height);
+ }
+
if (!ui->penalty_box_active)
show_controls (ui, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]