import CS gnome-control-center-40.0-30.el9
This commit is contained in:
parent
e26d0c102d
commit
2c5a514ce6
@ -69,15 +69,17 @@ index b20e5c1f7..99c8b20d7 100644
|
|||||||
+ gtk_widget_hide (GTK_WIDGET (self->subscription_row));
|
+ gtk_widget_hide (GTK_WIDGET (self->subscription_row));
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
|
||||||
+ if (!get_subscription_status (self->subscription_proxy, &status))
|
+ if (!get_subscription_status (self->subscription_proxy, &status))
|
||||||
+ {
|
+ {
|
||||||
+ gtk_widget_hide (GTK_WIDGET (self->subscription_row));
|
+ gtk_widget_hide (GTK_WIDGET (self->subscription_row));
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
|
||||||
+ switch (status)
|
+ switch (status)
|
||||||
+ {
|
+ {
|
||||||
|
+ case GSD_SUBMAN_SUBSCRIPTION_STATUS_NOT_READ:
|
||||||
|
+ gtk_widget_hide (GTK_WIDGET (self->subscription_row));
|
||||||
|
+ gtk_widget_set_sensitive (GTK_WIDGET (self->software_updates_row), FALSE);
|
||||||
|
+ return;
|
||||||
+ case GSD_SUBMAN_SUBSCRIPTION_STATUS_UNKNOWN:
|
+ case GSD_SUBMAN_SUBSCRIPTION_STATUS_UNKNOWN:
|
||||||
+ registered = FALSE;
|
+ registered = FALSE;
|
||||||
+ updates = FALSE;
|
+ updates = FALSE;
|
||||||
@ -106,9 +108,7 @@ index b20e5c1f7..99c8b20d7 100644
|
|||||||
+ break;
|
+ break;
|
||||||
+ default:
|
+ default:
|
||||||
+ g_assert_not_reached ();
|
+ g_assert_not_reached ();
|
||||||
+ break;
|
|
||||||
+ }
|
+ }
|
||||||
+
|
|
||||||
+ if (registered)
|
+ if (registered)
|
||||||
+ {
|
+ {
|
||||||
+ if (updates)
|
+ if (updates)
|
||||||
@ -311,6 +311,7 @@ index 000000000..034d64181
|
|||||||
+#define CC_SUBSCRIPTION_COMMON_H
|
+#define CC_SUBSCRIPTION_COMMON_H
|
||||||
+
|
+
|
||||||
+typedef enum {
|
+typedef enum {
|
||||||
|
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_NOT_READ = -1,
|
||||||
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_UNKNOWN,
|
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_UNKNOWN,
|
||||||
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_VALID,
|
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_VALID,
|
||||||
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_INVALID,
|
+ GSD_SUBMAN_SUBSCRIPTION_STATUS_INVALID,
|
||||||
@ -339,7 +340,6 @@ index 000000000..034d64181
|
|||||||
+
|
+
|
||||||
+ return TRUE;
|
+ return TRUE;
|
||||||
+}
|
+}
|
||||||
+
|
|
||||||
+#endif
|
+#endif
|
||||||
diff --git a/panels/info-overview/cc-subscription-details-dialog.c b/panels/info-overview/cc-subscription-details-dialog.c
|
diff --git a/panels/info-overview/cc-subscription-details-dialog.c b/panels/info-overview/cc-subscription-details-dialog.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
@ -641,6 +641,7 @@ index 000000000..15da1d911
|
|||||||
+ break;
|
+ break;
|
||||||
+
|
+
|
||||||
+ case GSD_SUBMAN_SUBSCRIPTION_STATUS_DISABLED:
|
+ case GSD_SUBMAN_SUBSCRIPTION_STATUS_DISABLED:
|
||||||
|
+ case GSD_SUBMAN_SUBSCRIPTION_STATUS_NOT_READ:
|
||||||
+ gtk_stack_set_visible_child_name (self->status_stack, "subscription-not-needed");
|
+ gtk_stack_set_visible_child_name (self->status_stack, "subscription-not-needed");
|
||||||
+ gtk_widget_hide (GTK_WIDGET (self->subscribe_button));
|
+ gtk_widget_hide (GTK_WIDGET (self->subscribe_button));
|
||||||
+ break;
|
+ break;
|
||||||
@ -654,7 +655,6 @@ index 000000000..15da1d911
|
|||||||
+
|
+
|
||||||
+ gtk_widget_set_visible (GTK_WIDGET (self->separator),
|
+ gtk_widget_set_visible (GTK_WIDGET (self->separator),
|
||||||
+ gtk_widget_get_visible (GTK_WIDGET (self->subscribe_button)));
|
+ gtk_widget_get_visible (GTK_WIDGET (self->subscribe_button)));
|
||||||
+
|
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static ProductData *
|
+static ProductData *
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
Name: gnome-control-center
|
Name: gnome-control-center
|
||||||
Version: 40.0
|
Version: 40.0
|
||||||
Release: 29%{?dist}
|
Release: 30%{?dist}
|
||||||
Summary: Utilities to configure the GNOME desktop
|
Summary: Utilities to configure the GNOME desktop
|
||||||
|
|
||||||
License: GPLv2+ and CC-BY-SA
|
License: GPLv2+ and CC-BY-SA
|
||||||
@ -242,6 +242,11 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gnome-control-center
|
|||||||
%dir %{_datadir}/gnome/wm-properties
|
%dir %{_datadir}/gnome/wm-properties
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 09 2024 Ray Strode <rstrode@redhat.com> - 40.0-30
|
||||||
|
- Handle subscription manager service not running without
|
||||||
|
crashing
|
||||||
|
Related: RHEL-20449
|
||||||
|
|
||||||
* Fri Feb 10 2023 Felipe Borges <feborges@redhat.com> - 40.0-29
|
* Fri Feb 10 2023 Felipe Borges <feborges@redhat.com> - 40.0-29
|
||||||
- Fix keyboard accessibility of screen resolution list
|
- Fix keyboard accessibility of screen resolution list
|
||||||
Resolves: rhbz#2168686
|
Resolves: rhbz#2168686
|
||||||
|
Loading…
Reference in New Issue
Block a user