Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK 3.12 Popovers Wanted #36

Closed
depado opened this issue Oct 8, 2014 · 7 comments
Closed

GTK 3.12 Popovers Wanted #36

depado opened this issue Oct 8, 2014 · 7 comments

Comments

@depado
Copy link

depado commented Oct 8, 2014

Here is quite a challenge for you !
In order to make it the best ui ever, I'd suggest adding some popovers everywhere.
http://blogs.gnome.org/mclasen/files/2014/03/gedit-popover1.png

@andlabs
Copy link
Owner

andlabs commented Oct 8, 2014

The thing pictured is more than just a popover: it's also a custom menu (as far as I can tell, anyway). For that, I defer to the menu feature request (I don't know what a good API for that would be; if you have any ideas let me know).

I wouldn't be able to use the native popover implementation for GTK+, but I can definitely fake one. (I would have to fake one on Windows anyway.)

Note to self: this would imply Area.OpenPopoverAt() as well.

@depado
Copy link
Author

depado commented Oct 9, 2014

I really got no knowledge in Gtk+ (except using it I mean) so I can't really point you a good API. Anyway that would be amazing, and I would like to thank you for the amazing work you provided. 👍

@andlabs
Copy link
Owner

andlabs commented Oct 9, 2014

http://imgur.com/4WtPdWP Windows popovers take 1 (see windowspopover/ folder)

@depado
Copy link
Author

depado commented Oct 10, 2014

Damn already ? That's amazing. Great work.

@andlabs
Copy link
Owner

andlabs commented Oct 11, 2014

All right, API question time

func NewPopover(owner Window, child Control) Popover
// alternatively
func (w Window) NewPopover(child Control) Popover

A Popover needs to be owned by another Window for things like modality to work properly; it can be relative to any control in that Window.

Fine with everyone here?

@depado
Copy link
Author

depado commented Oct 12, 2014

Looks fine to me ^^

@andlabs
Copy link
Owner

andlabs commented Sep 3, 2015

Migrated to libui as andlabs/libui#5; follow that instead

@andlabs andlabs closed this as completed Sep 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants