diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-05 00:39:57 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-05 00:39:57 (GMT) | 
| commit | 1e3fa9b79ebe55698e2aa7d5484baec7e8400a8f (patch) | |
| tree | c3581ceb7f8586f2f6822de563927a1246dd33a5 /src/gui/item.c | |
| parent | 6122bb7f34b178d4c07285adae16afcc55294b1f (diff) | |
Rewritten the whole API dealing with panels.
Diffstat (limited to 'src/gui/item.c')
| -rw-r--r-- | src/gui/item.c | 11 | 
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/item.c b/src/gui/item.c index 47504d1..73d3ba7 100644 --- a/src/gui/item.c +++ b/src/gui/item.c @@ -81,7 +81,7 @@ static void g_editor_item_init(GEditorItem *item)  /******************************************************************************  *                                                                             * -*  Paramètres  : item = instance à consulter.                                 * +*  Paramètres  : class = classe à consulter.                                  *  *                                                                             *  *  Description : Fournit le nom interne attribué à l'élément réactif.         *  *                                                                             * @@ -91,16 +91,13 @@ static void g_editor_item_init(GEditorItem *item)  *                                                                             *  ******************************************************************************/ -char *g_editor_item_get_key(const GEditorItem *item) +char *g_editor_item_class_get_key(const GEditorItemClass *class)  {      char *result;                           /* Description à renvoyer      */ -    GEditorItemClass *klass;                /* Classe correspondante       */ - -    klass = G_EDITOR_ITEM_GET_CLASS(item); -    assert(klass->get_key != NULL); +    assert(class->get_key != NULL); -    result = klass->get_key(item); +    result = class->get_key(class);      return result;  | 
