summaryrefslogtreecommitdiff
path: root/mini-commander/src/mc-default-macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'mini-commander/src/mc-default-macros.h')
-rw-r--r--mini-commander/src/mc-default-macros.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/mini-commander/src/mc-default-macros.h b/mini-commander/src/mc-default-macros.h
deleted file mode 100644
index 7c2cbf5e..00000000
--- a/mini-commander/src/mc-default-macros.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Mini-Commander Applet
- * Copyright (C) 2002 Sun Microsystems Inc.
- *
- * Authors: Mark McLoughlin <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY 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, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef __MC_DEFAULT_MACROS_H__
-#define __MC_DEFAULT_MACROS_H__
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-typedef struct {
- char *pattern;
- char *command;
-} MCDefaultMacro;
-
-/* These are both the defaults stored in the MateConfSchema
- * and the fallback defaults that are used if we are
- * having MateConf problems.
- *
- * See mc-install-default-macros.c for how they get
- * installed into the schemas.
- */
-static const MCDefaultMacro mc_default_macros [] = {
- { "^(https?://.*)$", "mate-open \\1" },
- { "^(ftp://.*)", "mate-open \\1" },
- { "^(www\\..*)$", "mate-open http://\\1" },
- { "^(ftp\\..*)$", "mate-open ftp://\\1" },
-
- /* altavista search */
- { "^av: *(.*)$", "mate-open http://www.altavista.net/cgi-bin/query?pg=q\\&kl=XX\\&q=$(echo '\\1'|sed -e ': p;s/+/%2B/;t p;: s;s/\\ /+/;t s;: q;s/\\\"/%22/;t q')" },
-
- /* yahoo search */
- { "^yahoo: *(.*)$", "mate-open http://ink.yahoo.com/bin/query?p=$(echo '\\1'|sed -e ': p;s/+/%2B/;t p;: s;s/\\ /+/;t s;: q;s/\\\"/%22/;t q')" },
-
- /* freshmeat search */
- { "^fm: *(.*)$", "mate-open http://core.freshmeat.net/search.php3?query=$(echo '\\1'|tr \" \" +)" },
-
- /* dictionary search */
- { "^dictionary: *(.*)$", "mate-dictionary \"\\1\"" },
-
- /* google search */
- { "^google: *(.*)$", "mate-open http://www.google.com/search?q=\\1" },
-};
-
-G_END_DECLS
-
-#endif /* __MC_DEFAULT_MACROS_H__ */