[gimp] app: Cleanup PROP_WEB_BROWSER code



commit 76a2522a43b78821784f58ff2d7c283818ecbab8
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed Sep 9 23:40:44 2009 +0200

    app: Cleanup PROP_WEB_BROWSER code

 app/config/gimpguiconfig.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/app/config/gimpguiconfig.c b/app/config/gimpguiconfig.c
index 65f565b..1ec5003 100644
--- a/app/config/gimpguiconfig.c
+++ b/app/config/gimpguiconfig.c
@@ -39,14 +39,6 @@
 #define DEFAULT_USER_MANUAL_ONLINE_URI \
   "http://docs.gimp.org/"; GIMP_APP_VERSION_STRING
 
-#ifdef G_OS_WIN32
-#  define DEFAULT_WEB_BROWSER  "not used on Windows"
-#elif PLATFORM_OSX
-#  define DEFAULT_WEB_BROWSER  "open %s"
-#else
-#  define DEFAULT_WEB_BROWSER  "xdg-open %s"
-#endif
-
 
 enum
 {
@@ -76,7 +68,6 @@ enum
   PROP_SHOW_HELP_BUTTON,
   PROP_HELP_LOCALES,
   PROP_HELP_BROWSER,
-  PROP_WEB_BROWSER,
   PROP_USER_MANUAL_ONLINE,
   PROP_USER_MANUAL_ONLINE_URI,
   PROP_DOCK_WINDOW_HINT,
@@ -89,6 +80,7 @@ enum
   PROP_SHOW_TIPS,
   PROP_TOOLBOX_WINDOW_HINT,
   PROP_TRANSIENT_DOCKS
+  PROP_WEB_BROWSER,
 };
 
 
@@ -294,7 +286,7 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
   GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_WEB_BROWSER,
                                  "web-browser", NULL,
                                  GIMP_CONFIG_PATH_FILE,
-                                 DEFAULT_WEB_BROWSER,
+                                 "not used any longer",
                                  GIMP_PARAM_STATIC_STRINGS |
                                  GIMP_CONFIG_PARAM_IGNORE);
 }



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