Custom Query (152 matches)

Filters
 
Columns

Show under each result:


Results (13 - 15 of 152)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#1158 fixed Widgets should implement Eq and Ord. axel guest

Reported by guest, 5 years ago.

description

When using GTK+ from a typical imperative language such as C++, it's

occasionally useful to use the object identity of a widget: for instance, you might want to create a set of "main" windows and terminate the program only when all of them close. Since widgets are represented by pointers, this is straightforward, and they can be stored in any standard container class (such as std::set).

Unfortunately, the Haskell binding doesn't expose this information.

It would be nice if GTK+ objects had instances of Ord and Eq based on pointer identity. Then they could, e.g., be stored in Data.Set.Set objects.

(I know this can be worked around; it's just something that would

save a little trouble)

Daniel

Reported on Debian BTS: http://bugs.debian.org/520474

#1159 wontfix Aditional data in EventM axel guest

Reported by guest, 5 years ago.

description

There's an 'eventCoordinates' available inside an EventM that returns a point as (Double,Double). Using points as (Double,Double) is also a convention in Cairo. When answering to expose events, as well as mouse events, we usually have to ask 'widgetGetSize', which returns (Int,Int), and the conversion to (Double,Double) usually make nice code look dirty. What if we had an 'eventWindowSize' with a (Double,Double) return?

#1172 fixed Some demos do not close properly on "Close" axel guest

Reported by guest, 5 years ago.

description

When I press the "Close" button in the opengl gtk2hs demo, the window stays up, and control returns to ghci. I fixed my own copy by changing

  Gtk.onClicked button Gtk.mainQuit

to

  Gtk.onClicked button (Gtk.widgetDestroy window)

At least one other demo (carsim) has the same bug. I haven't checked them all.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.