Closed raveit65 closed 3 years ago
fixes
/usr/bin/ld: mate_power_preferences-gpm-prefs-core.o: in function `prefs_setup_battery':
gpm-prefs-core.c:(.text+0x16c5): undefined reference to `GET_WIDGET'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1194: mate-power-preferences] Error 1
https://travis-ci.org/github/mate-desktop/mate-power-manager/jobs/762016193#L1720
@rbuj I hope my fix is OK?
It's because of cherry-picking the commit https://github.com/mate-desktop/mate-power-manager/commit/d879a18a09e9cbdd43050365e08afd9f9bee72bd to 1.24 brach.
There is no GET_WIDGET macro on 1.24 branch:
just add the macro as follows:
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 018a75d..0a25db6 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -41,6 +41,8 @@
#include "gpm-icon-names.h"
#include "gpm-brightness.h"
+#define GET_WIDGET(x) (GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder, (x))))
+
static void gpm_prefs_finalize (GObject *object);
struct GpmPrefsPrivate
Yes, i saw the commit where you added
#define GET_WIDGET(x) (GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder, (x))))
So i think my fix is OK?
Fix building 1.24 branch + update travic (CI) config.