From 73bb6941d1200c30f15c2aa243ee359532e2254f Mon Sep 17 00:00:00 2001 From: "P. F. Chimento" Date: Wed, 22 Jun 2011 20:20:25 +0200 Subject: [PATCH] Add chimara_app_foreach_game_window() --- player/app.c | 7 +++++++ player/app.h | 1 + 2 files changed, 8 insertions(+) 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 -- 2.30.2