[maemo-commits] [maemo-commits] r9414 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jan 29 15:27:45 EET 2007
Author: moimart
Date: 2007-01-29 15:27:44 +0200 (Mon, 29 Jan 2007)
New Revision: 9414

Modified:
   projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.c
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.h
Log:

	* libhildondesktop/statusbar-item.[ch]:
        - Use of the 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:18:01 UTC (rev 9413)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-01-29 13:27:44 UTC (rev 9414)
@@ -1,3 +1,8 @@
+2007-01-29  Moises Martinez  <moises.martinez at nokia.com>
+
+	* libhildondesktop/statusbar-item.[ch]:
+	- Use of the condition property
+
 2007-01-26  Moises Martinez  <moises.martinez at nokia.com>
 
 	* data/statusbar.conf: configuration file for statusbar

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:18:01 UTC (rev 9413)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.c	2007-01-29 13:27:44 UTC (rev 9414)
@@ -34,6 +34,7 @@
 enum
 {
   SB_PROP_0,
+  SB_PROP_CONDITION,
   SB_PROP_MANDATORY
 };
 
@@ -104,6 +105,13 @@
                                                         "plugin that cant'be destroyed",
                                                         FALSE,
                                                         G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
+  g_object_class_install_property (object_class,
+                                   SB_PROP_CONDITION,
+                                   g_param_spec_boolean("condition",
+					   		"condition",
+                                                        "plugin that cant'be destroyed",
+                                                        FALSE,
+                                                        G_PARAM_READWRITE));
 
 }
 
@@ -121,6 +129,9 @@
 
   switch (prop_id)
   {
+    case SB_PROP_CONDITION:
+      g_value_set_boolean (value,sbitem->condition);
+      break;
     case SB_PROP_MANDATORY:
       g_value_set_boolean (value,sbitem->mandatory);
       break;
@@ -137,6 +148,9 @@
 
   switch (prop_id)
   {
+    case SB_PROP_CONDITION:
+      sbitem->condition = g_value_get_boolean (value);
+      break;
     case SB_PROP_MANDATORY:
       sbitem->mandatory = g_value_get_boolean (value);
       break;

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.h
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.h	2007-01-29 13:18:01 UTC (rev 9413)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/statusbar-item.h	2007-01-29 13:27:44 UTC (rev 9414)
@@ -54,7 +54,7 @@
     gint position;
     
     gboolean mandatory;
-    gboolean conditional;
+    gboolean condition;
 };
 
 struct _StatusbarItemClass


More information about the maemo-commits mailing list