[Goodies-commits] r7680 - in xfce4-clipman-plugin/trunk: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Sun Jul 5 08:37:32 CEST 2009


Author: mmassonnet
Date: 2009-07-05 06:37:32 +0000 (Sun, 05 Jul 2009)
New Revision: 7680

Modified:
   xfce4-clipman-plugin/trunk/ChangeLog
   xfce4-clipman-plugin/trunk/panel-plugin/menu.c
Log:
Fix previous commit

Modified: xfce4-clipman-plugin/trunk/ChangeLog
===================================================================
--- xfce4-clipman-plugin/trunk/ChangeLog	2009-07-05 06:22:16 UTC (rev 7679)
+++ xfce4-clipman-plugin/trunk/ChangeLog	2009-07-05 06:37:32 UTC (rev 7680)
@@ -1,4 +1,7 @@
 2009-07-05	Mike Massonnet
+Fix previous commit
+
+2009-07-05	Mike Massonnet
 Add reverse-order property to the menu
 
 	- panel-plugin/menu.c:

Modified: xfce4-clipman-plugin/trunk/panel-plugin/menu.c
===================================================================
--- xfce4-clipman-plugin/trunk/panel-plugin/menu.c	2009-07-05 06:22:16 UTC (rev 7679)
+++ xfce4-clipman-plugin/trunk/panel-plugin/menu.c	2009-07-05 06:37:32 UTC (rev 7680)
@@ -58,7 +58,7 @@
                                                          guint property_id,
                                                          const GValue *value,
                                                          GParamSpec *pspec);
-static void             clipman_collector_get_property  (GObject *object,
+static void             clipman_menu_get_property       (GObject *object,
                                                          guint property_id,
                                                          GValue *value,
                                                          GParamSpec *pspec);
@@ -161,7 +161,7 @@
   /* Insert an updated list of menu items */
   list = clipman_history_get_list (menu->priv->history);
   if (menu->priv->reverse_order)
-    list = g_list_reverse (list);
+    list = g_slist_reverse (list);
   for (l = list; l != NULL; l = l->next)
     {
       item = l->data;
@@ -245,8 +245,10 @@
 
   object_class = G_OBJECT_CLASS (klass);
   object_class->finalize = clipman_menu_finalize;
+  object_class->set_property = clipman_menu_set_property;
+  object_class->get_property = clipman_menu_get_property;
 
-  g_object_class_install_property (object_class, ENABLE_ACTIONS,
+  g_object_class_install_property (object_class, REVERSE_ORDER,
                                    g_param_spec_boolean ("reverse-order",
                                                          "ReverseOrder",
                                                          "Set to TRUE to display the menu in the reverse order",
@@ -293,7 +295,7 @@
                            const GValue *value,
                            GParamSpec *pspec)
 {
-  ClipmanCollectorPrivate *priv = CLIPMAN_COLLECTOR (object)->priv;
+  ClipmanMenuPrivate *priv = CLIPMAN_MENU (object)->priv;
 
   switch (property_id)
     {
@@ -307,12 +309,12 @@
 }
 
 static void
-clipman_collector_get_property (GObject *object,
-                                guint property_id,
-                                GValue *value,
-                                GParamSpec *pspec)
+clipman_menu_get_property (GObject *object,
+                           guint property_id,
+                           GValue *value,
+                           GParamSpec *pspec)
 {
-  ClipmanCollectorPrivate *priv = CLIPMAN_COLLECTOR (object)->priv;
+  ClipmanMenuPrivate *priv = CLIPMAN_MENU (object)->priv;
 
   switch (property_id)
     {




More information about the Goodies-commits mailing list