From d63d3929de9f53c33f7de4f1c75d9bcc5846fa70 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 00:13:50 -0600 Subject: Adding a small little function to find default applications. --- src/Makefile.am | 2 ++ src/default-applications.c | 23 +++++++++++++++++++++++ src/default-applications.h | 8 ++++++++ 3 files changed, 33 insertions(+) create mode 100644 src/default-applications.c create mode 100644 src/default-applications.h 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 +#include +#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__ */ + -- cgit v1.2.3