aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-04 00:13:50 -0600
committerTed Gould <ted@gould.cx>2010-03-04 00:13:50 -0600
commitd63d3929de9f53c33f7de4f1c75d9bcc5846fa70 (patch)
treedb787bcd385a5fb775ad2f1a852c8224ee3a4fba
parentb9713df6cd2898e5f86d8dcf1f39634bc1cc6736 (diff)
downloadayatana-indicator-messages-d63d3929de9f53c33f7de4f1c75d9bcc5846fa70.tar.gz
ayatana-indicator-messages-d63d3929de9f53c33f7de4f1c75d9bcc5846fa70.tar.bz2
ayatana-indicator-messages-d63d3929de9f53c33f7de4f1c75d9bcc5846fa70.zip
Adding a small little function to find default applications.
-rw-r--r--src/Makefile.am2
-rw-r--r--src/default-applications.c23
-rw-r--r--src/default-applications.h8
3 files changed, 33 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 01741d0..c96ef2d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,6 +20,8 @@ libmessaging_la_LDFLAGS = -module -avoid-version
######################################
indicator_messages_service_SOURCES = \
+ default-applications.h \
+ default-applications.c \
messages-service.c \
messages-service-server.h \
messages-service-dbus.c \
diff --git a/src/default-applications.c b/src/default-applications.c
new file mode 100644
index 0000000..c389d32
--- /dev/null
+++ b/src/default-applications.c
@@ -0,0 +1,23 @@
+
+#include <glib.h>
+#include <glib/gi18n.h>
+#include "default-applications.h"
+
+struct default_db_t {
+ const gchar * desktop_file;
+ const gchar * name;
+};
+
+struct default_db_t default_db[] = {
+ {"evolution.desktop", N_("Mail")},
+ {NULL, NULL}
+};
+
+const gchar *
+get_default_name (gchar * desktop_path)
+{
+
+ return NULL;
+
+
+}
diff --git a/src/default-applications.h b/src/default-applications.h
new file mode 100644
index 0000000..7769455
--- /dev/null
+++ b/src/default-applications.h
@@ -0,0 +1,8 @@
+
+#ifndef DEFAULT_APPLICATIONS_H__
+#define DEFAULT_APPLICATIONS_H__ 1
+
+const gchar * get_default_name (gchar * desktop_path);
+
+#endif /* DEFAULT_APPLICATIONS_H__ */
+