Commit 3749658c authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

d/patches: Add patch to fix to long suspend dialog

The dialog exceeds screen size in locales like German

Fixes #20
parent 2169b879
Pipeline #75673 passed with stages
in 7 minutes and 20 seconds
From 2d1d1f3b1c500840f0b401e0d5ba1f61d9e72beb Mon Sep 17 00:00:00 2001
From: Mohammed Sadiq <sadiq@sadiqpk.org>
Date: Sun, 27 Mar 2022 21:15:24 +0530
Subject: [PATCH] power: Fix too wide suspend dialog
---
panels/power/cc-power-panel.ui | 39 +++++++++++++++++++++++-----------
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/panels/power/cc-power-panel.ui b/panels/power/cc-power-panel.ui
index 74aed35cd..09d248216 100644
--- a/panels/power/cc-power-panel.ui
+++ b/panels/power/cc-power-panel.ui
@@ -207,6 +207,11 @@
<property name="height">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="halign">end</property>
+ <property name="spacing">6</property>
<child>
<object class="GtkComboBoxText" id="suspend_on_battery_delay_combo">
<property name="visible">True</property>
@@ -216,10 +221,7 @@
<property name="model">liststore_time</property>
</object>
<packing>
- <property name="left_attach">2</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
+ <property name="position">1</property>
</packing>
</child>
<child>
@@ -235,9 +237,14 @@
</style>
</object>
<packing>
- <property name="left_attach">1</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
<property name="top_attach">1</property>
- <property name="width">1</property>
+ <property name="width">3</property>
<property name="height">1</property>
</packing>
</child>
@@ -255,6 +262,12 @@
<property name="height">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="halign">end</property>
+ <property name="spacing">6</property>
+ <property name="margin-start">64</property>
<child>
<object class="GtkComboBoxText" id="suspend_on_ac_delay_combo">
<property name="visible">True</property>
@@ -264,10 +277,7 @@
<property name="model">liststore_time</property>
</object>
<packing>
- <property name="left_attach">2</property>
- <property name="top_attach">3</property>
- <property name="width">1</property>
- <property name="height">1</property>
+ <property name="position">1</property>
</packing>
</child>
<child>
@@ -295,9 +305,14 @@
</style>
</object>
<packing>
- <property name="left_attach">1</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
<property name="top_attach">3</property>
- <property name="width">1</property>
+ <property name="width">3</property>
<property name="height">1</property>
</packing>
</child>
--
2.35.1
......@@ -29,6 +29,7 @@ pureos/universal-access-Enable-panel-by-default.patch
pureos/wifi-Fix-a-crash-when-wifi-device-is-removed.patch
pureos/wifi-Wrap-Hotspot-info-label.patch
pureos/power-Confirm-when-enabling-system-suspend-on-Librem.patch
pureos/power-Fix-too-wide-suspend-dialog.patch
upstream/display-Sort-resolutions-by-width-first.patch
upstream/display-config-Use-G_APPROX_VALUE-to-compare-scale-double.patch
upstream/display-config-Expose-the-supported-scales-as-a-reffed-GA.patch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment