From: P. F. Chimento Date: Wed, 22 Jun 2011 18:20:25 +0000 (+0200) Subject: Add chimara_app_foreach_game_window() X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=73bb6941d1200c30f15c2aa243ee359532e2254f Add chimara_app_foreach_game_window() --- diff --git a/player/app.c b/player/app.c index 14c457e..bbd79b1 100644 --- a/player/app.c +++ b/player/app.c @@ -229,6 +229,13 @@ chimara_app_open_game(ChimaraApp *self, const char *path) return player; } +void +chimara_app_foreach_game_window(ChimaraApp *self, GFunc func, gpointer data) +{ + CHIMARA_APP_USE_PRIVATE; + g_slist_foreach(priv->window_list, func, data); +} + /* GLADE CALLBACKS */ void diff --git a/player/app.h b/player/app.h index 1d9b8d4..a28061f 100644 --- a/player/app.h +++ b/player/app.h @@ -66,6 +66,7 @@ GType chimara_app_get_type(void) G_GNUC_CONST; ChimaraApp *chimara_app_get(void); GtkActionGroup *chimara_app_get_action_group(ChimaraApp *self); ChimaraPlayer *chimara_app_open_game(ChimaraApp *self, const char *path); +void chimara_app_foreach_game_window(ChimaraApp *self, GFunc func, gpointer data); G_END_DECLS