aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-04 14:27:29 -0600
committerTed Gould <ted@gould.cx>2010-03-04 14:27:29 -0600
commit15c04c9d6b866e1f50cff304d2b276dcb0fdfd8a (patch)
treeda94d50b7879c867f44bb641576a987017d73e9e /src
parentfa6fbedbfdd07d078aeb95f2a17c6d41a999e5f7 (diff)
downloadayatana-indicator-messages-15c04c9d6b866e1f50cff304d2b276dcb0fdfd8a.tar.gz
ayatana-indicator-messages-15c04c9d6b866e1f50cff304d2b276dcb0fdfd8a.tar.bz2
ayatana-indicator-messages-15c04c9d6b866e1f50cff304d2b276dcb0fdfd8a.zip
Adding in an icon lookup to the default apps db
Diffstat (limited to 'src')
-rw-r--r--src/default-applications.c17
-rw-r--r--src/default-applications.h1
2 files changed, 15 insertions, 3 deletions
diff --git a/src/default-applications.c b/src/default-applications.c
index 5fd6612..e45ae38 100644
--- a/src/default-applications.c
+++ b/src/default-applications.c
@@ -27,12 +27,13 @@ struct default_db_t {
const gchar * desktop_file;
const gchar * name;
const gchar * setupname;
+ const gchar * icon;
};
struct default_db_t default_db[] = {
- {"evolution.desktop", N_("Mail"), N_("Set Up Mail...")},
- {"empathy.desktop", N_("Chat"), N_("Set Up Chat...")},
- {"gwibber.desktop", N_("Microblogging"), N_("Set Up Microblogging...")},
+ {"evolution.desktop", N_("Mail"), N_("Set Up Mail..."), "applications-email-panel"},
+ {"empathy.desktop", N_("Chat"), N_("Set Up Chat..."), "applications-chat-panel"},
+ {"gwibber.desktop", N_("Microblogging"), N_("Set Up Microblogging..."), "applications-microblogging-panel"},
{NULL, NULL}
};
@@ -78,3 +79,13 @@ get_default_setup (const gchar * desktop_path)
return NULL;
return db->setupname;
}
+
+const gchar *
+get_default_icon (const gchar * desktop_path)
+{
+ struct default_db_t * db = get_default_helper(desktop_path);
+
+ if (db == NULL)
+ return NULL;
+ return db->icon;
+}
diff --git a/src/default-applications.h b/src/default-applications.h
index 13cc904..0a32e7c 100644
--- a/src/default-applications.h
+++ b/src/default-applications.h
@@ -24,6 +24,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
const gchar * get_default_name (const gchar * desktop_path);
const gchar * get_default_setup (const gchar * desktop_path);
+const gchar * get_default_icon (const gchar * desktop_path);
#endif /* DEFAULT_APPLICATIONS_H__ */