aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-04 00:34:17 -0600
committerTed Gould <ted@gould.cx>2010-03-04 00:34:17 -0600
commitf405913a9a4343fdacd3814b3ea380165d235846 (patch)
treeb4d645369900f14e8a52815fc3f6cf5226b85674
parent617a39e8447ef92d564c40c489b97eca45a5f6d6 (diff)
downloadayatana-indicator-messages-f405913a9a4343fdacd3814b3ea380165d235846.tar.gz
ayatana-indicator-messages-f405913a9a4343fdacd3814b3ea380165d235846.tar.bz2
ayatana-indicator-messages-f405913a9a4343fdacd3814b3ea380165d235846.zip
Adding in the setup function.
-rw-r--r--src/default-applications.c12
-rw-r--r--src/default-applications.h1
2 files changed, 12 insertions, 1 deletions
diff --git a/src/default-applications.c b/src/default-applications.c
index 6aca047..f924702 100644
--- a/src/default-applications.c
+++ b/src/default-applications.c
@@ -16,7 +16,7 @@ struct default_db_t default_db[] = {
{NULL, NULL}
};
-struct default_db_t *
+static struct default_db_t *
get_default_helper (gchar * desktop_path)
{
g_return_val_if_fail(desktop_path != NULL, NULL);
@@ -48,3 +48,13 @@ get_default_name (gchar * desktop_path)
return NULL;
return db->name;
}
+
+const gchar *
+get_default_setup (gchar * desktop_path)
+{
+ struct default_db_t * db = get_default_helper(desktop_path);
+
+ if (db == NULL)
+ return NULL;
+ return db->setupname;
+}
diff --git a/src/default-applications.h b/src/default-applications.h
index 7769455..79d6947 100644
--- a/src/default-applications.h
+++ b/src/default-applications.h
@@ -3,6 +3,7 @@
#define DEFAULT_APPLICATIONS_H__ 1
const gchar * get_default_name (gchar * desktop_path);
+const gchar * get_default_setup (gchar * desktop_path);
#endif /* DEFAULT_APPLICATIONS_H__ */