RE: Easy hildon desktop question -- preventing panel moving
- From: "Li, Horace" <horace li intel com>
- To: "Spencer, Bob" <bob spencer intel com>, <hildon-list gnome org>
- Subject: RE: Easy hildon desktop question -- preventing panel moving
- Date: Wed, 19 Mar 2008 17:13:01 +0800
Hi, Bob,
It looks that setting "move" to FALSE could prevent HD_TYPE_PANEL_WINDOW (marquee) from moving.
... ...
info->container = g_object_new (HD_TYPE_PANEL_WINDOW,
"x", x,
"y", y,
"width", width,
"height", height,
"orientation", orientation,
"stretch", FALSE,
"move", FALSE,
NULL);
... ...
Thanks,
Horace
-----Original Message-----
From: Spencer, Bob
Sent: Wed 3/19/2008 6:15 AM
To: hildon-list gnome org; Li, Horace
Subject: Easy hildon desktop question -- preventing panel moving
I can drag my panel_box (marquee) from the top to other sides of the homescreen. How can I prevent this? I thought setting the "move" value to FALSE (blue below) when loading containers was all I needed, but it has been awhile since I
static void hd_desktop_load_containers (HDDesktop *desktop)
{
...
if (!g_ascii_strcasecmp (type, HD_CONTAINER_TYPE_PANEL_BOX))
{
info->container = g_object_new (HD_TYPE_PANEL_WINDOW,
"x", x,
"y", y,
"width", width,
"height", height,
"orientation", orientation,
"stretch", TRUE,
NULL);
}
else if (!g_ascii_strcasecmp (type, HD_CONTAINER_TYPE_PANEL_EXPANDABLE))
{
orientation = HILDON_DESKTOP_PANEL_WINDOW_ORIENTATION_LEFT;
info->container = g_object_new (HD_TYPE_PANEL_WINDOW_DIALOG,
"x", x,
"y", y,
"width", width,
"height", height,
"orientation", orientation,
"padding-left", 0,
"padding-right", 0,
"padding-top", 0,
"padding-bottom", 0,
"use-old-titlebar", FALSE,
"move", TRUE,
NULL);
}
My desktop.conf is:
[Marquee]
X-Type=panel_box
X-Position-X=0
X-Position-Y=0
X-Size-Width=800
X-Size-Height=52
X-Orientation=top
X-Is-Ordered=1
X-Config-File=marquee.conf
X-Plugin-Dir=NONE/share/applications/hildon-marquee
...
Bob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]