Date: Fri, 6 Aug 2021 16:48:51 GMT From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 35b99cbcd7b1 - main - sysutils/gnome-control-center: Fix 40.0 build error Message-ID: <202108061648.176Gmp2h029632@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=35b99cbcd7b1b3ec5d8ab3995efb6dc52cc2246e commit 35b99cbcd7b1b3ec5d8ab3995efb6dc52cc2246e Author: Matthias Andree <mandree@FreeBSD.org> AuthorDate: 2021-08-06 16:45:54 +0000 Commit: Matthias Andree <mandree@FreeBSD.org> CommitDate: 2021-08-06 16:45:54 +0000 sysutils/gnome-control-center: Fix 40.0 build error [00:01:39] ../panels/power/cc-power-panel.c:1748:58: error: use of undeclared identifier 'mobile_switch_changed_cb' [00:01:39] gtk_widget_class_bind_template_callback (widget_class, mobile_switch_changed_cb); [00:01:39] ^ [00:01:39] ../panels/power/cc-power-panel.c:1752:58: error: use of undeclared identifier 'wifi_switch_changed_cb' [00:01:39] gtk_widget_class_bind_template_callback (widget_class, wifi_switch_changed_cb); [00:01:39] ^ [00:01:39] 2 errors generated. PR: 257662 Approved by: portmgr (implicit, fixing broken build) --- .../files/patch-panels_power_cc-power-panel.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sysutils/gnome-control-center/files/patch-panels_power_cc-power-panel.c b/sysutils/gnome-control-center/files/patch-panels_power_cc-power-panel.c new file mode 100644 index 000000000000..3a61d69a72e9 --- /dev/null +++ b/sysutils/gnome-control-center/files/patch-panels_power_cc-power-panel.c @@ -0,0 +1,18 @@ +--- panels/power/cc-power-panel.c.orig 2021-03-20 21:52:23 UTC ++++ panels/power/cc-power-panel.c +@@ -1745,11 +1745,15 @@ cc_power_panel_class_init (CcPowerPanelClass *klass) + gtk_widget_class_bind_template_callback (widget_class, has_kbd_brightness_cb); + gtk_widget_class_bind_template_callback (widget_class, idle_delay_combo_changed_cb); + gtk_widget_class_bind_template_callback (widget_class, keynav_failed_cb); ++#ifdef HAVE_NETWORK_MANAGER + gtk_widget_class_bind_template_callback (widget_class, mobile_switch_changed_cb); ++#endif + gtk_widget_class_bind_template_callback (widget_class, power_button_combo_changed_cb); + gtk_widget_class_bind_template_callback (widget_class, power_profiles_row_activated_cb); + gtk_widget_class_bind_template_callback (widget_class, power_saving_listbox_row_activated_cb); ++#ifdef HAVE_NETWORK_MANAGER + gtk_widget_class_bind_template_callback (widget_class, wifi_switch_changed_cb); ++#endif + } + + static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108061648.176Gmp2h029632>