Moving date & time to right is easy, but it cause layout restructure of the
whole toolbar. So, in addition to move Date & Time to right, you have to move
all other toolbar buttons to left.
Below modifications are for your reference. I have tried and it works.
1. In mnb_toolbar_constructed (GObject *self).
//Move Date&Time from left to right
clutter_actor_set_position (CLUTTER_ACTOR (priv->time), 192 / 2, 16); ->
clutter_actor_set_position (CLUTTER_ACTOR (priv->time), (screen_width - 213) +
192 / 2, 16);
clutter_actor_set_position (CLUTTER_ACTOR (priv->date), 192 / 2, 48); ->
clutter_actor_set_position (CLUTTER_ACTOR (priv->date), (screen_width - 213) +
192 / 2, 48);
2. In mnb_toolbar_append_panel and mnb_toolbar_append_panel_old functions,
clutter_actor_set_position (CLUTTER_ACTOR (button),
213 + (BUTTON_WIDTH * index)
------------------------------------> (BUTTON_WIDTH * index)
+ (BUTTON_SPACING * index),
TOOLBAR_HEIGHT - BUTTON_HEIGHT);
x = screen_width - (applets + 1) * (TRAY_BUTTON_WIDTH + TRAY_PADDING); ------>
x = (screen_width - 213) - (applets + 1) * (TRAY_BUTTON_WIDTH +
TRAY_PADDING);
3. In shell_tray_manager_icon_added_cb function
x = screen_width - (col + 1) * (TRAY_BUTTON_WIDTH + TRAY_PADDING) -
TRAY_PADDING; ---> x = (screen_width -213) - (col + 1) * (TRAY_BUTTON_WIDTH +
TRAY_PADDING) - TRAY_PADDING;
WangJing
________________________________
From: Le Quang Minh [mailto:[email protected]]
Sent: 2009年9月1日 17:59
To: Wang, Jing J
Subject: Re: [Moblin Dev] Buttons position in mutter toolbar
Hi all
I wan't move date&time to the right in toolbar. Where to find it ?
2009/9/1 Wang, Jing J <[email protected]<mailto:[email protected]>>
If you'd like adjust button order in toolbar, update
mnb_toolbar_panel_name_to_index (const gchar *name) in mnb_toolbar.c is the
easy way. If you'd like change button size and location, look at
mnb_toolbar_append_panel (MnbToolbar *toolbar, MnbDropDown *panel), where
button is created, set size and set position.
-----Original Message-----
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of bob
Sent: 2009年9月1日 11:24
To: [email protected]<mailto:[email protected]>
Subject: [Moblin Dev] Buttons position in mutter toolbar
Hi All
I'm trying to adjust button position of top toolbar but I don't see any
position setting in *.CSS and Mutter-moblin source code.
Does anyone know whare to find it?
Thansk,
-Bob
_______________________________________________
Moblin dev Mailing List
[email protected]<mailto:[email protected]>
To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org
once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists
_______________________________________________
Moblin dev Mailing List
[email protected]<mailto:[email protected]>
To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org
once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org
once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists