conformal / gotk3

Go bindings for GTK3
ISC License
471 stars 84 forks source link

GNOME >3.4 Application Menu Support #27

Open efgee opened 10 years ago

efgee commented 10 years ago

Just started to use gotk3 and really think it's the best gtk library for go out there. Don't know if feature requests should be placed here... I apologize if it's the wrong place for it.

Here it goes:

Is it possible to add support for GNOME 3's Application Menu and Window Menu?

The Application Menu (GMenu) is the one sitting in the GNOME Shell Bar. Example in C: "https://developer.gnome.org/gnome-devel-demos/3.5/gmenu.c.html.en"

The Window Menu (MenuButton) is called through a Button (Not a Menu Bar). Example in C: https://developer.gnome.org/gnome-devel-demos/3.10/menubutton.c.html.en

It would be awesome if you guys could add these things.

Also: are there any plans to add more widget to it or is it easy for a user to add it? (like a webkit widget etc.)

Thanks

raichu commented 10 years ago

This sounds unlikely because it's not a part of gtk3.

jrick commented 10 years ago

It is: https://developer.gnome.org/gtk3/stable/GtkApplication.html

I am planning on adding GtkApplication support in the future, so gotk3 applications can be further integrated into all sorts of various environments (be it Gnome, OS X, etc.). However, at the moment I don't have any of these environments set up (I just run dwm as my window manager, so I don't see part of the application integrated into my window manager or desktop environment) so I'd be unable to do any extensive testing myself to see that everything works as expected.

raichu commented 10 years ago

I can't see anything on that page that says it is a part of gtk. I can only see that gtk can use it.

It appears to me that it's Gnome component.

dajohi commented 10 years ago

@raichu You are wrong. GtkApplication is indeed GTK API.

raichu commented 10 years ago

No, it's you who's wrong.

Since when are we talking about GtkApplication? Your title says "GNOME >3.4 Application Menu Support". The links in your post are to GMenu and MenuButton. GMenu and GMenuModel are parts of GNOME.

Oh, and if you think you can do this without pulling GNOME stuff, good luck writing the wrappers.

dajohi commented 10 years ago

Since @jrick mentioned it.

It is not my title. They are not my links. How about some context in your posts?

Why such the blatant negativity?

raichu commented 10 years ago

Just replace "you title" with "the title". My point stands.

Sorry, I never thought optimism and sunshine would correct a wrong, or move GMenu from GNOME into gtk.

dajohi commented 10 years ago

So @jrick mentions GtkApplication and provides a webpage link. And you respond with:

"I can't see anything on that page that says it is a part of gtk."

Makes sense.

raichu commented 10 years ago

The title says "GNOME >3.4 Application Menu Support" and the link is to GMenu which is a part of GNOME, and all of a sudden, you believe it becomes about GtkApplication.

Makes sense. // On it's own line to make the impact better like you. I for myself tremble when I see short sentences on their own lines, since they shine with the illusion of being purely right and brilliant.

Can't touch this. // This one too, I'm so cool.

Anyway, good day. Do/think whatever you want if it makes you feel better. Not interested in this project anymore.

Bye. // I'm on a roll, check mate.