[gnome-software/gbsneto/hide-on-close] shell: Set hide-on-close to TRUE
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gbsneto/hide-on-close] shell: Set hide-on-close to TRUE
- Date: Fri, 17 Dec 2021 14:46:00 +0000 (UTC)
commit 322dbc97dd9c81060c9d30d793c3e43b899ea019
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Dec 17 11:43:08 2021 -0300
shell: Set hide-on-close to TRUE
We want the main Software window not to be destroyed when it's
closed. For some reason, up to GTK 4.4, GTK4 was lenient with
not setting this property, but with GTK4 >= 4.5, we're not so
lucky, and Software just stops showing its main window after
closing it for the first time.
Set the hide-on-close property to TRUE in GsShell. This should
not change Software's behaviour on GTK 4.4, and only affects
GTK4 >= 4.5.
src/gs-shell.ui | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index d696238d7..2201c20ca 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -20,6 +20,7 @@
<property name="default-height">800</property>
<property name="title" translatable="yes">Software</property>
<property name="icon_name">org.gnome.Software</property>
+ <property name="hide-on-close">True</property>
<signal name="map" handler="gs_shell_main_window_mapped_cb"/>
<signal name="realize" handler="gs_shell_main_window_realized_cb"/>
<signal name="close-request" handler="main_window_closed_cb"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]