<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.xfce.org/extern.php?action=feed&amp;tid=7343&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / Panel plugin development - problem using GDK functions]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=7343</link>
		<description><![CDATA[The most recent posts in Panel plugin development - problem using GDK functions.]]></description>
		<lastBuildDate>Tue, 14 Aug 2012 14:58:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Panel plugin development - problem using GDK functions]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27182#p27182</link>
			<description><![CDATA[<div class="quotebox"><cite>jules wrote:</cite><blockquote><div><div class="codebox"><pre><code>jules@ubuntu-dev-vm:~/xfce4-cardapio-plugin$ nm -D /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0| grep gdk_window_get_origin
0003b700 T gdk_window_get_origin</code></pre></div><div class="codebox"><pre><code>/libcardapio.so: undefined symbol: gdk_get_window_origin.</code></pre></div></div></blockquote></div><br /><p>gdk_<strong>get</strong>_window_origin != gdk_<strong>window</strong>_get_origin</p>]]></description>
			<author><![CDATA[dummy@example.com (qwerty12)]]></author>
			<pubDate>Tue, 14 Aug 2012 14:58:04 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27182#p27182</guid>
		</item>
		<item>
			<title><![CDATA[Re: Panel plugin development - problem using GDK functions]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27097#p27097</link>
			<description><![CDATA[<p>Hello,</p><p>I think it would help if you published your source code somewhere so that we could have a look.</p><p>To get hints at what is going on, you can use:</p><div class="codebox"><pre><code>LD_DEBUG=libs ./your_prog</code></pre></div><p>Regards,</p><p>Jérôme</p>]]></description>
			<author><![CDATA[dummy@example.com (jeromeg)]]></author>
			<pubDate>Sun, 05 Aug 2012 17:10:36 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27097#p27097</guid>
		</item>
		<item>
			<title><![CDATA[Panel plugin development - problem using GDK functions]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27087#p27087</link>
			<description><![CDATA[<p>I&#039;m trying to develop a panel plugin based on the sample provided, but am having trouble when I need to use GDK-supplied functions.&#160; I&#039;ve added the following to configure.ac.in:</p><p>XDT_CHECK_PACKAGE([GDK], [gdk-2.0], [2.0])</p><p>and in my Makefile.am I use the resulting settings:</p><div class="codebox"><pre><code>libcardapio_la_LIBADD = \
	$(LIBXFCE4UTIL_LIBS) \
	$(LIBXFCE4UI_LIBS) \
	$(LIBXFCE4PANEL_LIBS) \
	$(DBUS_LIBS) \
	$(GDK_LIBS)</code></pre></div><p>This results in the GDK libraries being linked to my module:</p><div class="codebox"><pre><code>jules@ubuntu-dev-vm:~/xfce4-cardapio-plugin$ ldd -v /usr/local/lib/xfce4/panel/plugins/libcardapio.so | grep gdk
	libgdk-x11-2.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0 (0xb71a4000)
...</code></pre></div><p>and those libraries contain the function I&#039;m trying to use:</p><div class="codebox"><pre><code>jules@ubuntu-dev-vm:~/xfce4-cardapio-plugin$ nm -D /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0| grep gdk_window_get_origin
0003b700 T gdk_window_get_origin</code></pre></div><p>Yet, when I try to load the plugin, it fails:</p><div class="codebox"><pre><code>(process:20835): GLib-WARNING **: (/build/buildd/glib2.0-2.32.3/./glib/gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)

(process:20835): xfce4-panel-wrapper-CRITICAL **: Wrapper cardapio-24: Failed to open plugin module &quot;/usr/local/lib/xfce4/panel/plugins/libcardapio.so&quot;: /usr/local/lib/xfce4/panel/plugins/libcardapio.so: undefined symbol: gdk_get_window_origin.</code></pre></div><p>I&#039;d welcome any suggestions how to fix this, or even just some clue as to what might be going on!</p><p>(Or, alternatively, if there&#039;s some way I&#039;ve missed that I can get the screen position of the button my plugin creates without using gdk functions, that would avoid the need for this.)</p>]]></description>
			<author><![CDATA[dummy@example.com (jules)]]></author>
			<pubDate>Fri, 03 Aug 2012 12:40:17 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27087#p27087</guid>
		</item>
	</channel>
</rss>
