koral | 11 May 2013 17:27
Favicon

darcs patch: Compatibility with webkitgtk v2.0.1

1 patch for repository http://code.haskell.org/webkit:

Sat May 11 17:05:40 CEST 2013  koral <koral att mailoo dott org>
  * Compatibility with webkitgtk v2.0.1
Attachment (patch-preview.txt): text/x-darcs-patch, 173 KiB
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
koral | 21 Apr 2013 19:12
Favicon

Hierarchy file for webkit

Hello,

I've started fiddling with webkit's binding, as it seems rather unmaintained and as I need some missing
functions for my project (hbro).
First surprise: as is, darcs version of webkit package doesn't compile, because of missing ObjectClass
instances in Type.chs.

I didn't find any documentation about how the build chain works, so I resorted to a plain reading of
Setup*.hs files.
I first attempted to edit Types.chs directly, until I realized it is generated by gtk2hsTypeGen before
each build -- would have appreciated some hint about that not to waste time.

I had to print some internal states from SetupMain.hs to display the arguments fed to gtk2hsTypeGen -- side
suggestion: what about adding some logs in Gtk2Hs module so that newbies can understand what's going on ?
So it appears hierarchy{,3}.list files are read by gtk2hsTypeGen to generate Type.chs. I noticed that
GtkObject was removed from hierarchy3.list, and that putting it back fixes the build as the ObjectClass
instances get generated.

Was that GtkObject removal intended ? If yes, how else could we fix webkit's build ?

Also, as I'm planning to update the webkit's package a little bit, would you have some
documentation/guidelines to recommend ? I've just started learning FFI so I'm not aware of the usual
idioms/good practices to apply.

--
koral

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
(Continue reading)

José Romildo Malaquias | 12 Jan 2013 12:16
Picon

ListStore and Data.Sequence.Seq

Hello.

The ListStore type of gtk2hs uses the type Data.Sequence.Seq in its
implementation.

Maybe gtk2hs could provide functions for creating a ListStore from a
Seq, retrieving the elements of a list store as a Seq, and setting the
elements of the list store from a Seq.

Currently there are similar functions that uses Data.List.

With the suggested functions, in many situations the conversion from
Seq to List and the other way around may be avoided.

Romildo

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Garrett Mitchener | 29 Jan 2013 19:54
Picon

trouble with trac & segmentation fault

Hi, I reported a bug that I'd really like to see fixed


I tried to make an account for myself in trac, but when I try "verify my e-mail address",  I never get the automatic e-mail with the verification token.  It's not in the trash or spam folders.  This means my trac account is so limited as to be useless.  In particular, I can't add my e-mail address to the CC: list.  I also can't do that using the guest account -- it will only add the guest account's e-mail address.  Can someone look into this?

Thanks,
-- Garrett Mitchener
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
Rouan van Dalen | 9 Jan 2013 10:31
Picon
Favicon

problems getting the ancestor of an ancestor of a widget

Hi everyone,

I have an Entry widget inside an EventBox (innerEventBox), and I have the innerEventBox inside another
EventBox (outerEventBox).

I need to traverse from the Entry widget to the outerEventBox so I can set the background color of the
outerEventBox.

I have the following code to do this:

         get2ndAncestor :: Widget -> GType -> IO (Maybe Widget)
         get2ndAncestor widget gtype =
            do ancestor1 <- widgetGetAncestor widget gtype
               ancestor2 <- maybe (return Nothing) ((flip widgetGetAncestor) gtype) ancestor1
               return ancestor2

When I use this code, it gets the 1st ancestor correctly, but the 2nd ancestor is the same as the 1st.
The code above never returns the 2nd ancestor.

The docs for widgetGetAncestor has a line that says:

"Note that unlike widgetIsAncestor, widgetGetAncestor considers widget to be an ancestor of itself."

I am not sure exactly what that line means, and if it is the cause of my problems.  If so, how do I get the
ancestor of the ancestor of a widget?

