Opened 11 years ago
Closed 11 years ago
#40021 closed enhancement (fixed)
gtk-osx-application: add support for gtk3
Reported by: | dbevans (David B. Evans) | Owned by: | elelay (Eric Le Lay) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | cooljeanius (Eric Gallager), c.herbig@…, su-v | |
Port: | gtk-osx-application |
Description
The current port (2.0.1) blocks installation for any configuration other than gtk2 but the underlying source has support for either gtk2 or gtk3.
It would useful if this port could be modified to include variants for gtk2/gtk3 or both if that can be accommodated.
For instance see #40016.
Attachments (3)
Change History (11)
comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)
Cc: | egall@… added |
---|
Changed 11 years ago by elelay (Eric Le Lay)
comment:4 Changed 11 years ago by elelay (Eric Le Lay)
Hi Dave,
find attached the updated gtk-osx-application Portfile with gtk3 variant (gtk2 being the default, not a variant). I'm not committing until you validate it suits your needs in gtksourceview...
python GTK3 bindings of GtkOSXApplication are invoked this way:
from gi.repository.GtkosxApplication import Application a = Application() # make it jump a.attention_request(0) # stop jumping a.cancel_attention_request(0)
I had no success at first:
from gi.repository import Gtk
failed not finding gtk. When I built py27-gobject3 from source it succeeded...
comment:5 Changed 11 years ago by elelay (Eric Le Lay)
Status: | new → assigned |
---|
comment:6 Changed 11 years ago by dbevans (David B. Evans)
Attached is an amended version of your Portfile that builds +gtk3 and allows gtksourceview3 +quartz to build. Just needed to change your pre-configure block to work with either gtk2 or gtk3. Thanks.
Changed 11 years ago by dbevans (David B. Evans)
Attachment: | Portfile.3 added |
---|
Try again -- missed one gtk3
comment:8 Changed 11 years ago by elelay (Eric Le Lay)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Cc Me!