summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-customization-data.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:24:23 -0300
committerPerberos <[email protected]>2011-12-01 22:24:23 -0300
commit0e004c696b0e68b2cff37a4c3315b022a35eaf43 (patch)
tree43261e815529cb9518ed7be37af13b846af8b26b /libcaja-private/caja-customization-data.h
downloadcaja-0e004c696b0e68b2cff37a4c3315b022a35eaf43.tar.bz2
caja-0e004c696b0e68b2cff37a4c3315b022a35eaf43.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libcaja-private/caja-customization-data.h')
-rw-r--r--libcaja-private/caja-customization-data.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/libcaja-private/caja-customization-data.h b/libcaja-private/caja-customization-data.h
new file mode 100644
index 00000000..92d74af2
--- /dev/null
+++ b/libcaja-private/caja-customization-data.h
@@ -0,0 +1,68 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/*
+ * Caja
+ *
+ * Copyright (C) 2000 Eazel, Inc.
+ *
+ * Caja 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.
+ *
+ * Caja 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Rebecca Schulman <[email protected]>
+ */
+
+/* caja-customization-data.h - functions to collect and load property
+ names and imges */
+
+
+
+#ifndef CAJA_CUSTOMIZATION_DATA_H
+#define CAJA_CUSTOMIZATION_DATA_H
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <gtk/gtk.h>
+
+#define RESET_IMAGE_NAME "reset.png"
+
+typedef struct CajaCustomizationData CajaCustomizationData;
+
+
+
+CajaCustomizationData* caja_customization_data_new (const char *customization_name,
+ gboolean show_public_customizations,
+ int maximum_icon_height,
+ int maximum_icon_width);
+
+/* Returns the following attrbiutes for a customization object (pattern, emblem)
+ *
+ * object_name - The name of the object. Usually what is used to represent it in storage.
+ * object_pixbuf - Pixbuf for graphical display of the object.
+ * object_label - Textual label display of the object.
+ */
+gboolean caja_customization_data_get_next_element_for_display (CajaCustomizationData *data,
+ char **object_name,
+ GdkPixbuf **object_pixbuf,
+ char **object_label);
+gboolean caja_customization_data_private_data_was_displayed (CajaCustomizationData *data);
+
+void caja_customization_data_destroy (CajaCustomizationData *data);
+
+
+
+GdkPixbuf* caja_customization_make_pattern_chit (GdkPixbuf *pattern_tile,
+ GdkPixbuf *frame,
+ gboolean dragging,
+ gboolean is_reset);
+
+#endif /* CAJA_CUSTOMIZATION_DATA_H */