Regards

Rouan


------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
Hamish Mackenzie | 6 Jan 2013 03:16
Picon

Announce: Leksah 0.13.1 (a bit experimental)

This has mostly bug fixes, GHC 7.4.2, GHC 7.6.1 and Gtk3
support.

I have not uploaded it to Hackage as it uses Gtk2Hs patches
that are not in Hackage.

New features include "View->Dark" (OS X only) and
"View->Fullscreen".

OS X (using Gtk3)
-----------------
Choose the version that matches your installed GHC
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.3.dmg
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.4.dmg
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.1.dmg
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.2.dmg
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.6.1.dmg
(probable needs OS X 10.7)

Windows (still Gtk2)
--------------------
Choose the version that matches your installed GHC
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.3.exe
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.4.exe
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.1.exe
http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.2.exe

Linux
-----
Follow the steps in the .travis.yml file...
https://github.com/leksah/leksah/blob/master/.travis.yml
Should go something like this...
https://travis-ci.org/leksah/leksah

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
wagnerdm | 22 Dec 2012 05:40
Favicon
Gravatar

TypedTreeModelFilter

I'm looking into http://hackage.haskell.org/trac/gtk2hs/ticket/1269,  
which suggests exporting TypedTreeModelFilter from  
Graphics.UI.Gtk.ModelView.TreeModelFilter. Does anyone with a longer  
memory than me know whether this was left out intentionally (like, to  
preserve type safety somehow, for example)? If not, I'll just assume  
it was an oversight and start exporting it.

Thanks,
~d

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
timothyhobbs | 1 Dec 2012 19:47
Picon
Favicon

panedAdd1 has the wrong type

