diff options
Diffstat (limited to 'capplets/default-applications/mate-da-item.c')
-rw-r--r-- | capplets/default-applications/mate-da-item.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/capplets/default-applications/mate-da-item.c b/capplets/default-applications/mate-da-item.c index 7cdfa768..ab3803de 100644 --- a/capplets/default-applications/mate-da-item.c +++ b/capplets/default-applications/mate-da-item.c @@ -56,6 +56,20 @@ MateDAImageItem* mate_da_image_item_new(void) return item; } +MateDATextItem* mate_da_text_item_new(void) +{ + MateDATextItem* item = g_new0(MateDATextItem, 1); + + return item; +} + +MateDAFileItem* mate_da_file_item_new(void) +{ + MateDAFileItem* item = g_new0(MateDAFileItem, 1); + + return item; +} + MateDAMobilityItem* mate_da_mobility_item_new(void) { MateDAMobilityItem* item = g_new0(MateDAMobilityItem, 1); @@ -108,6 +122,34 @@ void mate_da_image_item_free(MateDAImageItem* item) } } +void mate_da_text_item_free(MateDATextItem* item) +{ + if (item != NULL) + { + g_free(item->generic.name); + g_free(item->generic.executable); + g_free(item->generic.command); + g_free(item->generic.icon_name); + g_free(item->generic.icon_path); + + g_free(item); + } +} + +void mate_da_file_item_free(MateDAFileItem* item) +{ + if (item != NULL) + { + g_free(item->generic.name); + g_free(item->generic.executable); + g_free(item->generic.command); + g_free(item->generic.icon_name); + g_free(item->generic.icon_path); + + g_free(item); + } +} + void mate_da_term_item_free(MateDATermItem* item) { if (item != NULL) |