[maemo-commits] [maemo-commits] r9422 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Jan 29 16:06:37 EET 2007
- Previous message: [maemo-commits] r9421 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r9423 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: moimart
Date: 2007-01-29 16:06:36 +0200 (Mon, 29 Jan 2007)
New Revision: 9422
Modified:
projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.c
Log:
* libhildondesktop/statusbar-item.c:
- Condition set to TRUE by default
* libhildondesktop/hildon-desktop-panel-expandable.c:
- Use of statusbar's condition property
* ChangeLog updated.
Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog 2007-01-29 13:57:27 UTC (rev 9421)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog 2007-01-29 14:06:36 UTC (rev 9422)
@@ -1,3 +1,10 @@
+2007-01-29 Moises Martinez <moises.martinez at nokia.com>
+
+ * libhildondesktop/statusbar-item.c:
+ - Condition set to TRUE by default
+ * libhildondesktop/hildon-desktop-panel-expandable.c:
+ - Use of statusbar's condition property
+
2007-01-29 Johan Bilien <johan.bilien at nokia.com>
* src/hd-plugin-loader-legacy.c: Connect changes in the condition
Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c 2007-01-29 13:57:27 UTC (rev 9421)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c 2007-01-29 14:06:36 UTC (rev 9422)
@@ -281,13 +281,20 @@
ex_panel->priv->arrow = arrow;
}
-
- hildon_desktop_panel_expandable_add_in_extension (ex_panel, item);
+
+ if (STATUSBAR_IS_ITEM (button) && !STATUSBAR_ITEM (button)->condition)
+ g_debug ("Statusbar: Item not visible");
+ else
+ hildon_desktop_panel_expandable_add_in_extension (ex_panel, item);
}
else
{
ex_panel->priv->n_items++;
- HILDON_DESKTOP_PANEL_CLASS (hildon_desktop_panel_expandable_parent_class)->add_button (panel,button);
+
+ if (STATUSBAR_IS_ITEM (button) && !STATUSBAR_ITEM (button)->condition)
+ g_debug ("Statusbar: Item not visible");
+ else
+ HILDON_DESKTOP_PANEL_CLASS (hildon_desktop_panel_expandable_parent_class)->add_button (panel,button);
}
ex_panel->priv->items = g_list_append (ex_panel->priv->items, item);
Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.c 2007-01-29 13:57:27 UTC (rev 9421)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.c 2007-01-29 14:06:36 UTC (rev 9422)
@@ -110,7 +110,7 @@
g_param_spec_boolean("condition",
"condition",
"plugin that cant'be destroyed",
- FALSE,
+ TRUE,
G_PARAM_READWRITE));
}
@@ -120,6 +120,8 @@
{
item->window = NULL;
item->vbox = NULL;
+
+ item->condition = TRUE;
}
static void
- Previous message: [maemo-commits] r9421 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r9423 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
