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/default-applications.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/default-applications.h (limited to 'src/default-applications.h') 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 From f405913a9a4343fdacd3814b3ea380165d235846 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 00:34:17 -0600 Subject: Adding in the setup function. --- src/default-applications.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/default-applications.h') 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__ */ -- cgit v1.2.3 From f1d31773ebf223650d4e26509403196e1a9bf53f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 00:36:29 -0600 Subject: Copyright headers. --- src/default-applications.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/default-applications.h') diff --git a/src/default-applications.h b/src/default-applications.h index 79d6947..f5d00c4 100644 --- a/src/default-applications.h +++ b/src/default-applications.h @@ -1,3 +1,23 @@ +/* +Looking for the default applications. A quick lookup. + +Copyright 2010 Canonical Ltd. + +Authors: + Ted Gould + +This program is free software: you can redistribute it and/or modify it +under the terms of the GNU General Public License version 3, as published +by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR +PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program. If not, see . +*/ #ifndef DEFAULT_APPLICATIONS_H__ #define DEFAULT_APPLICATIONS_H__ 1 -- cgit v1.2.3 From 3c0e73c7ec818b6759a7805abe07909296791908 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 00:39:52 -0600 Subject: Keeping our desktop file paths safe. --- src/default-applications.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/default-applications.h') diff --git a/src/default-applications.h b/src/default-applications.h index f5d00c4..13cc904 100644 --- a/src/default-applications.h +++ b/src/default-applications.h @@ -22,8 +22,8 @@ with this program. If not, see . #ifndef DEFAULT_APPLICATIONS_H__ #define DEFAULT_APPLICATIONS_H__ 1 -const gchar * get_default_name (gchar * desktop_path); -const gchar * get_default_setup (gchar * desktop_path); +const gchar * get_default_name (const gchar * desktop_path); +const gchar * get_default_setup (const gchar * desktop_path); #endif /* DEFAULT_APPLICATIONS_H__ */ -- cgit v1.2.3 From 15c04c9d6b866e1f50cff304d2b276dcb0fdfd8a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 14:27:29 -0600 Subject: Adding in an icon lookup to the default apps db --- src/default-applications.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/default-applications.h') 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 . 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__ */ -- cgit v1.2.3