[gtk+/zeitgeist] Use `const enum ...' instead of `const gchar' for the type parameter.



commit fe47a3d86e962dbd4196c6d2367139c0582844d6
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date:   Thu Dec 29 16:56:47 2011 +0100

    Use `const enum ...' instead of `const gchar' for the type parameter.

 gtk/gtkrecentmanager.c |   10 +++++++---
 gtk/gtkrecentmanager.h |    6 +++---
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 931cb26..9ddb50a 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -850,6 +850,8 @@ gtk_recent_manager_add_item_query_info (GObject      *source_object,
  *   to the recently used resources list
  *
  * Since: 2.10
+ *
+ * Deprecated: 3.4: Replaced by gtk_recent_manager_add_activity.
  */
 gboolean
 gtk_recent_manager_add_item (GtkRecentManager  *manager,
@@ -905,6 +907,8 @@ gtk_recent_manager_add_item (GtkRecentManager  *manager,
  * recently used resources list, %FALSE otherwise.
  *
  * Since: 2.10
+ *
+ * Deprecated: 3.4: Replaced by gtk_recent_manager_add_activity.
  */
 gboolean
 gtk_recent_manager_add_full (GtkRecentManager     *manager,
@@ -1020,9 +1024,9 @@ gtk_recent_manager_add_full (GtkRecentManager     *manager,
  * Since: FIXME
  */
 void
-gtk_recent_manager_add_activity (GtkRecentManager  *manager,
-			     const gchar                       type,
-                 const GtkRecentActivityData       *data)
+gtk_recent_manager_add_activity (GtkRecentManager        *manager,
+			     const enum GtkRecentManagerActivityType type,
+                 const GtkRecentActivityData             *data)
 {
   GtkRecentManagerPrivate *priv;
 
diff --git a/gtk/gtkrecentmanager.h b/gtk/gtkrecentmanager.h
index a27fb24..19bf507 100644
--- a/gtk/gtkrecentmanager.h
+++ b/gtk/gtkrecentmanager.h
@@ -216,9 +216,9 @@ gboolean          gtk_recent_manager_add_item       (GtkRecentManager     *manag
 gboolean          gtk_recent_manager_add_full       (GtkRecentManager     *manager,
 						     const gchar          *uri,
 						     const GtkRecentData  *data);
-void              gtk_recent_manager_add_activity  (GtkRecentManager     *manager,
-						     const gchar type, // GtkRecentManagerActivityType
-						     const GtkRecentActivityData *recent_data);
+void              gtk_recent_manager_add_activity  (GtkRecentManager      *manager,
+						     const enum GtkRecentManagerActivityType      type,
+						     const GtkRecentActivityData                  *recent_data);
 gboolean          gtk_recent_manager_remove_item    (GtkRecentManager     *manager,
 						     const gchar          *uri,
 						     GError              **error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]