Results 1 to 3 of 3

Thread: How to limit PanelApplet size that is set to EXPAND_MAJOR ?

  1. #1
    Join Date
    Feb 2007
    Location
    Slovenia
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

    How to limit PanelApplet size that is set to EXPAND_MAJOR ?

    I need to use the PANEL_APPLET_EXPAND_MAJOR panel applet flag, so that I always know how much space I have to work with. But now the applet will take all the space it can. How do I prevent this while still use the flag? I know it is possible, because Window List does it.

    Let's look at this hypothetical panel arrangement:
    ...][applet1][MY_APPLET---------][applet2][...
    So, when I right-click on my applet, I want to get the applet's popup menu. And when I click on the empty area marked as "---------" I want to get the Panel's popup menu.
    How do I do this?

  2. #2
    Join Date
    Feb 2007
    Location
    Slovenia
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to limit PanelApplet size that is set to EXPAND_MAJOR ?

    OK I figured out the only way to do this is by using the following function:
    http://library.gnome.org/devel/panel...set-size-hints

    However I do not understand it due to bad documentation.
    Why does it need an array of min-max sizes? I just need one. Also, when I try it my applet gets the width of 1 pixel allocated all the time.

  3. #3
    Join Date
    Feb 2007
    Location
    Slovenia
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to limit PanelApplet size that is set to EXPAND_MAJOR ?

    Well it turns out the documentation is lying and that there is a bug.

    http://www.kuliniewicz.org/blog/arch...pplet-edition/

Bookmarks

Posting Permissions

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