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)

Portfile (4.8 KB) - added by elelay (Eric Le Lay) 11 years ago.
Portfile.2 (5.3 KB) - added by dbevans (David B. Evans) 11 years ago.
Amended Portfile
Portfile.3 (5.3 KB) - added by dbevans (David B. Evans) 11 years ago.
Try again -- missed one gtk3

Download all attachments as: .zip

Change History (11)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 11 years ago by c.herbig@…

Cc: c.herbig@… added

Cc Me!

comment:3 Changed 11 years ago by su-v

Cc: suv-sf@… added

Cc Me!

Changed 11 years ago by elelay (Eric Le Lay)

Attachment: Portfile added

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: newassigned

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.2 added

Amended Portfile

Changed 11 years ago by dbevans (David B. Evans)

Attachment: Portfile.3 added

Try again -- missed one gtk3

comment:7 Changed 11 years ago by elelay (Eric Le Lay)

Nice! Committed in r109119.

Thanks

comment:8 Changed 11 years ago by elelay (Eric Le Lay)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.