Gtk2Hs: Ticket Queryhttp://trac.haskell.org/gtk2hs/query?status=assigned&status=new&status=accepted&status=reopened&group=status&milestone=0.11.0&row=description
The Gtk2Hs projecten-USGtk2Hshttp://projects.haskell.org/gtk2hs/Gtk2Hs-bug-tracker-banner-nobg.pnghttp://trac.haskell.org/gtk2hs/query?status=assigned&status=new&status=accepted&status=reopened&group=status&milestone=0.11.0&row=description
Trac 0.11.1http://trac.haskell.org/gtk2hs/ticket/1220
http://trac.haskell.org/gtk2hs/ticket/1220#1220: Add g_object_notify bindingThu, 12 May 2011 03:22:57 GMTguest<p>
This binding is necessary for some Gtk events. For instance, the signal for the user sliding a Paned's slider is "notify::position", which needs to be registered with g_object_notify.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1220#changeloghttp://trac.haskell.org/gtk2hs/ticket/1237
http://trac.haskell.org/gtk2hs/ticket/1237#1237: Add instance Ord GObject (Object, Widget, etc...)Mon, 19 Sep 2011 05:30:06 GMTguest<p>
Easy as <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/ForeignPtrs" rel="nofollow">ForeignPtrs?</a> have this instance already.
Required to make Sets and Maps of gtk2hs objects.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1237#changeloghttp://trac.haskell.org/gtk2hs/ticket/1096
http://trac.haskell.org/gtk2hs/ticket/1096#1096: Allow loading pictures from String/ByteString as well as from filesFri, 28 Sep 2007 12:21:26 GMTduncan<p>
We have the function
</p>
<p>
<tt>imageNewFromFile :: FilePath -&gt; IO Image</tt>
</p>
<p>
but it'd be nice to have one for loading from already loaded image data:
</p>
<p>
<tt>imageNewFromFileData :: ByteString -&gt; IO Image</tt>
</p>
<p>
This would probably need to use the <a class="ext-link" href="http://library.gnome.org/devel/gdk-pixbuf/stable/GdkPixbufLoader.html"><span class="icon">GdkPixbufLoader</span></a> api.
</p>
<p>
The function name should distinguish between the case where we're supplying an image file format and when we're supplying raw pixel data. There's already a function <tt>gdk_pixbuf_new_from_data</tt> that takes raw pixel data and meta data describing the pixel data layout.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1096#changeloghttp://trac.haskell.org/gtk2hs/ticket/1202
http://trac.haskell.org/gtk2hs/ticket/1202#1202: Any "IO Pixbuf" will cause memory leak.Thu, 02 Sep 2010 11:26:59 GMTguest<p>
Now every function return "IO Pixbuf" will cause memory leak.
</p>
<p>
I attach a simple demo to recur this issue:
</p>
<p>
module Main where
</p>
<p>
import Graphics.UI.Gtk
import Graphics.UI.Gtk.Gdk.Pixbuf
import Control.Monad
</p>
<p>
main = do
</p>
<blockquote>
<p>
initGUI
</p>
</blockquote>
<blockquote>
<p>
w &lt;- windowNew
</p>
</blockquote>
<blockquote>
<p>
pb &lt;- pixbufNew <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/ColorspaceRgb" rel="nofollow">ColorspaceRgb?</a> False 8 1000 1000
</p>
</blockquote>
<blockquote>
<p>
forM_ [1..100] $ \_ -&gt; do
</p>
<blockquote>
<p>
pixbufScaleSimple pb 1000 1000 <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/InterpNearest" rel="nofollow">InterpNearest?</a>
return ()
</p>
</blockquote>
</blockquote>
<blockquote>
<p>
onDestroy w mainQuit
widgetShowAll w
mainGUI
</p>
</blockquote>
<p>
not just pixbufScaleSimple, other function like pixbufNewFromFile, pixbufRotateSimple has same problem.
</p>
<p>
We should think why Pixbuf's are not GC'd with the normal mechanism.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1202#changeloghttp://trac.haskell.org/gtk2hs/ticket/1196
http://trac.haskell.org/gtk2hs/ticket/1196#1196: Cairo error when running programThu, 29 Jul 2010 05:27:35 GMTguest<p>
Possibly a bug in gtk on windows. GHC 6.12.3 and gtk2hs installed with cabal, running on win7 32 bit. When running a program such as the <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/FastDraw" rel="nofollow">FastDraw?</a> demo, the program crashes with libcairo-2.dll.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1196#changeloghttp://trac.haskell.org/gtk2hs/ticket/1225
http://trac.haskell.org/gtk2hs/ticket/1225#1225: Gtk accelerators not working when compiling with -threadedFri, 01 Jul 2011 23:27:49 GMTguest<p>
It seems as if compiling a threaded gtk program breaks the accelerators.
</p>
<p>
Works:
ghc --make accel.hs
</p>
<p>
Does not work:
ghc --make -threaded accel.hs
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1225#changeloghttp://trac.haskell.org/gtk2hs/ticket/1223
http://trac.haskell.org/gtk2hs/ticket/1223#1223: No binding yet for gdk_window_create_similar_surface().Fri, 17 Jun 2011 17:10:43 GMTguest<p>
It would be really nice if the Graphics.UI.Gtk.Cairo module provided a binding for the <a class="ext-link" href="http://developer.gnome.org/gdk/stable/gdk-Cairo-Interaction.html#gdk-window-create-similar-surface"><span class="icon">gdk_window_create_similar_surface()</span></a> API function.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1223#changeloghttp://trac.haskell.org/gtk2hs/ticket/1203
http://trac.haskell.org/gtk2hs/ticket/1203#1203: PackageDB type mismatch in build systemSun, 24 Oct 2010 21:25:55 GMTguest<p>
I tried to "cabal install gtk" and I get this:
</p>
<p>
/tmp/glib-0.11.219918/glib-0.11.2/Gtk2HsSetup.hs:190:70:
</p>
<blockquote>
<p>
Couldn't match expected type `[PackageDB]'
</p>
<blockquote>
<p>
with actual type `PackageDB'
</p>
</blockquote>
<p>
Expected type: PackageDBStack
</p>
<blockquote>
<p>
Actual type: PackageDB
</p>
</blockquote>
<p>
In the sixth argument of <tt>registerPackage', namely </tt>packageDb'
In the expression:
</p>
<blockquote>
<p>
registerPackage
</p>
<blockquote>
<p>
verbosity installedPkgInfo pkg lbi inplace packageDb
</p>
</blockquote>
</blockquote>
</blockquote>
<p>
It works fine if I go into Gtk2HsSetup.hs and replace packageDb with [packageDb], but then I have to change it by hand for cairo, pango, etc. Must be an issue in gtk2hs-buildtools, I think.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1203#changeloghttp://trac.haskell.org/gtk2hs/ticket/1191
http://trac.haskell.org/gtk2hs/ticket/1191#1191: Reinstate the getWindowTick facility for Graphics.SOE.Gtk moduleSun, 30 May 2010 00:51:30 GMTguest<p>
This patch reinstates the original timing facility described in The Haskell School of Expression; for some reason, the gtk2hs instantiation of the SOEGraphics module did not implement this feature, and as a result, all graphics animations end up devouring CPU time needlessly. Paul Hudak has approved this patch in principle (though may not have looked at it in detail) and would certainly appreciate it being applied to the gtk2hs package.
</p>
<p>
Of course, this is released to the gtk2hs project with the same license as the soegtk module (LGPL).
</p>
<p>
Many thanks!
</p>
<p>
Julian Gilbey
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1191#changeloghttp://trac.haskell.org/gtk2hs/ticket/1236
http://trac.haskell.org/gtk2hs/ticket/1236#1236: TreeModelFilter crashesFri, 09 Sep 2011 10:52:23 GMTguest<p>
I am getting strange crashed when using a <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/TreeModelFilter" rel="nofollow">TreeModelFilter?</a> in concert
with a <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/TreeStore" rel="nofollow">TreeStore?</a>.
Whenever I try to add an element to an initially empty
tree store the program will crash with a sig 11 (segfault). Setting the
filter function up to check for iters that are invalid in the child
store and returning False ("do not show") in this case will prevent this
particular crash from happening.
Also, when I add two child nodes to an initially child-less node and
try to expand that node afterwards, the program bails out with
"<a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/TreeStore" rel="nofollow">TreeStore?</a>.getRow: iter does not refer to a valid entry".
(This is with gtk2hs version 0.12.0 on GHC 7.0.3, linux amd64 )
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1236#changeloghttp://trac.haskell.org/gtk2hs/ticket/1197
http://trac.haskell.org/gtk2hs/ticket/1197#1197: Windows/Gtk2hs : Can't load `gtk` package on GHCiFri, 30 Jul 2010 14:47:11 GMTguest<p>
Loading package gtk-0.11.0 ... linking
</p>
<blockquote>
<p>
... &lt;interactive&gt;: c:\ghc\ghc-6.10.4\ext-lib\gtk-0.11.0\HSgtk-0.11.0.o: unknown symbol <tt>__imp__gdk_threads_lock': unable to load package </tt>gtk-0.11.0<i> in GHCi.
</i></p>
</blockquote>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1197#changeloghttp://trac.haskell.org/gtk2hs/ticket/1193
http://trac.haskell.org/gtk2hs/ticket/1193#1193: Xinput Extension deviceTue, 06 Jul 2010 13:05:24 GMTguest<p>
Can Gtk2hs support XInput Extension device such as wacom tablet?
</p>
<p>
When some event like <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/ButtonPressedEvent" rel="nofollow">ButtonPressedEvent?</a> is fired, extension device information seems to use device field in <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/GdkEvent" rel="nofollow">GdkEvent?</a>, but EventM module does not have any routines to deal with it.
</p>
<p>
I hope this can be easily implemented.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1193#changeloghttp://trac.haskell.org/gtk2hs/ticket/1095
http://trac.haskell.org/gtk2hs/ticket/1095#1095: add Glade.xmlNewFromStringFri, 09 Mar 2007 04:23:45 GMTduncan<p>
There's a libglade function <tt>glade_xml_new_from_buffer</tt> so we could provide a method to build a glade xml object from a <tt>ByteString</tt> or a <tt>String</tt>
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1095#changeloghttp://trac.haskell.org/gtk2hs/ticket/1204
http://trac.haskell.org/gtk2hs/ticket/1204#1204: cabal install of gconf terminates with 'gconf-2.0 version >=2.0.0 is required'Thu, 04 Nov 2010 23:30:22 GMTguest<p>
I am on Fedora 14 w/ghc 6.12.3. 'cabal install gconf' will terminate with the above message unless rpm package GConf2-devel is also installed.
</p>
<p>
If this is not the right place to report this, please respond to tsueako@… so I can continue trying to find the right place.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1204#changeloghttp://trac.haskell.org/gtk2hs/ticket/1180
http://trac.haskell.org/gtk2hs/ticket/1180#1180: cairo with X11 without GTKSun, 27 Dec 2009 15:32:33 GMTguest<p>
Is it possible? The only way to draw on a screen is via the Graphics.UI.Gtk.Cairo module. Also, can I use the Glitz cairo backend?
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1180#changeloghttp://trac.haskell.org/gtk2hs/ticket/1205
http://trac.haskell.org/gtk2hs/ticket/1205#1205: cellLayoutSetAttributes on a TreeModelSort leads to crashesFri, 05 Nov 2010 16:33:36 GMTguest<p>
I wanted to make my existing tree view sortable. So I wrapped my <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/ListStore" rel="nofollow">ListStore?</a> in a <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/TreeModelSort" rel="nofollow">TreeModelSort?</a>, and assumed that my existing code would work as-is using the wrapped model.
</p>
<p>
But unfortunately it crashes. By comparing my code to the <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/TreeSort" rel="nofollow">TreeSort?</a>.hs example, I've constructed a test case (attached). Using cellLayoutSetAttributeFunc and manually translating the wrapped iter into an iter on the underlying model, retrieving the row, and using that value works; using cellLayoutSetAttributes to set a callback that receives the value directly crashes with:
</p>
<p>
** (tree-model-sort-crash:27346): CRITICAL **: gtk2hs_store_get_impl: assertion `GTK2HS_IS_STORE(store)' failed
</p>
<p>
So this seems like it's probably a bug in either the <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/TreeModelSort" rel="nofollow">TreeModelSort?</a> binding, or the <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/CustomStore" rel="nofollow">CustomStore?</a> implementation. This occurs with 0.11.0 (in Debian) and darcs head as of a few weeks ago. (I'm on a flakey conference network, so can't pull the very latest.)
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1205#changeloghttp://trac.haskell.org/gtk2hs/ticket/1240
http://trac.haskell.org/gtk2hs/ticket/1240#1240: consoleMessage arguments problemSat, 05 Nov 2011 03:08:48 GMTguest<p>
Too many arguments for <tt>`consoleMessage'</tt>, probably first <strong>String</strong> is unnecessary.
</p>
<p>
Minor changes in <tt>marshal.list</tt> and <tt>WebView.chs</tt> fixed it for me (at least "<tt>webView `on` consoleMessage $ ...</tt>" can catch <tt>`console.log'</tt> from javascript-code).
</p>
<p>
webkit-0.12.3
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1240#changeloghttp://trac.haskell.org/gtk2hs/ticket/1140
http://trac.haskell.org/gtk2hs/ticket/1140#1140: gettext supportMon, 01 Sep 2008 11:41:18 GMTguest<p>
Hello!
</p>
<p>
According to <a class="ext-link" href="http://article.gmane.org/gmane.comp.lang.haskell.gtk2hs/598"><span class="icon">http://article.gmane.org/gmane.comp.lang.haskell.gtk2hs/598</span></a> Gtk2hs does not have proper support for gettext (localization and i18n) which is pity considering it's the best supported Haskell GUI library.
</p>
<p>
It would be nice to decide what is required to get it considering remark about i18n module (see the above url).
</p>
<p>
Any idea?
</p>
<p>
Sincerely,<br />Gour
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1140#changeloghttp://trac.haskell.org/gtk2hs/ticket/1206
http://trac.haskell.org/gtk2hs/ticket/1206#1206: gio error on windows: HSgio-0.12.0.o: unknown symbol `_g_app_inf o_get_display_name'Mon, 08 Nov 2010 15:06:42 GMTguest<p>
Hi,
</p>
<p>
I'm trying to install chart on windows and it currently fails to install because of the following error:
</p>
<p>
: C:\Documents and Settings\cdc\Dati applicazioni\cabal\gio-0.12.0\ghc-6.12.3\HSgio-0.12.0.o: unknown symbol `_g_app_info_get_display_name'
</p>
<p>
The instructions for installing gtk2hs are missing one step: I need to include the mingw path for it to find "cpp". This is "C:\Programmi\Haskell Platform\2010.2.0.0\mingw\bin" if you have the HP (should I create a ticket for this?).
</p>
<p>
Apart from that gtk2hs-buildtools, glib, gtk, cairo, gio and pango install fine on windows.
</p>
<p>
This is with the last release, 0.12. I had a similar error (different unknown symbol) with the previous version, but didn't record it.
</p>
<p>
Am I missing any something?
</p>
<p>
Please tell me if you need more information,
Adrian.
</p>
<p>
P.S.: The bug tracker doesn't yet know of version 0.12 nor of GIO.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1206#changeloghttp://trac.haskell.org/gtk2hs/ticket/1233
http://trac.haskell.org/gtk2hs/ticket/1233#1233: gtk2hs-buildtools fails to build with alex 3.0.1Wed, 24 Aug 2011 15:17:22 GMTguest<p>
[26 of 41] Compiling CLexer ( dist-ghc/build/gtk2hsC2hs/gtk2hsC2hs-tmp/CLe
xer.hs, dist-ghc/build/gtk2hsC2hs/gtk2hsC2hs-tmp/CLexer.o )
</p>
<p>
dist-ghc/build/gtk2hsC2hs/gtk2hsC2hs-tmp/CLexer.hs:407:22:
</p>
<blockquote>
<p>
Not in scope: `alexGetByte'
</p>
</blockquote>
<p>
dist-ghc/build/gtk2hsC2hs/gtk2hsC2hs-tmp/CLexer.hs:441:8:
</p>
<blockquote>
<p>
Not in scope: `alexGetByte'
</p>
</blockquote>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1233#changeloghttp://trac.haskell.org/gtk2hs/ticket/1241
http://trac.haskell.org/gtk2hs/ticket/1241#1241: malloc: pointer being freed was not allocatedSat, 19 Nov 2011 13:36:26 GMTguest<p>
When I run any cairo demo that draws on the screen, I see a frame draw on the screen and then I get a crash like
</p>
<pre class="wiki">graph(27721) malloc: *** error for object 0x10176a168: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
</pre><p>
Non-cairo gtk2hs demos work. Cairo demos like "text" which do not try to draw on the screen do not crash
</p>
<p>
This is with
</p>
<ul><li>gtk-0.12.1, cairo-0.12.1
</li><li>MacOS X Lion
</li><li>GHC 7.2.1 (generating 64 bit code)
</li></ul><p>
and also with the development versions (gtk-0.12.2, etc)
</p>
<p>
-- Eric Kow (eric.kow, gmail)
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1241#changeloghttp://trac.haskell.org/gtk2hs/ticket/1200
http://trac.haskell.org/gtk2hs/ticket/1200#1200: missing symbols when gtk is built with Quartz backendTue, 17 Aug 2010 22:50:48 GMTguest<p>
On OS X, if using the quartz backend (<a class="ext-link" href="http://gtk-osx.sourceforge.net/"><span class="icon">http://gtk-osx.sourceforge.net/</span></a>), gtk2hs will build but any programs built with it fail with the message:
</p>
<pre class="wiki">Undefined symbols:
"_gdk_x11_drawable_get_xid", referenced from:
_s1Spk_info in libHSgtk-0.11.2.a(Structs.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
</pre><p>
The problem seems to be the function "drawableGetID" defined in Graphics/UI/Gtk/General/Structs.hsc. This function calls
</p>
<pre class="wiki">#if !defined(WIN32)
withForeignPtr drawable gdk_x11_drawable_get_xid
#else
withForeignPtr drawable gdk_win32_drawable_get_handle
#endif
</pre><p>
but gdk_x11_drawable_get_xid is not exported from the Quartz backend. Of course gdk_win32_drawable_get_handle isn't available either.
</p>
<p>
I don't know which function is the correct replacement on Quartz, but just leaving it out allows programs to link and appear to run properly.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1200#changeloghttp://trac.haskell.org/gtk2hs/ticket/1249
http://trac.haskell.org/gtk2hs/ticket/1249#1249: webkit_get_default_session in the Haskell webkit bindingsSun, 08 Jan 2012 02:15:19 GMTguest<p>
Please wrap webkit_get_default_session in the Haskell webkit bindings; see
</p>
<p>
<a class="ext-link" href="https://github.com/k0ral/hbro/issues/3"><span class="icon">https://github.com/k0ral/hbro/issues/3</span></a>
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1249#changeloghttp://trac.haskell.org/gtk2hs/ticket/1229
http://trac.haskell.org/gtk2hs/ticket/1229#1229: x86_64 problemThu, 21 Jul 2011 10:33:02 GMTguest<p>
Hi, I don't know if you are aware of this problem, or if I'm stupid and can't pass over this
but when I try to install the package I receive this error message:
</p>
<p>
Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ...
ld: warning: -read_only_relocs cannot be used with x86_64
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
</p>
<p>
I use a <a class="missing wiki" href="http://trac.haskell.org/gtk2hs/wiki/MacBook" rel="nofollow">MacBook?</a> Core Duo.
</p>
Resultshttp://trac.haskell.org/gtk2hs/ticket/1229#changelog