Find the answer to your Linux question:
Results 1 to 7 of 7
What makes an application swallowable/dockable so that it can go in a window manger's dock (e.g. in the fluxbox slit)? I've tried using an undecorated window but that doesn't seem ...
  1. #1
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955

    [SOLVED] How do I make a gtk2 application swallowable?

    What makes an application swallowable/dockable so that it can go in a window manger's dock (e.g. in the fluxbox slit)?

    I've tried using an undecorated window but that doesn't seem to do the trick.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    I think in the case of Gnome you can link to a library called libpanel-applet

    http://developer.gnome.org/doc/tutor...let/index.html

    How's Barbarella coming along?

  3. #3
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Quote Originally Posted by bigtomrodney View Post
    I think in the case of Gnome you can link to a library called libpanel-applet

    http://developer.gnome.org/doc/tutor...let/index.html
    This is actually something I'm trying to add to Barbarella - an option to make it swallowable. But I don't want to use anything that belongs to Gnome because I want Barbarella to be independent of its environment. Actually I've just found a gtk/gdk window hint called GDK_WINDOW_TYPE_HINT_DOCK that I hope will make a window "dockable" when set.
    How's Barbarella coming along?
    The beta version is up on Sourceforge now and I've put something on Freshmeat too, but no feedback as yet.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  4. #4
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    I'll go get it now

  5. #5
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Downloaded that latest version. It build perfectly and installs. I'm running it now with my own icons and it seems great. It's very fast loading and running. Only one thing. It's not a bug but I thought I'd mention it; it reports its version as 1.0. Just wanted to say it in case

  6. #6
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Quote Originally Posted by bigtomrodney View Post
    Downloaded that latest version. It build perfectly and installs. I'm running it now with my own icons and it seems great. It's very fast loading and running. Only one thing. It's not a bug but I thought I'd mention it; it reports its version as 1.0. Just wanted to say it in case
    You'd better explain to me the conventions for version numbers. Remember, this is the first official public program I've ever written (though I've got two other projects half done). Does counting normally start at 1 or 0?

    By the way, I tried setting that window type hint that I mentioned in my previous post: still no joy. I think perhaps I should post to the fluxbox application developers list; someone there can probably tell me off the top of his head how it's done.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  7. #7
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Well, I posted this problem to the gtk-app-developers mailing list and a very nice man replied within 5 minutes with some code that he'd written for a swallowable clock applet. I had to tweak it a bit to get it to compile with my versions of the libraries but then it ran perfectly; it wasn't too difficult to transfer the necessary bits and pieces to my program.

    Basically you use low-level Xlib functions to create an empty window of the right size in the dock (Xlib is much more explicit than gtk in giving orders to window managers) and make the top-level widget of your application a gtk plug rather than a gtk window. Then you use another bit of Xlib code to plug it into the dock window that you have made.

    What a lovely community this is. Everybody helps his neighbour; it's like the Christian Church ought to be but isn't.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...