Fun Hacks

Put together a small patch for gtk+ today that runs modal windows on OS X as the "pop-over sheet" typically found with Cocoa applications.

Obligatory screenshot below. And patch. And Bugzilla #589084.

Comments (8)

  1. Great work! Will it slide down like it does in OS X (perhaps a window manager issue?)

    Yay for more cross platform integration!

    Wednesday, July 29, 2009 at 7:40 am #
  2. chergert wrote:

    @Kalle Yes, it in fact does slide down :-)

    Wednesday, July 29, 2009 at 8:35 am #
  3. marc wrote:

    Still no easy installer for GTK+ on OS X.

    Gnome-screenshots doesn’t work, you can’t take screenshots.

    Wednesday, July 29, 2009 at 9:20 am #
  4. Anonymous wrote:

    Looks nice. Can we have that on other Gtk+ platforms, too?

    Wednesday, July 29, 2009 at 10:30 am #
  5. chergert wrote:

    @marc:

    I’ll try to put something together eventually after 2.18 if nobody else has it planned. jhbuild makes it relatively easy now.

    @Anonymous:

    This isn’t possible today on X11. I’d love to see a freedesktop.org spec for compositors to enable features like this on x11.

    More specifically, I want to be able to get a “compositor handle” for my GtkWindow and do my own transformations within the process if need be. For example, tear of the top layer of the window and have it fly off the screen like a piece of paper in the wind.

    Wednesday, July 29, 2009 at 10:59 am #
  6. marc wrote:

    Please do put together an installer/.framework for Leopard. Make it official if possible.

    Post it in your blog so we can know about it.

    It would be nice if it worked with PyGTK too.

    Thank you so much.

    The gnome-screenshot bug I was referring too is a bug with GTK on OS X that has been there forever.

    http://bugzilla.gnome.org/show_bug.cgi?id=589976

    Wednesday, July 29, 2009 at 11:45 am #
  7. Wouter wrote:

    You might want to include a link to the bugzilla bug itself, instead of just the patch…

    Wednesday, July 29, 2009 at 6:03 pm #
  8. chergert wrote:

    @marc

    wow, thats a pretty awesome screenshot in that bug ;-)

    @Wouter

    updated, thanks!

    Wednesday, July 29, 2009 at 8:56 pm #