[gnome-builder/wip/gtk4-port] libide/gui: only maximize if we restored window size
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/gui: only maximize if we restored window size
- Date: Sun, 17 Apr 2022 00:53:34 +0000 (UTC)
commit 3c63fb24ccfa366523b8d37bccd6842e03cf5d81
Author: Christian Hergert <chergert redhat com>
Date: Sat Apr 16 17:53:26 2022 -0700
libide/gui: only maximize if we restored window size
src/libide/gui/ide-workspace.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-workspace.c b/src/libide/gui/ide-workspace.c
index 8e8fac856..6312127c0 100644
--- a/src/libide/gui/ide-workspace.c
+++ b/src/libide/gui/ide-workspace.c
@@ -426,8 +426,11 @@ ide_workspace_realize (GtkWidget *widget)
GTK_WIDGET_CLASS (ide_workspace_parent_class)->realize (widget);
- if (maximized)
- gtk_window_maximize (GTK_WINDOW (self));
+ if (IDE_WORKSPACE_GET_CLASS (self)->restore_size)
+ {
+ if (maximized)
+ gtk_window_maximize (GTK_WINDOW (self));
+ }
}
static IdeFrame *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]