multiple definition of scaling_command_line
Hello. I am using vinagre on my Manjaro Cinnamon equipped notebook to connect to vnc servers. On the current Manjaro release a build 3.22.0+35+gadcb63c-2
is used where in fullscreen mode of vinagre the menu on the top center of the screen is not working or available. Just for fun I cloned and compiled this (commit 30d3998a) with success. The menu appears now and I can leave fullscreen mode. However, to make it compile a minor modification was needed:
diff --git a/plugins/vnc/vinagre-vnc-connection.h b/plugins/vnc/vinagre-vnc-connection.h
index 4788ae2..f37642c 100644
--- a/plugins/vnc/vinagre-vnc-connection.h
+++ b/plugins/vnc/vinagre-vnc-connection.h
@@ -26,7 +26,7 @@
G_BEGIN_DECLS
-gboolean scaling_command_line;
+extern gboolean scaling_command_line;
#define VINAGRE_TYPE_VNC_CONNECTION (vinagre_vnc_connection_get_type ())
#define VINAGRE_VNC_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VINAGRE_TYPE_VNC_CONNECTION, VinagreVncConnection))
diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
index a5884da..438aa99 100644
--- a/plugins/vnc/vinagre-vnc-plugin.c
+++ b/plugins/vnc/vinagre-vnc-plugin.c
@@ -35,6 +35,8 @@
#include "vinagre-vnc-connection.h"
#include "vinagre-vnc-tab.h"
+gboolean scaling_command_line;
+
void vnc_register_types (void);
static void vinagre_vnc_protocol_iface_init (VinagreProtocolInterface *iface);
Had noone else stumbled over this 'multiple definition of scaling_command_line' error?
Thanks and best regards