summaryrefslogtreecommitdiff
path: root/src/dropbox.c
diff options
context:
space:
mode:
authorBenjamin Valentin <[email protected]>2012-03-27 03:03:55 +0200
committerBenjamin Valentin <[email protected]>2012-03-27 03:03:55 +0200
commite214b332395adbc77ad596218895a4834cad434d (patch)
tree52df3b5c109d78f18e2d48f1b34336561e939c93 /src/dropbox.c
parentd367ab28270220c1378d2a7ca9bda4a9012c76cb (diff)
downloadcaja-dropbox-e214b332395adbc77ad596218895a4834cad434d.tar.bz2
caja-dropbox-e214b332395adbc77ad596218895a4834cad434d.tar.xz
import nautilus dropbox 0.7.1
Diffstat (limited to 'src/dropbox.c')
-rw-r--r--src/dropbox.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/dropbox.c b/src/dropbox.c
new file mode 100644
index 0000000..0d59559
--- /dev/null
+++ b/src/dropbox.c
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2008 Evenflow, Inc.
+ *
+ * dropbox.c
+ * Nautilus module registering functions for the Dropbox extension.
+ *
+ * This file is part of nautilus-dropbox.
+ *
+ * nautilus-dropbox 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * nautilus-dropbox 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 nautilus-dropbox. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glib-object.h>
+
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
+
+#include "nautilus-dropbox.h"
+
+static GType type_list[1];
+
+void
+nautilus_module_initialize (GTypeModule *module) {
+ g_print ("Initializing %s\n", PACKAGE_STRING);
+
+ nautilus_dropbox_register_type (module);
+ type_list[0] = NAUTILUS_TYPE_DROPBOX;
+
+ dropbox_use_nautilus_submenu_workaround
+ = (NAUTILUS_VERSION_MAJOR < 2 ||
+ (NAUTILUS_VERSION_MAJOR == 2 && NAUTILUS_VERSION_MINOR <= 22));
+ dropbox_use_operation_in_progress_workaround = TRUE;
+}
+
+void
+nautilus_module_shutdown (void) {
+ g_print ("Shutting down dropbox extension\n");
+}
+
+void
+nautilus_module_list_types (const GType **types,
+ int *num_types) {
+ *types = type_list;
+ *num_types = G_N_ELEMENTS (type_list);
+}