diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-09 22:54:59 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-09 23:11:29 (GMT) |
commit | c0528230469b10d606b9d1fa66a18696b2584fed (patch) | |
tree | a9ce71e300eba736cd31f3f45b1752618a39c04d /src/gui/editem.c | |
parent | 43f249445c9c69b9eabeea8be08b6b55a474f1fc (diff) |
Updated the Python documentation for GUI items.
Diffstat (limited to 'src/gui/editem.c')
-rw-r--r-- | src/gui/editem.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/editem.c b/src/gui/editem.c index ef7cb30..96d63c7 100644 --- a/src/gui/editem.c +++ b/src/gui/editem.c @@ -129,7 +129,14 @@ const char *g_editor_item_get_name(const GEditorItem *item) GtkWidget *g_editor_item_get_widget(const GEditorItem *item) { - return item->widget; + GtkWidget *result; /* Composant à retourner */ + + result = item->widget; + + if (result != NULL) + g_object_ref(G_OBJECT(result)); + + return result; } |