[nautilus-actions] NAIContext: improve list of known desktop environments



commit dac4101c6e5cfb58edecfe1d9e8ca9632dde40b3
Author: Pierre Wieser <pwieser trychlos org>
Date:   Thu Feb 24 00:24:13 2011 +0100

    NAIContext: improve list of known desktop environments
    
    See http://standards.freedesktop.org/menu-spec/latest/apb.html.

 ChangeLog                        |    4 ++++
 src/core/na-icontext.c           |    8 ++++----
 src/nact/nact-ienvironment-tab.c |    1 +
 3 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 34914f0..a639d76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-02-23 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-icontext.c: 
+	* src/nact/nact-ienvironment-tab.c: Improve list of desktop environments
+	(see http://standards.freedesktop.org/menu-spec/latest/apb.html).
+
 	Move Nautilus-Actions configuration files to nautilus-actions/ subdir
 
 	* src/core/na-settings.c (na_settings_new):
diff --git a/src/core/na-icontext.c b/src/core/na-icontext.c
index 55af2bc..0a355fa 100644
--- a/src/core/na-icontext.c
+++ b/src/core/na-icontext.c
@@ -544,14 +544,14 @@ is_candidate_for_show_in( const NAIContext *object, guint target, GList *files )
 
 /*
  * Have asked on xdg-list how to identify the currently running desktop environment
- * (see)
+ * (see http://standards.freedesktop.org/menu-spec/latest/apb.html)
  * For now, just reproduce the xdg-open algorythm from xdg-utils 1.0
  */
-#define DESKTOP_KDE   "KDE"
 #define DESKTOP_GNOME "GNOME"
-#define DESKTOP_XFCE  "XFCE"
-#define DESKTOP_ROX   "ROX"
+#define DESKTOP_KDE   "KDE"
 #define DESKTOP_LXDE  "LXDE"
+#define DESKTOP_ROX   "ROX"
+#define DESKTOP_XFCE  "XFCE"
 #define DESKTOP_OLD   "Old"
 
 static const gchar *
diff --git a/src/nact/nact-ienvironment-tab.c b/src/nact/nact-ienvironment-tab.c
index 5020ebf..7147331 100644
--- a/src/nact/nact-ienvironment-tab.c
+++ b/src/nact/nact-ienvironment-tab.c
@@ -92,6 +92,7 @@ typedef struct {
 static EnvStruct st_envs[] = {
 	{ "GNOME", N_( "GNOME desktop" ) },
 	{ "KDE",   N_( "KDE desktop" ) },
+	{ "LXDE",  N_( "LXDE desktop" ) },
 	{ "ROX",   N_( "ROX desktop" ) },
 	{ "XFCE",  N_( "XFCE desktop" ) },
 	{ "Old",   N_( "Legacy systems" ) },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]