gnome-games r8548 - trunk/libgames-support



Author: chpe
Date: Sat Jan 10 15:35:44 2009
New Revision: 8548
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8548&view=rev

Log:
Make games_scores_category_foreach internal only.

Modified:
   trunk/libgames-support/games-scores-dialog.c
   trunk/libgames-support/games-scores.c
   trunk/libgames-support/games-scores.h

Modified: trunk/libgames-support/games-scores-dialog.c
==============================================================================
--- trunk/libgames-support/games-scores-dialog.c	(original)
+++ trunk/libgames-support/games-scores-dialog.c	Sat Jan 10 15:35:44 2009
@@ -165,9 +165,9 @@
   gtk_window_set_title (GTK_WINDOW (dialog), title);
   gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent_window));
 
-  games_scores_category_foreach (scores, 
-				 (GamesScoresCategoryForeachFunc) games_scores_dialog_load_categories, 
-				 dialog);
+  _games_scores_category_foreach (scores, 
+                                  (GamesScoresCategoryForeachFunc) games_scores_dialog_load_categories,
+                                  dialog);
 
   if (dialog->_priv->catcounter <= 1) {
     gtk_widget_hide (dialog->_priv->catbar);

Modified: trunk/libgames-support/games-scores.c
==============================================================================
--- trunk/libgames-support/games-scores.c	(original)
+++ trunk/libgames-support/games-scores.c	Sat Jan 10 15:35:44 2009
@@ -171,17 +171,19 @@
 }
 
 /**
- * add_category:
- * @self: A scores object.
- * @key: The key for the new category.
- * @name: The player-visible label for the new category.
+ * games_scores_add_category:
+ * @self:
+ * @key: the key for the new category
+ * @name: the user visible label for the new category
  *
  * Add a new category after initialisation. key and name are copied into
  * internal structures. The scores dialog is not currently updated.
  *
  **/
 void
-games_scores_add_category (GamesScores * self, gchar * key, gchar * name)
+games_scores_add_category (GamesScores *self,
+                           const char *key,
+                           const char *name)
 {
   GamesScoresPrivate *priv = self->priv;
   GamesScoresCategoryInternal *cat;
@@ -410,7 +412,7 @@
 }
 
 /**
- * category_foreach:
+ * _games_scores_category_foreach:
  * @self: A scores object.
  * @func: A function to call.
  * @userdata: Arbitrary data.
@@ -421,9 +423,9 @@
  *
  **/
 void
-games_scores_category_foreach (GamesScores * self,
-			       GamesScoresCategoryForeachFunc func,
-			       gpointer userdata)
+_games_scores_category_foreach (GamesScores * self,
+                                GamesScoresCategoryForeachFunc func,
+                                gpointer userdata)
 {
   GamesScoresPrivate *priv = self->priv;
   GSList *l;

Modified: trunk/libgames-support/games-scores.h
==============================================================================
--- trunk/libgames-support/games-scores.h	(original)
+++ trunk/libgames-support/games-scores.h	Sat Jan 10 15:35:44 2009
@@ -84,16 +84,17 @@
 
 GList *games_scores_get (GamesScores * self);
 
-void games_scores_category_foreach (GamesScores * self,
-				    GamesScoresCategoryForeachFunc func,
-				    gpointer userdata);
+void _games_scores_category_foreach (GamesScores * self,
+                                     GamesScoresCategoryForeachFunc func,
+                                     gpointer userdata);
 
 GamesScoreStyle games_scores_get_style (GamesScores * self);
 
 const gchar *games_scores_get_category (GamesScores * self);
 
-void games_scores_add_category (GamesScores * self, gchar * key,
-				gchar * name);
+void games_scores_add_category (GamesScores *self,
+                                const char *key,
+				const char *name);
 
 G_END_DECLS
 



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