summaryrefslogtreecommitdiff
path: root/caja/open-terminal.c
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-06 17:13:49 -0300
committerPerberos <[email protected]>2011-11-06 17:13:49 -0300
commit13e6e4ab1290cda9426eaedfeda70f7491b6b083 (patch)
tree2b9b2e1eac4cc6a161bea6f2197de4513ff1ddf7 /caja/open-terminal.c
downloadmate-terminal-13e6e4ab1290cda9426eaedfeda70f7491b6b083.tar.bz2
mate-terminal-13e6e4ab1290cda9426eaedfeda70f7491b6b083.tar.xz
initial
Diffstat (limited to 'caja/open-terminal.c')
-rw-r--r--caja/open-terminal.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/caja/open-terminal.c b/caja/open-terminal.c
new file mode 100644
index 0000000..17fcaa1
--- /dev/null
+++ b/caja/open-terminal.c
@@ -0,0 +1,64 @@
+/*
+ * open-terminal.c
+ *
+ * Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ *
+ * This library 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 library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * Author: Christian Neumair <[email protected]>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
+#include "caja-open-terminal.h"
+
+#include <mateconf/mateconf-client.h>
+#include <libintl.h>
+
+static GType type_list[1];
+
+void
+caja_module_initialize (GTypeModule *module)
+{
+ g_print ("Initializing caja-open-terminal extension\n");
+
+ caja_open_terminal_register_type (module);
+ type_list[0] = CAJA_TYPE_OPEN_TERMINAL;
+
+ bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
+ mateconf_client_add_dir(mateconf_client_get_default(),
+ "/desktop/mate/lockdown",
+ 0,
+ NULL);
+}
+
+void
+caja_module_shutdown (void)
+{
+ g_print ("Shutting down caja-open-terminal extension\n");
+}
+
+void
+caja_module_list_types (const GType **types,
+ int *num_types)
+{
+ *types = type_list;
+ *num_types = G_N_ELEMENTS (type_list);
+}