Hello,
I just found a fun bug in GTK2HS.
panedAdd1 :: (PanedClass self, WidgetClass child) => self -> child -- ^ <at> child <at> - the child to add -> IO ()should be:
panedAdd1 :: (PanedClass self, ContainerClass child) => self -> child -- ^ <at> child <at> - the child to add -> IO ()I found this, because I had a VBox that I used to pass directly to panedAdd1.
Then after a remodularization I ended up calling castToWidget on said VBox.  This resulted in my VBox not being added to the Paned at all :(
Interestingly, simply doing castToContainer again didn't save me.  I had to create a new VBox to put my widgetized VBox into...

Tim
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
timothyhobbs | 22 Nov 2012 22:17
Picon
Favicon

Would it bug anyone if I started uploading some some widgets with the module names Grpahics.UI.Gtk.Custom.*?

Would it bug anyone if I started uploading some some widgets with the module names Grpahics.UI.Gtk.Custom.*?

Just want to make sure I'm not in conflict with some gtk2hs naming scheme...

Thanks,
Timothy
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
Magicloud | 19 Nov 2012 09:00
Picon

Re: Experimental Gtk 3 support in Leksah

Finally I found a gtk3 patch to gtk2hs. Thank you for the work.

But when I was trying to install it, I got these errors:
Graphics/UI/Gtk/Printing/PrintOperation.chs:409:6:
    Couldn't match expected type `Ptr ()' with actual type `Window'
    In the return type of a call of `toWindow'
    In the third argument of `\ (PrintOperation arg1) arg2 arg3 arg4
                                -> withForeignPtr arg1
                                   $ \ argPtr1
                                       -> gtk_print_operation_run argPtr1 arg2 arg3 arg4', namely
      `(toWindow parent)'
    In the expression:
      (\ (PrintOperation arg1) arg2 arg3 arg4
         -> withForeignPtr arg1
            $ \ argPtr1 -> gtk_print_operation_run argPtr1 arg2 arg3 arg4)
        (toPrintOperation self)
        ((fromIntegral . fromEnum) action)
        (toWindow parent)
        errorPtr

Graphics/UI/Gtk/Printing/PrintOperation.chs:504:7:
    Couldn't match expected type `Ptr ()' with actual type `Window'
    In the return type of a call of `toWindow'
    In the first argument of `\ arg1
                                (PageSetup arg2)
                                (PrintSettings arg3)
                                -> withForeignPtr arg2
                                   $ \ argPtr2 -> withForeignPtr arg3 $ \ argPtr3 -> ...', namely
      `(toWindow window)'
    In the second argument of `($)', namely
      `(\ arg1 (PageSetup arg2) (PrintSettings arg3)
          -> withForeignPtr arg2
             $ \ argPtr2
                 -> withForeignPtr arg3
                    $ \ argPtr3
                        -> gtk_print_run_page_setup_dialog arg1 argPtr2 argPtr3)
         (toWindow window)
         (toPageSetup pageSetup)
         (toPrintSettings setting)'

Graphics/UI/Gtk/Printing/PrintOperation.chs:530:7:
    Couldn't match expected type `Ptr ()' with actual type `Window'
    In the return type of a call of `toWindow'
    In the first argument of `\ arg1
                                (PageSetup arg2)
                                (PrintSettings arg3)
                                arg4
                                arg5
                                -> withForeignPtr arg2
                                   $ \ argPtr2 -> withForeignPtr arg3 $ \ argPtr3 -> ...', namely
      `(toWindow window)'
    In a stmt of a 'do' block:
      (\ arg1 (PageSetup arg2) (PrintSettings arg3) arg4 arg5
         -> withForeignPtr arg2
            $ \ argPtr2
                -> withForeignPtr arg3
                   $ \ argPtr3
                       -> gtk_print_run_page_setup_dialog_async
                            arg1 argPtr2 argPtr3 arg4 arg5)
        (toWindow window)
        (toPageSetup pageSetup)
        (toPrintSettings setting)
        funcPtr
        nullPtr
Failed to install gtk-0.12.3.1

在 2012年10月8日星期一UTC+8上午1时20分26秒,Hamish写道:
I have managed to get Leksah working with Gtk 3.  I have uploaded the
patched Gtk2Hs to patch-tag (including Peter's patches and some new ones).

Unfortunately the gtksourceview repo is still darcs-1 so I did not
think it was a good idea.

Fun new features in Leksah are "View->Dark" mode switch, to request a dark
theme from Gtk (tested with the Adwaita theme) and a "Fullscreen"
mode (not tested on multi monitors yet).

OS X
----
You are probably best of with the binaries as gtk-osx is hard to install..
http://leksah.org/packages/leksah-0.13.0.0-ghc-7.0.3.dmg
http://leksah.org/packages/leksah-0.13.0.0-ghc-7.0.4.dmg
http://leksah.org/packages/leksah-0.13.0.0-ghc-7.4.1.dmg
(only tested on Mountain Lion)

Linux
-----
First install the patched Gtk2Hs

sudo apt-get install libgtksourceview-3.0-dev
darcs get http://patch-tag.com/r/hamish/gtk2hs
cd gtk2hs/tools
cabal install
cd ../gtk
cabal install -fgtk3

Then get the gtksourceview darcs repo and apply the patches found
here... http://goo.gl/fbykm

cd gtksourceview
cabal install -fgtk3

Finally follow the instructions in the Development section at the bottom
of this page...
http://www.leksah.org/download.html

Windows
-------
Ummm... Have you considered a linux VM?  I will try to make binaries
as soon as I get Gtk 3 installed (don't hold your breath).
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
timothyhobbs | 8 Nov 2012 14:56
Picon
Favicon

listStoreClear , listStoreRemove, and treeViewSetModel all broken?

Hey I've been playing around with http://www.haskell.org/haskellwiki/Gtk2Hs/Tutorials/TreeView and packing it up into a simple library.  I'm trying to make the list updatable however, and so far all of my attempts have failed :(

See line 45 of my attachment please.
Attachment (SimpleListView.hs): text/x-haskell, 2534 bytes
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Gmane