[connections] window, display: Don't force width/height limits
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections] window, display: Don't force width/height limits
- Date: Wed, 13 Apr 2022 09:17:59 +0000 (UTC)
commit baa76b104acc723f5c5aa1ed1580a054443e5c2b
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Apr 4 14:53:04 2022 +0200
window, display: Don't force width/height limits
Instead set a min-content-width for the scrolled window and let
Child widgets grow.
src/ui/display-view.ui | 4 ++--
src/ui/window.ui | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/display-view.ui b/src/ui/display-view.ui
index ad4dddf..a71bd47 100644
--- a/src/ui/display-view.ui
+++ b/src/ui/display-view.ui
@@ -63,12 +63,12 @@
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
+ <property name="min-content-width">980</property>
+ <property name="min-content-height">640</property>
<child>
<object class="GtkEventBox" id="event_box">
<property name="visible">True</property>
<property name="above-child">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
<signal name="event" handler="on_event_box_event"/>
</object>
</child>
diff --git a/src/ui/window.ui b/src/ui/window.ui
index b6fd1b0..c1e73b4 100644
--- a/src/ui/window.ui
+++ b/src/ui/window.ui
@@ -3,8 +3,7 @@
<requires lib="gtk+" version="3.20"/>
<template class="ConnectionsWindow" parent="HdyApplicationWindow">
<property name="title" translatable="yes">Connections</property>
- <property name="default-width">980</property>
- <property name="default-height">640</property>
+ <property name="resizable">True</property>
<signal name="key-press-event" after="yes" handler="on_key_pressed"/>
<signal name="delete-event" handler="on_delete_event"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]