<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#333333" bgcolor="#CCCCCC">
Hello:<br>
<br>
I tried it, but when making the call I get the error, <br>
<br>
error: too few arguments to function ‘gtk_init’<br>
gtk_init();<br>
<br>
I don't know how to call it, this is a plugin panel
(XfcePanelPlugin).<br>
How can I call gtk_init (& argc, & argv); inside a plugin?<br>
<br>
Very thanks.<br>
<br>
<pre class="moz-signature" cols="72">Dani</pre>
<div class="moz-cite-prefix">O 18/11/19 ás 06:31, Milan Martikán
escribiu:<br>
</div>
<blockquote type="cite"
cite="mid:CA+WHR6bGKWqUxRhaBA9_xTcopOC+18dDDn7w5Wb4ADaSPzkAbg@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">Is gtk_init() called before?
Milan
On Mon, Nov 18, 2019 at 2:49 AM Dani <a class="moz-txt-link-rfc2396E" href="mailto:dani@damufo.com"><dani@damufo.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Hi,
I'm trying to pass the hotcorner plugin to gtk3.
I have encountered a problem that I have not solved, maybe someone can
help me.
I need to get the screen (work area where the cursor is) dimensions.
With gtk2 I used gdk_screen_get_monitor_geometry() but with gtk3 so I
can't use it now:
display = gdk_display_get_default();
monitor = gdk_display_get_primary_monitor(display);
gdk_monitor_get_geometry (monitor, &geometry);
hotCorner->monitorInfo = geometry;
The thing is, when you add the plugin to the panel the following error:
(wrapper-1.0:2593): GLib-CRITICAL **: g_once_init_leave: assertion
'result != 0' failed
(wrapper-1.0:2593): Gdk-CRITICAL **: gdk_display_get_primary_monitor:
assertion 'GDK_IS_DISPLAY (display)' failed
(wrapper-1.0:2593): Gdk-CRITICAL **: gdk_monitor_get_workarea: assertion
'GDK_IS_MONITOR (monitor)' failed
I tried this on:
xfce4-panel(main): version 4.12.1 on gtk+ 2.24.31 (2.24.31), glib 2.50.3
(2.50.2)
same with
xfce4-panel(main): version 4.14.1 on gtk+ 3.24.12 (3.24.11), glib 2.62.1
(2.62.0)
and they produce the same error.
Very thanks.
--
Dani
_______________________________________________
Xfce4-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a>
<a class="moz-txt-link-freetext" href="https://mail.xfce.org/mailman/listinfo/xfce4-dev">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Xfce4-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a>
<a class="moz-txt-link-freetext" href="https://mail.xfce.org/mailman/listinfo/xfce4-dev">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></pre>
</blockquote>
<br>
</body>
</html>