diff options
Diffstat (limited to 'src/glibext/gloadedpanel.c')
-rw-r--r-- | src/glibext/gloadedpanel.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/glibext/gloadedpanel.c b/src/glibext/gloadedpanel.c index fa12ec7..4d5a1e1 100644 --- a/src/glibext/gloadedpanel.c +++ b/src/glibext/gloadedpanel.c @@ -57,6 +57,58 @@ static void g_loaded_panel_default_init(GLoadedPanelInterface *iface) /****************************************************************************** * * +* Paramètres : panel = composant GTK à compléter. * +* content = contenu quelconque chargé en mémoire. * +* * +* Description : Définit le contenu associé à un panneau de chargement. * +* * +* Retour : * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_loaded_panel_set_content(GLoadedPanel *panel, GLoadedContent *content) +{ + GLoadedPanelIface *iface; /* Interface utilisée */ + + g_object_ref(G_OBJECT(content)); + + iface = G_LOADED_PANEL_GET_IFACE(panel); + + iface->set_content(panel, content); + +} + + +/****************************************************************************** +* * +* Paramètres : panel = composant GTK à consulter. * +* * +* Description : Fournit le contenu associé à un panneau de chargement. * +* * +* Retour : Contenu quelconque chargé en mémoire. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GLoadedContent *g_loaded_panel_get_content(const GLoadedPanel *panel) +{ + GLoadedContent *result; /* Contenu à retourner */ + GLoadedPanelIface *iface; /* Interface utilisée */ + + iface = G_LOADED_PANEL_GET_IFACE(panel); + + result = iface->get_content(panel); + + return result; + +} + + +/****************************************************************************** +* * * Paramètres : panel = composant GTK à manipuler. * * cairo = assistant pour la création de rendus. * * area = taille de la surface réduite à disposition. * |