Reply
Thread Tools
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#11
Originally Posted by jd4200 View Post
I've been looking over the last few days at modifying the menu bar, but for me it is to shrink it.

I've been looking around in the hildon-desktop source code but can't find anything useful.
It seems to me the related module is src/home/hd-title-bar.c and the code is at line 339:

Code:
      if (BTN_FLAGS[i] & BTN_FLAG_SET_SIZE)
        {
          if (!(BTN_FLAGS[i] & BTN_FLAG_ALIGN_RIGHT))
            clutter_actor_set_size(priv->buttons[i],
              HD_COMP_MGR_TOP_LEFT_BTN_WIDTH,
              HD_COMP_MGR_TOP_LEFT_BTN_HEIGHT);
          else
            clutter_actor_set_size(priv->buttons[i],
              HD_COMP_MGR_TOP_RIGHT_BTN_WIDTH,
              HD_COMP_MGR_TOP_RIGHT_BTN_HEIGHT);
        }
    }
The parameter HD_COMP_MGR_TOP_LEFT/RIGHT_BTN_HEIGHT is defined in hd-comp-mgr.h in the src/mb folder, and the value is 56 pixels, which is about right judging by the relative size of the task bar to the screen.
 
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#12
FYI, it looks to me changing menu button place is (a lot) more tricky... the code near line 330 has a comment talking about left-aligned button default at (0,0) but I guess it's determined by something else, maybe clutter (the underlying graphic toolset for hildon-desktop) automatically place the first button assigned to a group (in this case priv->foreground) to (0,0).
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#13
Originally Posted by sony123 View Post
It seems to me the related module is src/home/hd-title-bar.c and the code is at line 339:
Thanks, I almost gave up on this one, I'll give it a go later to see if it works.
__________________
BTC:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj
 
Airtux's Avatar
Posts: 133 | Thanked: 51 times | Joined on Jul 2010 @ Swiss
#14
Can it be easier to do with Queen Beacon widget?
 
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#15
Originally Posted by Airtux View Post
Can it be easier to do with Queen Beacon widget?
This is not something you can change on the fly. It's determined at compile time (pre-compile to be exact), so you need to re-generate the binary to see this change.
 
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#16
wow, i would expect this type of thing to, like, be stored in a .xml file somewhere and not hardcoded in a binary 0.0
 
Posts: 58 | Thanked: 10 times | Joined on Jan 2010
#17
Yeah that would have made life lot easier..

Originally Posted by TiagoTiago View Post
wow, i would expect this type of thing to, like, be stored in a .xml file somewhere and not hardcoded in a binary 0.0
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:29.