summaryrefslogtreecommitdiff
path: root/capplets/default-applications/mate-da-item.c
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-06 08:07:40 -0300
committerPerberos <[email protected]>2011-12-06 08:07:40 -0300
commit06d81df2871a25a93cdf7cffaf87f5cd4f15fe84 (patch)
tree179ab36bc08a88e6f2c07b0847a378a34d9b2f13 /capplets/default-applications/mate-da-item.c
parentd4d97389b3a30d43edadcd059ffcf584a4f4d914 (diff)
downloadmate-control-center-06d81df2871a25a93cdf7cffaf87f5cd4f15fe84.tar.bz2
mate-control-center-06d81df2871a25a93cdf7cffaf87f5cd4f15fe84.tar.xz
adding support for select text editor and file manager
Diffstat (limited to 'capplets/default-applications/mate-da-item.c')
-rw-r--r--capplets/default-applications/mate-da-item.c42
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)