Accepting request 1121525 from home:JonathanKang:branches:GNOME:Factory
- Rebase gnome-control-center-disable-error-message-for-NM.patch, gnome-control-center-info-never-use-gnome-software.patch, gnome-control-center-more-power-button-actions.patch and gnome-control-center-bring-back-firewall-zone.patch(bsc#1216601). OBS-URL: https://build.opensuse.org/request/show/1121525 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=527
This commit is contained in:
parent
11ec42fec9
commit
773408f8da
@ -1,7 +1,26 @@
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethernet.c
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/ce-page-ethernet.c
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethernet.c
|
||||
From c7e0b3b8d993c2edaaafa54cd40da9378d641263 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Kang <jonathankang@gnome.org>
|
||||
Date: Fri, 27 Oct 2023 16:51:26 +0800
|
||||
Subject: [PATCH] gnome-control-center-bring-back-firewall-zone.patch
|
||||
|
||||
---
|
||||
.../connection-editor/ce-page-ethernet.c | 27 ++++
|
||||
.../connection-editor/ce-page-security.c | 15 +++
|
||||
.../network/connection-editor/ce-page-vpn.c | 8 ++
|
||||
.../connection-editor/ethernet-page.ui | 26 ++++
|
||||
.../connection-editor/firewall-helpers.c | 125 ++++++++++++++++++
|
||||
.../connection-editor/firewall-helpers.h | 33 +++++
|
||||
panels/network/connection-editor/meson.build | 1 +
|
||||
.../connection-editor/security-page.ui | 27 ++++
|
||||
panels/network/connection-editor/vpn-page.ui | 24 ++++
|
||||
9 files changed, 286 insertions(+)
|
||||
create mode 100644 panels/network/connection-editor/firewall-helpers.c
|
||||
create mode 100644 panels/network/connection-editor/firewall-helpers.h
|
||||
|
||||
diff --git a/panels/network/connection-editor/ce-page-ethernet.c b/panels/network/connection-editor/ce-page-ethernet.c
|
||||
index dce05a3..bba438f 100644
|
||||
--- a/panels/network/connection-editor/ce-page-ethernet.c
|
||||
+++ b/panels/network/connection-editor/ce-page-ethernet.c
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "ce-page.h"
|
||||
@ -22,7 +41,7 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
NMSettingConnection *setting_connection;
|
||||
NMSettingWired *setting_wired;
|
||||
};
|
||||
@@ -80,6 +84,7 @@ static void
|
||||
@@ -78,6 +82,7 @@ static void
|
||||
connect_ethernet_page (CEPageEthernet *self)
|
||||
{
|
||||
NMSettingWired *setting = self->setting_wired;
|
||||
@ -30,7 +49,7 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
char **mac_list;
|
||||
const char *s_mac_str;
|
||||
const gchar *name;
|
||||
@@ -109,6 +114,10 @@ connect_ethernet_page (CEPageEthernet *s
|
||||
@@ -107,6 +112,10 @@ connect_ethernet_page (CEPageEthernet *self)
|
||||
|
||||
g_signal_connect_object (self->name_entry, "changed", G_CALLBACK (ce_page_changed), self, G_CONNECT_SWAPPED);
|
||||
g_signal_connect_object (self->mtu_spin, "value-changed", G_CALLBACK (ce_page_changed), self, G_CONNECT_SWAPPED);
|
||||
@ -41,19 +60,20 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -136,6 +145,8 @@ ui_to_setting (CEPageEthernet *self)
|
||||
@@ -134,6 +143,8 @@ ui_to_setting (CEPageEthernet *self)
|
||||
g_object_set (self->setting_connection,
|
||||
NM_SETTING_CONNECTION_ID, gtk_entry_get_text (self->name_entry),
|
||||
NM_SETTING_CONNECTION_ID, gtk_editable_get_text (GTK_EDITABLE (self->name_entry)),
|
||||
NULL);
|
||||
+
|
||||
+ firewall_ui_to_setting (self->setting_connection, GTK_WIDGET (self->firewall_combo));
|
||||
}
|
||||
|
||||
static const gchar *
|
||||
@@ -180,6 +191,16 @@ ce_page_ethernet_validate (CEPage
|
||||
@@ -177,6 +188,16 @@ ce_page_ethernet_validate (CEPage *page,
|
||||
nm_setting_verify (NM_SETTING (self->setting_wired), NULL, error);
|
||||
}
|
||||
|
||||
static void
|
||||
+static void
|
||||
+ce_page_ethernet_dispose (GObject *object)
|
||||
+{
|
||||
+ CEPageEthernet *self = CE_PAGE_ETHERNET (object);
|
||||
@ -63,11 +83,10 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
+ G_OBJECT_CLASS (ce_page_ethernet_parent_class)->dispose (object);
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
static void
|
||||
ce_page_ethernet_init (CEPageEthernet *self)
|
||||
{
|
||||
gtk_widget_init_template (GTK_WIDGET (self));
|
||||
@@ -188,8 +209,11 @@ ce_page_ethernet_init (CEPageEthernet *s
|
||||
@@ -186,8 +207,11 @@ ce_page_ethernet_init (CEPageEthernet *self)
|
||||
static void
|
||||
ce_page_ethernet_class_init (CEPageEthernetClass *klass)
|
||||
{
|
||||
@ -79,7 +98,7 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/network/ethernet-page.ui");
|
||||
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageEthernet, cloned_mac_combo);
|
||||
@@ -197,6 +221,8 @@ ce_page_ethernet_class_init (CEPageEther
|
||||
@@ -195,6 +219,8 @@ ce_page_ethernet_class_init (CEPageEthernetClass *klass)
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageEthernet, mtu_spin);
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageEthernet, mtu_label);
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageEthernet, name_entry);
|
||||
@ -88,7 +107,7 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -215,6 +241,7 @@ ce_page_ethernet_new (NMConnection *
|
||||
@@ -213,6 +239,7 @@ ce_page_ethernet_new (NMConnection *connection,
|
||||
self = CE_PAGE_ETHERNET (g_object_new (ce_page_ethernet_get_type (), NULL));
|
||||
|
||||
self->client = client;
|
||||
@ -96,19 +115,19 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-ethern
|
||||
self->setting_connection = nm_connection_get_setting_connection (connection);
|
||||
self->setting_wired = nm_connection_get_setting_wired (connection);
|
||||
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-security.c
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/ce-page-security.c
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/ce-page-security.c
|
||||
diff --git a/panels/network/connection-editor/ce-page-security.c b/panels/network/connection-editor/ce-page-security.c
|
||||
index ae6fbd4..b8a1b83 100644
|
||||
--- a/panels/network/connection-editor/ce-page-security.c
|
||||
+++ b/panels/network/connection-editor/ce-page-security.c
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "ce-page.h"
|
||||
#include "ce-page-security.h"
|
||||
+#include "firewall-helpers.h"
|
||||
#include "wireless-security.h"
|
||||
#include "ws-dynamic-wep.h"
|
||||
#include "ws-leap.h"
|
||||
@@ -42,6 +43,8 @@ struct _CEPageSecurity
|
||||
#include "nma-ws.h"
|
||||
|
||||
struct _CEPageSecurity
|
||||
@@ -36,6 +37,8 @@ struct _CEPageSecurity
|
||||
GtkBox *box;
|
||||
GtkComboBox *security_combo;
|
||||
GtkLabel *security_label;
|
||||
@ -117,15 +136,15 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-securi
|
||||
|
||||
NMConnection *connection;
|
||||
const gchar *security_setting;
|
||||
@@ -176,6 +179,7 @@ security_combo_changed (CEPageSecurity *
|
||||
gtk_container_remove (GTK_CONTAINER (parent), GTK_WIDGET (sec));
|
||||
@@ -165,6 +168,7 @@ security_combo_changed (CEPageSecurity *self)
|
||||
gtk_box_remove (self->box, GTK_WIDGET (sec));
|
||||
|
||||
gtk_size_group_add_widget (self->group, GTK_WIDGET (self->security_label));
|
||||
+ gtk_size_group_add_widget (self->group, self->firewall_heading);
|
||||
wireless_security_add_to_size_group (sec, self->group);
|
||||
nma_ws_add_to_size_group (sec, self->group);
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (self->box), g_object_ref (GTK_WIDGET (sec)));
|
||||
@@ -230,6 +234,7 @@ finish_setup (CEPageSecurity *self)
|
||||
gtk_box_append (self->box, g_object_ref (GTK_WIDGET (sec)));
|
||||
@@ -222,6 +226,7 @@ finish_setup (CEPageSecurity *self)
|
||||
{
|
||||
NMSettingWireless *sw;
|
||||
NMSettingWirelessSecurity *sws;
|
||||
@ -133,7 +152,7 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-securi
|
||||
gboolean is_adhoc = FALSE;
|
||||
g_autoptr(GtkListStore) sec_model = NULL;
|
||||
GtkTreeIter iter;
|
||||
@@ -396,6 +401,10 @@ finish_setup (CEPageSecurity *self)
|
||||
@@ -388,6 +393,10 @@ finish_setup (CEPageSecurity *self)
|
||||
|
||||
gtk_combo_box_set_active (self->security_combo, active < 0 ? 0 : (guint32) active);
|
||||
|
||||
@ -144,16 +163,16 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-securi
|
||||
security_combo_changed (self);
|
||||
g_signal_connect_object (self->security_combo, "changed",
|
||||
G_CALLBACK (security_combo_changed), self, G_CONNECT_SWAPPED);
|
||||
@@ -431,6 +440,7 @@ ce_page_security_validate (CEPage
|
||||
@@ -423,6 +432,7 @@ ce_page_security_validate (CEPage *page,
|
||||
{
|
||||
CEPageSecurity *self = CE_PAGE_SECURITY (page);
|
||||
NMSettingWireless *sw;
|
||||
+ NMSettingConnection *sc;
|
||||
g_autoptr(WirelessSecurity) sec = NULL;
|
||||
NMAWs *sec;
|
||||
gboolean valid = FALSE;
|
||||
const char *mode;
|
||||
@@ -471,6 +481,9 @@ ce_page_security_validate (CEPage
|
||||
valid = TRUE;
|
||||
@@ -479,6 +489,9 @@ ce_page_security_validate (CEPage *page,
|
||||
|
||||
}
|
||||
|
||||
+ sc = nm_connection_get_setting_connection (connection);
|
||||
@ -162,7 +181,7 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-securi
|
||||
return valid;
|
||||
}
|
||||
|
||||
@@ -493,6 +506,8 @@ ce_page_security_class_init (CEPageSecur
|
||||
@@ -501,6 +514,8 @@ ce_page_security_class_init (CEPageSecurityClass *klass)
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageSecurity, box);
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageSecurity, security_label);
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageSecurity, security_combo);
|
||||
@ -171,10 +190,10 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-securi
|
||||
}
|
||||
|
||||
static void
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-vpn.c
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/ce-page-vpn.c
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/ce-page-vpn.c
|
||||
diff --git a/panels/network/connection-editor/ce-page-vpn.c b/panels/network/connection-editor/ce-page-vpn.c
|
||||
index 36afde5..edbf331 100644
|
||||
--- a/panels/network/connection-editor/ce-page-vpn.c
|
||||
+++ b/panels/network/connection-editor/ce-page-vpn.c
|
||||
@@ -35,6 +35,8 @@ struct _CEPageVpn
|
||||
|
||||
GtkLabel *failure_label;
|
||||
@ -184,9 +203,9 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-vpn.c
|
||||
|
||||
NMConnection *connection;
|
||||
NMSettingConnection *setting_connection;
|
||||
@@ -125,6 +127,9 @@ connect_vpn_page (CEPageVpn *self)
|
||||
@@ -123,6 +125,9 @@ connect_vpn_page (CEPageVpn *self)
|
||||
name = nm_setting_connection_get_id (self->setting_connection);
|
||||
gtk_entry_set_text (self->name_entry, name);
|
||||
gtk_editable_set_text (GTK_EDITABLE (self->name_entry), name);
|
||||
g_signal_connect_object (self->name_entry, "changed", G_CALLBACK (ce_page_changed), self, G_CONNECT_SWAPPED);
|
||||
+
|
||||
+ firewall_ui_setup (self->setting_connection, GTK_WIDGET (self->firewall_combo), GTK_WIDGET (self->firewall_heading), NULL);
|
||||
@ -194,15 +213,15 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-vpn.c
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -160,6 +165,7 @@ ce_page_vpn_validate (CEPage *pag
|
||||
@@ -158,6 +163,7 @@ ce_page_vpn_validate (CEPage *page,
|
||||
g_object_set (self->setting_connection,
|
||||
NM_SETTING_CONNECTION_ID, gtk_entry_get_text (self->name_entry),
|
||||
NM_SETTING_CONNECTION_ID, gtk_editable_get_text (GTK_EDITABLE (self->name_entry)),
|
||||
NULL);
|
||||
+ firewall_ui_to_setting (self->setting_connection, GTK_WIDGET (self->firewall_combo));
|
||||
|
||||
if (!nm_setting_verify (NM_SETTING (self->setting_connection), NULL, error))
|
||||
return FALSE;
|
||||
@@ -188,6 +194,8 @@ ce_page_vpn_class_init (CEPageVpnClass *
|
||||
@@ -186,6 +192,8 @@ ce_page_vpn_class_init (CEPageVpnClass *class)
|
||||
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageVpn, failure_label);
|
||||
gtk_widget_class_bind_template_child (widget_class, CEPageVpn, name_entry);
|
||||
@ -211,14 +230,15 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ce-page-vpn.c
|
||||
}
|
||||
|
||||
static void
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/ethernet-page.ui
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/ethernet-page.ui
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/ethernet-page.ui
|
||||
@@ -159,6 +159,36 @@
|
||||
</packing>
|
||||
diff --git a/panels/network/connection-editor/ethernet-page.ui b/panels/network/connection-editor/ethernet-page.ui
|
||||
index e35a18a..c3618a9 100644
|
||||
--- a/panels/network/connection-editor/ethernet-page.ui
|
||||
+++ b/panels/network/connection-editor/ethernet-page.ui
|
||||
@@ -117,5 +117,31 @@
|
||||
</layout>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
+ <child>
|
||||
+ <object class="GtkLabel" id="firewall_heading">
|
||||
+ <property name="visible">True</property>
|
||||
+ <property name="can_focus">False</property>
|
||||
@ -226,13 +246,11 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ethernet-page.
|
||||
+ <property name="label" translatable="yes">Firewall _Zone</property>
|
||||
+ <property name="use_underline">True</property>
|
||||
+ <property name="mnemonic_widget">firewall_combo</property>
|
||||
+ <layout>
|
||||
+ <property name="column">0</property>
|
||||
+ <property name="row">4</property>
|
||||
+ </layout>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="left_attach">0</property>
|
||||
+ <property name="top_attach">4</property>
|
||||
+ <property name="width">1</property>
|
||||
+ <property name="height">1</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ <child>
|
||||
+ <object class="GtkComboBoxText" id="firewall_combo">
|
||||
@ -240,22 +258,19 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/ethernet-page.
|
||||
+ <property name="can_focus">False</property>
|
||||
+ <property name="entry_text_column">0</property>
|
||||
+ <property name="id_column">1</property>
|
||||
+ <layout>
|
||||
+ <property name="column">1</property>
|
||||
+ <property name="row">4</property>
|
||||
+ </layout>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="left_attach">1</property>
|
||||
+ <property name="top_attach">4</property>
|
||||
+ <property name="width">1</property>
|
||||
+ <property name="height">1</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ <child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/firewall-helpers.c
|
||||
===================================================================
|
||||
</template>
|
||||
</interface>
|
||||
diff --git a/panels/network/connection-editor/firewall-helpers.c b/panels/network/connection-editor/firewall-helpers.c
|
||||
new file mode 100644
|
||||
index 0000000..2e2c29f
|
||||
--- /dev/null
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/firewall-helpers.c
|
||||
+++ b/panels/network/connection-editor/firewall-helpers.c
|
||||
@@ -0,0 +1,125 @@
|
||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||
+ *
|
||||
@ -382,10 +397,11 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/firewall-helpe
|
||||
+ g_object_set (setting, NM_SETTING_CONNECTION_ZONE, zone, NULL);
|
||||
+ g_free (zone);
|
||||
+}
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/firewall-helpers.h
|
||||
===================================================================
|
||||
diff --git a/panels/network/connection-editor/firewall-helpers.h b/panels/network/connection-editor/firewall-helpers.h
|
||||
new file mode 100644
|
||||
index 0000000..213c515
|
||||
--- /dev/null
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/firewall-helpers.h
|
||||
+++ b/panels/network/connection-editor/firewall-helpers.h
|
||||
@@ -0,0 +1,33 @@
|
||||
+/*
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
@ -420,68 +436,64 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/firewall-helpe
|
||||
+
|
||||
+
|
||||
+#endif /* _FIREWALL_HELPERS_H_ */
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/meson.build
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/meson.build
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/meson.build
|
||||
@@ -12,6 +12,7 @@ sources = files(
|
||||
'ce-page-vpn.c',
|
||||
diff --git a/panels/network/connection-editor/meson.build b/panels/network/connection-editor/meson.build
|
||||
index c544b21..7377fc0 100644
|
||||
--- a/panels/network/connection-editor/meson.build
|
||||
+++ b/panels/network/connection-editor/meson.build
|
||||
@@ -13,6 +13,7 @@ sources = files(
|
||||
'ce-page-wireguard.c',
|
||||
'ce-page-wifi.c',
|
||||
'ce-page.c',
|
||||
+ 'firewall-helpers.c',
|
||||
'net-connection-editor.c',
|
||||
'vpn-helpers.c'
|
||||
)
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/security-page.ui
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/security-page.ui
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/security-page.ui
|
||||
@@ -47,6 +47,37 @@
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
+ <object class="GtkLabel" id="firewall_heading">
|
||||
+ <property name="visible">True</property>
|
||||
+ <property name="can_focus">False</property>
|
||||
+ <property name="xalign">1</property>
|
||||
+ <property name="label" translatable="yes">Firewall _Zone</property>
|
||||
+ <property name="use_underline">True</property>
|
||||
+ <property name="mnemonic_widget">firewall_combo</property>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="left_attach">0</property>
|
||||
+ <property name="top_attach">2</property>
|
||||
+ <property name="width">1</property>
|
||||
+ <property name="height">1</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ <child>
|
||||
+ <object class="GtkComboBoxText" id="firewall_combo">
|
||||
+ <property name="visible">True</property>
|
||||
+ <property name="can_focus">False</property>
|
||||
+ <property name="hexpand">True</property>
|
||||
+ <property name="entry_text_column">0</property>
|
||||
+ <property name="id_column">1</property>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="left_attach">1</property>
|
||||
+ <property name="top_attach">2</property>
|
||||
+ <property name="width">1</property>
|
||||
+ <property name="height">1</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ <child>
|
||||
<placeholder/>
|
||||
diff --git a/panels/network/connection-editor/security-page.ui b/panels/network/connection-editor/security-page.ui
|
||||
index 9a1c0de..ba31a81 100644
|
||||
--- a/panels/network/connection-editor/security-page.ui
|
||||
+++ b/panels/network/connection-editor/security-page.ui
|
||||
@@ -41,5 +41,32 @@
|
||||
</layout>
|
||||
</object>
|
||||
</child>
|
||||
+ <child>
|
||||
+ <object class="GtkLabel" id="firewall_heading">
|
||||
+ <property name="visible">True</property>
|
||||
+ <property name="can_focus">False</property>
|
||||
+ <property name="xalign">1</property>
|
||||
+ <property name="label" translatable="yes">Firewall _Zone</property>
|
||||
+ <property name="use_underline">True</property>
|
||||
+ <property name="mnemonic_widget">firewall_combo</property>
|
||||
+ <layout>
|
||||
+ <property name="column">0</property>
|
||||
+ <property name="row">2</property>
|
||||
+ </layout>
|
||||
+ </object>
|
||||
+ </child>
|
||||
+ <child>
|
||||
+ <object class="GtkComboBoxText" id="firewall_combo">
|
||||
+ <property name="visible">True</property>
|
||||
+ <property name="can_focus">False</property>
|
||||
+ <property name="hexpand">True</property>
|
||||
+ <property name="entry_text_column">0</property>
|
||||
+ <property name="id_column">1</property>
|
||||
+ <layout>
|
||||
+ <property name="column">1</property>
|
||||
+ <property name="row">2</property>
|
||||
+ </layout>
|
||||
+ </object>
|
||||
+ </child>
|
||||
</template>
|
||||
</interface>
|
||||
diff --git a/panels/network/connection-editor/vpn-page.ui b/panels/network/connection-editor/vpn-page.ui
|
||||
index 98f801b..73bbef8 100644
|
||||
--- a/panels/network/connection-editor/vpn-page.ui
|
||||
+++ b/panels/network/connection-editor/vpn-page.ui
|
||||
@@ -28,6 +28,30 @@
|
||||
</child>
|
||||
</object>
|
||||
Index: gnome-control-center-41.0/panels/network/connection-editor/vpn-page.ui
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/network/connection-editor/vpn-page.ui
|
||||
+++ gnome-control-center-41.0/panels/network/connection-editor/vpn-page.ui
|
||||
@@ -51,6 +51,45 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
+ <child>
|
||||
+ <object class="GtkBox" id="box1">
|
||||
+ <property name="visible">True</property>
|
||||
+ <property name="can_focus">False</property>
|
||||
@ -494,11 +506,6 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/vpn-page.ui
|
||||
+ <property name="use_underline">True</property>
|
||||
+ <property name="mnemonic_widget">firewall_combo</property>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="expand">False</property>
|
||||
+ <property name="fill">True</property>
|
||||
+ <property name="position">0</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ <child>
|
||||
+ <object class="GtkComboBoxText" id="firewall_combo">
|
||||
@ -507,20 +514,12 @@ Index: gnome-control-center-41.0/panels/network/connection-editor/vpn-page.ui
|
||||
+ <property name="entry_text_column">0</property>
|
||||
+ <property name="id_column">1</property>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="expand">True</property>
|
||||
+ <property name="fill">True</property>
|
||||
+ <property name="position">1</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ </object>
|
||||
+ <packing>
|
||||
+ <property name="expand">False</property>
|
||||
+ <property name="fill">True</property>
|
||||
+ <property name="position">1</property>
|
||||
+ </packing>
|
||||
+ </child>
|
||||
+ <child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="failure_label">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
--
|
||||
2.42.0
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
Index: gnome-control-center-45.alpha/panels/network/cc-network-panel.c
|
||||
===================================================================
|
||||
--- gnome-control-center-45.alpha.orig/panels/network/cc-network-panel.c
|
||||
+++ gnome-control-center-45.alpha/panels/network/cc-network-panel.c
|
||||
@@ -659,10 +659,24 @@ static void
|
||||
diff -uraBN temp/gnome-control-center-45.1/panels/network/cc-network-panel.c gnome-control-center-45.1/panels/network/cc-network-panel.c
|
||||
--- temp/gnome-control-center-45.1/panels/network/cc-network-panel.c 2023-10-27 14:56:16.289319792 +0800
|
||||
+++ gnome-control-center-45.1/panels/network/cc-network-panel.c 2023-10-27 15:42:47.030395835 +0800
|
||||
@@ -653,10 +653,24 @@
|
||||
panel_check_network_manager_version (CcNetworkPanel *self)
|
||||
{
|
||||
const gchar *version;
|
||||
@ -28,16 +27,16 @@ Index: gnome-control-center-45.alpha/panels/network/cc-network-panel.c
|
||||
GtkWidget *status_page;
|
||||
|
||||
status_page = adw_status_page_new ();
|
||||
@@ -674,9 +688,23 @@ panel_check_network_manager_version (CcN
|
||||
@@ -667,10 +681,23 @@
|
||||
adw_status_page_set_description (ADW_STATUS_PAGE (status_page),
|
||||
_("An error has occurred and network cannot be used."
|
||||
"\n Error details: NetworkManager not running."));
|
||||
|
||||
+ } else if (version == NULL && g_strcmp0 (state, "active") == 0) {
|
||||
+ GtkWidget *status_page;
|
||||
+
|
||||
+ status_page = adw_status_page_new ();
|
||||
+ cc_panel_set_content (CC_PANEL (self), status_page);
|
||||
+
|
||||
+ adw_navigation_page_set_child (ADW_NAVIGATION_PAGE (self), status_page);
|
||||
|
||||
+ adw_status_page_set_icon_name (ADW_STATUS_PAGE (status_page), "network-error-symbolic");
|
||||
+ adw_status_page_set_title (ADW_STATUS_PAGE (status_page), _("Wicked is running"));
|
||||
+ adw_status_page_set_description (ADW_STATUS_PAGE (status_page),
|
||||
@ -52,11 +51,10 @@ Index: gnome-control-center-45.alpha/panels/network/cc-network-panel.c
|
||||
}
|
||||
|
||||
static void
|
||||
Index: gnome-control-center-45.alpha/panels/network/cc-wifi-panel.c
|
||||
===================================================================
|
||||
--- gnome-control-center-45.alpha.orig/panels/network/cc-wifi-panel.c
|
||||
+++ gnome-control-center-45.alpha/panels/network/cc-wifi-panel.c
|
||||
@@ -299,21 +299,41 @@ static void
|
||||
diff -uraBN temp/gnome-control-center-45.1/panels/network/cc-wifi-panel.c gnome-control-center-45.1/panels/network/cc-wifi-panel.c
|
||||
--- temp/gnome-control-center-45.1/panels/network/cc-wifi-panel.c 2023-10-27 14:56:16.292653165 +0800
|
||||
+++ gnome-control-center-45.1/panels/network/cc-wifi-panel.c 2023-10-27 15:05:30.805703042 +0800
|
||||
@@ -298,21 +298,41 @@
|
||||
check_main_stack_page (CcWifiPanel *self)
|
||||
{
|
||||
const gchar *nm_version;
|
||||
@ -79,7 +77,7 @@ Index: gnome-control-center-45.alpha/panels/network/cc-wifi-panel.c
|
||||
|
||||
nm_version = nm_client_get_version (self->client);
|
||||
wireless_enabled = nm_client_wireless_get_enabled (self->client);
|
||||
airplane_mode_active = cc_list_row_get_active (self->rfkill_row);
|
||||
airplane_mode_active = adw_switch_row_get_active (self->rfkill_row);
|
||||
|
||||
- if (!nm_version)
|
||||
+ if (!nm_version && g_strcmp0 (state, "inactive") == 0)
|
||||
@ -99,14 +97,14 @@ Index: gnome-control-center-45.alpha/panels/network/cc-wifi-panel.c
|
||||
}
|
||||
|
||||
static void
|
||||
Index: gnome-control-center-45.alpha/panels/network/cc-wifi-panel.ui
|
||||
===================================================================
|
||||
--- gnome-control-center-45.alpha.orig/panels/network/cc-wifi-panel.ui
|
||||
+++ gnome-control-center-45.alpha/panels/network/cc-wifi-panel.ui
|
||||
@@ -220,3 +220,47 @@ Error details: NetworkManager not runnin
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
diff -uraBN temp/gnome-control-center-45.1/panels/network/cc-wifi-panel.ui gnome-control-center-45.1/panels/network/cc-wifi-panel.ui
|
||||
--- temp/gnome-control-center-45.1/panels/network/cc-wifi-panel.ui 2023-10-27 14:56:16.292653165 +0800
|
||||
+++ gnome-control-center-45.1/panels/network/cc-wifi-panel.ui 2023-10-27 14:49:00.914031545 +0800
|
||||
@@ -197,6 +197,51 @@
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
+
|
||||
+ <!-- "Wicked Running" page -->
|
||||
+ <child>
|
||||
+ <object class="GtkStackPage">
|
||||
@ -151,10 +149,12 @@ Index: gnome-control-center-45.alpha/panels/network/cc-wifi-panel.ui
|
||||
+ </object>
|
||||
+ </child>
|
||||
+
|
||||
Index: gnome-control-center-45.alpha/tests/meson.build
|
||||
===================================================================
|
||||
--- gnome-control-center-45.alpha.orig/tests/meson.build
|
||||
+++ gnome-control-center-45.alpha/tests/meson.build
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
diff -uraBN temp/gnome-control-center-45.1/tests/meson.build gnome-control-center-45.1/tests/meson.build
|
||||
--- temp/gnome-control-center-45.1/tests/meson.build 2023-10-27 14:56:16.545989479 +0800
|
||||
+++ gnome-control-center-45.1/tests/meson.build 2023-10-27 14:49:56.034724339 +0800
|
||||
@@ -1,8 +1,11 @@
|
||||
subdir('common')
|
||||
#subdir('datetime')
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: gnome-control-center-41.0/panels/info-overview/cc-info-overview-panel.c
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/info-overview/cc-info-overview-panel.c
|
||||
+++ gnome-control-center-41.0/panels/info-overview/cc-info-overview-panel.c
|
||||
@@ -791,8 +791,8 @@ does_gnome_software_allow_updates (void)
|
||||
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
|
||||
index 700df61..846ac80 100644
|
||||
--- a/panels/info-overview/cc-info-overview-panel.c
|
||||
+++ b/panels/info-overview/cc-info-overview-panel.c
|
||||
@@ -111,8 +111,8 @@ does_gnome_software_allow_updates (void)
|
||||
static gboolean
|
||||
does_gnome_software_exist (void)
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: gnome-control-center-41.0/panels/power/cc-power-panel.c
|
||||
===================================================================
|
||||
--- gnome-control-center-41.0.orig/panels/power/cc-power-panel.c
|
||||
+++ gnome-control-center-41.0/panels/power/cc-power-panel.c
|
||||
@@ -796,7 +796,8 @@ populate_power_button_row (HdyComboRow *
|
||||
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
|
||||
index 26e3837..3fa91db 100644
|
||||
--- a/panels/power/cc-power-panel.c
|
||||
+++ b/panels/power/cc-power-panel.c
|
||||
@@ -680,7 +680,8 @@ populate_power_button_row (AdwComboRow *combo_row,
|
||||
{ N_("Suspend"), GSD_POWER_BUTTON_ACTION_SUSPEND },
|
||||
{ N_("Power Off"), GSD_POWER_BUTTON_ACTION_INTERACTIVE },
|
||||
{ N_("Hibernate"), GSD_POWER_BUTTON_ACTION_HIBERNATE },
|
||||
@ -10,5 +10,5 @@ Index: gnome-control-center-41.0/panels/power/cc-power-panel.c
|
||||
+ { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING },
|
||||
+ { N_("Force Off"), GSD_POWER_BUTTON_ACTION_SHUTDOWN }
|
||||
};
|
||||
guint item_index = 0;
|
||||
guint i;
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 27 07:40:55 UTC 2023 - Jonathan Kang <sckang@suse.com>
|
||||
|
||||
- Rebase gnome-control-center-disable-error-message-for-NM.patch,
|
||||
gnome-control-center-info-never-use-gnome-software.patch,
|
||||
gnome-control-center-more-power-button-actions.patch and
|
||||
gnome-control-center-bring-back-firewall-zone.patch(bsc#1216601).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 23 14:15:52 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
|
@ -35,7 +35,7 @@ URL: https://apps.gnome.org/app/org.gnome.Settings
|
||||
Source0: %{name}-%{version}.tar.zst
|
||||
Source99: %{name}-rpmlintrc
|
||||
|
||||
# PATCH-NEEDS-REBASE gnome-control-center-disable-error-message-for-NM.patch bsc#989801 sckang@suse.com -- network: Improve the check for whether NM or wicked is running WAS:PATCH-FIX-OPENSUSE
|
||||
# PATCH-FIX-OPENSUSE gnome-control-center-disable-error-message-for-NM.patch bsc#989801 sckang@suse.com -- network: Improve the check for whether NM or wicked is running
|
||||
Patch1: gnome-control-center-disable-error-message-for-NM.patch
|
||||
# PATCH-FIX-UPSTREAM gnome-control-center-add-user-button.patch bsc#1215556 glgo#GNOME/Settings!1927 xwang@suse.com -- Show add user button
|
||||
Patch2: gnome-control-center-add-user-button.patch
|
||||
@ -185,7 +185,7 @@ GNOME control center.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#patch1 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user