Commit 1764f212 authored by Darin Adler's avatar Darin Adler

Did some of the items from RENAMING.

	* libnautilus/Makefile.am:
	* libnautilus/gnome-icon-container-dnd.c:
	* libnautilus/gnome-icon-container-dnd.h:
	* libnautilus/gnome-icon-container-grid.c:
	* libnautilus/gnome-icon-container-grid.h:
	* libnautilus/gnome-icon-container-private.h:
	* libnautilus/gnome-icon-container.c:
	* libnautilus/gnome-icon-container.h:
	* libnautilus/gtkflist.c:
	* libnautilus/gtkflist.h:
	* libnautilus/nautilus-icon-canvas-item.c:
	* libnautilus/nautilus-icon-canvas-item.h:
	* libnautilus/nautilus-icon-container.c:
	* libnautilus/nautilus-icon-container.h:
	* libnautilus/nautilus-icon-dnd.c:
	* libnautilus/nautilus-icon-dnd.h:
	* libnautilus/nautilus-icon-grid.c:
	* libnautilus/nautilus-icon-grid.h:
	* libnautilus/nautilus-icon-private.h:
	* libnautilus/nautilus-icons-view-icon-item.c:
	* libnautilus/nautilus-icons-view-icon-item.h:
	* libnautilus/nautilus-lib-self-check-functions.h:
	* libnautilus/nautilus-list-column-title.c:
	* libnautilus/nautilus-list.c:
	* libnautilus/nautilus-list.h:
	* src/file-manager/Makefile.am:
	* src/file-manager/fm-directory-view-icons.c:
	* src/file-manager/fm-directory-view-icons.h:
	* src/file-manager/fm-directory-view-list.c:
	* src/file-manager/fm-directory-view-list.h:
	* src/file-manager/fm-icon-view.c:
	* src/file-manager/fm-icon-view.h:
	* src/file-manager/fm-list-view.c:
	* src/file-manager/fm-list-view.h:
	* src/ntl-app.c:
	Did these RENAMING entries:
	  FMDirectoryViewIcons -> FMIconView
	  FMDirectoryViewList  -> FMListView
	  GnomeIconContainer -> NautilusIconContainer
	  GnomeIconContainerIcon -> NautilusIcon
	  NautilusIconsViewIconItem -> NautilusIconCanvasItem

	* RENAMING: Marked the renaming done.
parent f09362cb
2000-03-21 Darin Adler <darin@eazel.com>
Did some of the items from RENAMING.
* libnautilus/Makefile.am:
* libnautilus/gnome-icon-container-dnd.c:
* libnautilus/gnome-icon-container-dnd.h:
* libnautilus/gnome-icon-container-grid.c:
* libnautilus/gnome-icon-container-grid.h:
* libnautilus/gnome-icon-container-private.h:
* libnautilus/gnome-icon-container.c:
* libnautilus/gnome-icon-container.h:
* libnautilus/gtkflist.c:
* libnautilus/gtkflist.h:
* libnautilus/nautilus-icon-canvas-item.c:
* libnautilus/nautilus-icon-canvas-item.h:
* libnautilus/nautilus-icon-container.c:
* libnautilus/nautilus-icon-container.h:
* libnautilus/nautilus-icon-dnd.c:
* libnautilus/nautilus-icon-dnd.h:
* libnautilus/nautilus-icon-grid.c:
* libnautilus/nautilus-icon-grid.h:
* libnautilus/nautilus-icon-private.h:
* libnautilus/nautilus-icons-view-icon-item.c:
* libnautilus/nautilus-icons-view-icon-item.h:
* libnautilus/nautilus-lib-self-check-functions.h:
* libnautilus/nautilus-list-column-title.c:
* libnautilus/nautilus-list.c:
* libnautilus/nautilus-list.h:
* src/file-manager/Makefile.am:
* src/file-manager/fm-directory-view-icons.c:
* src/file-manager/fm-directory-view-icons.h:
* src/file-manager/fm-directory-view-list.c:
* src/file-manager/fm-directory-view-list.h:
* src/file-manager/fm-icon-view.c:
* src/file-manager/fm-icon-view.h:
* src/file-manager/fm-list-view.c:
* src/file-manager/fm-list-view.h:
* src/ntl-app.c:
Did these RENAMING entries:
FMDirectoryViewIcons -> FMIconView
FMDirectoryViewList -> FMListView
GnomeIconContainer -> NautilusIconContainer
GnomeIconContainerIcon -> NautilusIcon
NautilusIconsViewIconItem -> NautilusIconCanvasItem
* RENAMING: Marked the renaming done.
2000-03-21 Darin Adler <darin@eazel.com>
Fixed arrow keys and worked on the icon grid.
......
......@@ -6,14 +6,6 @@ ntl* -> nautilus* (1)
NautilusViewFrame <--> NautilusView (2)
ntl-view-bonobo-subdoc -> ntl-view-bonobo-embeddable (see also 1, 2)
FMDirectoryViewIcons -> FMDirectoryIconView
FMDirectoryViewList -> FMDirectoryListView
GnomeIconContainer -> NautilusIconContainer
GnomeIconContainerIcon -> NautilusIcon
NautilusIconsViewIconItem -> NautilusIconCanvasItem
GtkFList -> NautilusList
GtkScrollFrame -> NautilusScrollFrame
*_cb -> *_callback
......
......@@ -28,8 +28,6 @@ BUILT_SOURCES=$(nautilus_idl_sources)
libnautilusincludedir=$(includedir)/libnautilus
libnautilusinclude_HEADERS= \
bonobo-stream-vfs.h \
gnome-icon-container.h \
gtkflist.h \
gtkscrollframe.h \
libnautilus.h \
nautilus-alloc.h \
......@@ -45,9 +43,10 @@ libnautilusinclude_HEADERS= \
nautilus-global-preferences.h \
nautilus-gnome-extensions.h \
nautilus-gtk-extensions.h \
nautilus-icon-container.h \
nautilus-icon-factory.h \
nautilus-icons-view-icon-item.h \
nautilus-list-column-title.h \
nautilus-list-column-title.h \
nautilus-list.h \
nautilus-metadata.h \
nautilus-mime-type.h \
nautilus-self-checks.h \
......@@ -63,10 +62,6 @@ libnautilusinclude_HEADERS= \
libnautilus_la_SOURCES=$(nautilus_idl_sources) \
bonobo-stream-vfs.c \
gnome-icon-container.c \
gnome-icon-container-dnd.c \
gnome-icon-container-grid.c \
gtkflist.c \
gtkscrollframe.c \
nautilus-background-canvas-group.c \
nautilus-background.c \
......@@ -83,10 +78,14 @@ libnautilus_la_SOURCES=$(nautilus_idl_sources) \
nautilus-global-preferences.c \
nautilus-gnome-extensions.c \
nautilus-gtk-extensions.c \
nautilus-icon-canvas-item.c \
nautilus-icon-container.c \
nautilus-icon-dnd.c \
nautilus-icon-factory.c \
nautilus-icons-view-icon-item.c \
nautilus-icon-grid.c \
nautilus-lib-self-check-functions.c \
nautilus-list-column-title.c \
nautilus-list-column-title.c \
nautilus-list.c \
nautilus-mime-type.c \
nautilus-self-checks.c \
nautilus-string-list.c \
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* gnome-icon-container.h - Icon container widget.
Copyright (C) 1999, 2000 Free Software Foundation
Copyright (C) 2000 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome 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 Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Ettore Perazzoli <ettore@gnu.org>, Darin Adler <darin@eazel.com>
*/
#ifndef GNOME_ICON_CONTAINER_H
#define GNOME_ICON_CONTAINER_H
#include <libgnomeui/gnome-canvas.h>
#include "nautilus-icon-factory.h"
typedef struct GnomeIconContainer GnomeIconContainer;
typedef struct GnomeIconContainerClass GnomeIconContainerClass;
typedef struct GnomeIconContainerDetails GnomeIconContainerDetails;
typedef struct GnomeIconContainerIconData GnomeIconContainerIconData;
#define GNOME_ICON_CONTAINER(obj) \
GTK_CHECK_CAST (obj, gnome_icon_container_get_type (), GnomeIconContainer)
#define GNOME_ICON_CONTAINER_CLASS(k) \
GTK_CHECK_CLASS_CAST (k, gnome_icon_container_get_type (), GnomeIconListView)
#define GNOME_IS_ICON_CONTAINER(obj) \
GTK_CHECK_TYPE (obj, gnome_icon_container_get_type ())
#define GNOME_ICON_CONTAINER_ICON_DATA(pointer) \
((GnomeIconContainerIconData *) (pointer))
struct GnomeIconContainer {
GnomeCanvas canvas;
GnomeIconContainerDetails *details;
};
struct GnomeIconContainerClass {
GnomeCanvasClass parent_class;
int (* button_press) (GnomeIconContainer *container,
GdkEventButton *event);
void (* activate) (GnomeIconContainer *container,
GnomeIconContainerIconData *data);
void (* context_click_selection) (GnomeIconContainer *container);
void (* context_click_background) (GnomeIconContainer *container);
void (* selection_changed) (GnomeIconContainer *container);
void (* icon_changed) (GnomeIconContainer *container,
GnomeIconContainerIconData *data,
int x, int y,
double scale_x, double scale_y);
/* Connect to these signals to supply information about icons.
* They are called as needed after the icons are inserted.
*/
NautilusScalableIcon * (* get_icon_images) (GnomeIconContainer *container,
GnomeIconContainerIconData *data,
GList **emblem_images);
char * (* get_icon_text) (GnomeIconContainer *container,
GnomeIconContainerIconData *data);
char * (* get_icon_uri) (GnomeIconContainer *container,
GnomeIconContainerIconData *data);
char * (* get_icon_property) (GnomeIconContainer *container,
GnomeIconContainerIconData *data,
const char *property_name);
};
/* GtkObject */
guint gnome_icon_container_get_type (void);
GtkWidget *gnome_icon_container_new (void);
/* adding, removing, and managing icons */
void gnome_icon_container_clear (GnomeIconContainer *view);
void gnome_icon_container_add (GnomeIconContainer *view,
GnomeIconContainerIconData *data,
int x,
int y,
double scale_x,
double scale_y);
void gnome_icon_container_add_auto (GnomeIconContainer *view,
GnomeIconContainerIconData *data);
gboolean gnome_icon_container_remove (GnomeIconContainer *view,
GnomeIconContainerIconData *data);
void gnome_icon_container_request_update (GnomeIconContainer *view,
GnomeIconContainerIconData *data);
void gnome_icon_container_request_update_all (GnomeIconContainer *container);
/* operations on all icons */
void gnome_icon_container_relayout (GnomeIconContainer *view);
void gnome_icon_container_line_up (GnomeIconContainer *view);
void gnome_icon_container_unselect_all (GnomeIconContainer *view);
void gnome_icon_container_select_all (GnomeIconContainer *view);
/* operations on the selection */
GList * gnome_icon_container_get_selection (GnomeIconContainer *view);
gboolean gnome_icon_container_has_stretch_handles (GnomeIconContainer *container);
gboolean gnome_icon_container_is_stretched (GnomeIconContainer *container);
void gnome_icon_container_show_stretch_handles (GnomeIconContainer *container);
void gnome_icon_container_unstretch (GnomeIconContainer *container);
/* options */
int gnome_icon_container_get_zoom_level (GnomeIconContainer *view);
void gnome_icon_container_set_zoom_level (GnomeIconContainer *view,
int new_zoom_level);
void gnome_icon_container_enable_linger_selection (GnomeIconContainer *view,
gboolean enable);
#endif
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* File list widget for the Midnight Commander
*
* Copyright (C) 1999, 2000 The Free Software Foundation
*
* Author: Federico Mena <federico@nuclecu.unam.mx>
*/
#ifndef GTKFLIST_H
#define GTKFLIST_H
#include <gtk/gtkclist.h>
/* It is sad that we have to do this. GtkCList's behavior is so broken that we
* have to override all the event handlers and implement our own selection
* behavior. Sigh.
*/
#define TYPE_GTK_FLIST (gtk_flist_get_type ())
#define GTK_FLIST(obj) (GTK_CHECK_CAST ((obj), TYPE_GTK_FLIST, GtkFList))
#define GTK_FLIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), TYPE_GTK_FLIST, GtkFListClass))
#define GTK_IS_FLIST(obj) (GTK_CHECK_TYPE ((obj), TYPE_GTK_FLIST))
#define GTK_IS_FLIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_GTK_FLIST))
typedef struct _GtkFList GtkFList;
typedef struct _GtkFListClass GtkFListClass;
typedef struct _GtkFListDetails GtkFListDetails;
struct _GtkFList {
GtkCList clist;
GtkFListDetails *details;
};
struct _GtkFListClass {
GtkCListClass parent_class;
/* Signal: invoke the popup menu for selected items */
void (* context_click_selection) (GtkFList *flist, int row);
/* Signal: invoke the popup menu for empty areas */
void (* context_click_background) (GtkFList *flist);
/* Signal: open the file in the selected row */
void (* activate) (GtkFList *flist, gpointer data);
/* Signal: initiate a drag and drop operation */
void (* start_drag) (GtkFList *flist, int button, GdkEvent *event);
/* Signal: selection has changed */
void (* selection_changed) (GtkFList *flist);
/* column resize tracking calls */
void (* column_resize_track_start) (GtkWidget *widget, int column);
void (* column_resize_track) (GtkWidget *widget, int column);
void (* column_resize_track_end) (GtkWidget *widget, int column);
};
GtkType gtk_flist_get_type (void);
GtkWidget *gtk_flist_new_with_titles (int columns, char **titles);
GList *gtk_flist_get_selection (GtkFList *flist);
#endif
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* GNOME libraries - Icon Item class for Icon View
/* Nautilus - Icon canvas item class for icon container.
*
* Copyright (C) 2000 Eazel, Inc.
*
......@@ -22,8 +22,8 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef NAUTILUS_ICONS_VIEW_ICON_ITEM_H
#define NAUTILUS_ICONS_VIEW_ICON_ITEM_H
#ifndef NAUTILUS_ICON_CANVAS_ITEM_H
#define NAUTILUS_ICON_CANVAS_ITEM_H
#include <libgnome/gnome-defs.h>
#include <libgnomeui/gnome-canvas.h>
......@@ -31,57 +31,57 @@
BEGIN_GNOME_DECLS
#define NAUTILUS_TYPE_ICONS_VIEW_ICON_ITEM \
(nautilus_icons_view_icon_item_get_type ())
#define NAUTILUS_ICONS_VIEW_ICON_ITEM(obj) \
(GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_ICONS_VIEW_ICON_ITEM, NautilusIconsViewIconItem))
#define NAUTILUS_ICONS_VIEW_ICON_ITEM_CLASS(klass) \
(GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_ICONS_VIEW_ICON_ITEM, NautilusIconsViewIconItemClass))
#define NAUTILUS_IS_ICONS_VIEW_ICON_ITEM(obj) \
(GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_ICONS_VIEW_ICON_ITEM))
#define NAUTILUS_IS_ICONS_VIEW_ICON_ITEM_CLASS(klass) \
(GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_ICONS_VIEW_ICON_ITEM))
#define NAUTILUS_TYPE_ICON_CANVAS_ITEM \
(nautilus_icon_canvas_item_get_type ())
#define NAUTILUS_ICON_CANVAS_ITEM(obj) \
(GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_ICON_CANVAS_ITEM, NautilusIconCanvasItem))
#define NAUTILUS_ICON_CANVAS_ITEM_CLASS(klass) \
(GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_ICON_CANVAS_ITEM, NautilusIconCanvasItemClass))
#define NAUTILUS_IS_ICON_CANVAS_ITEM(obj) \
(GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_ICON_CANVAS_ITEM))
#define NAUTILUS_IS_ICON_CANVAS_ITEM_CLASS(klass) \
(GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_ICON_CANVAS_ITEM))
typedef struct NautilusIconsViewIconItem NautilusIconsViewIconItem;
typedef struct NautilusIconsViewIconItemClass NautilusIconsViewIconItemClass;
typedef struct NautilusIconsViewIconItemDetails NautilusIconsViewIconItemDetails;
typedef struct NautilusIconCanvasItem NautilusIconCanvasItem;
typedef struct NautilusIconCanvasItemClass NautilusIconCanvasItemClass;
typedef struct NautilusIconCanvasItemDetails NautilusIconCanvasItemDetails;
struct NautilusIconsViewIconItem {
struct NautilusIconCanvasItem {
GnomeCanvasItem item;
NautilusIconsViewIconItemDetails *details;
NautilusIconCanvasItemDetails *details;
gpointer user_data;
};
struct NautilusIconsViewIconItemClass {
struct NautilusIconCanvasItemClass {
GnomeCanvasItemClass parent_class;
void (* bounds_changed) (NautilusIconsViewIconItem *item,
const ArtDRect *old_world_bounds);
void (* bounds_changed) (NautilusIconCanvasItem *item,
const ArtDRect *old_world_bounds);
};
/* GtkObject */
GtkType nautilus_icons_view_icon_item_get_type (void);
GtkType nautilus_icon_canvas_item_get_type (void);
/* attributes */
void nautilus_icons_view_icon_item_set_image (NautilusIconsViewIconItem *item,
GdkPixbuf *image,
const ArtIRect *embedded_text_rectangle);
GdkPixbuf *nautilus_icons_view_icon_item_get_image (NautilusIconsViewIconItem *item,
ArtIRect *embedded_text_rectangle);
void nautilus_icons_view_icon_item_set_emblems (NautilusIconsViewIconItem *item,
GList *emblem_pixbufs);
void nautilus_icons_view_icon_item_set_show_stretch_handles (NautilusIconsViewIconItem *item,
gboolean show_stretch_handles);
void nautilus_icon_canvas_item_set_image (NautilusIconCanvasItem *item,
GdkPixbuf *image,
const ArtIRect *embedded_text_rectangle);
GdkPixbuf *nautilus_icon_canvas_item_get_image (NautilusIconCanvasItem *item,
ArtIRect *embedded_text_rectangle);
void nautilus_icon_canvas_item_set_emblems (NautilusIconCanvasItem *item,
GList *emblem_pixbufs);
void nautilus_icon_canvas_item_set_show_stretch_handles (NautilusIconCanvasItem *item,
gboolean show_stretch_handles);
/* geometry and hit testing */
gboolean nautilus_icons_view_icon_item_hit_test_rectangle (NautilusIconsViewIconItem *item,
const ArtDRect *world_rectangle);
gboolean nautilus_icons_view_icon_item_hit_test_stretch_handles (NautilusIconsViewIconItem *item,
const ArtPoint *world_point);
void nautilus_icons_view_icon_item_get_icon_rectangle (NautilusIconsViewIconItem *item,
ArtDRect *world_rectangle);
void nautilus_icons_view_icon_item_update_bounds (NautilusIconsViewIconItem *item);
gboolean nautilus_icon_canvas_item_hit_test_rectangle (NautilusIconCanvasItem *item,
const ArtDRect *world_rectangle);
gboolean nautilus_icon_canvas_item_hit_test_stretch_handles (NautilusIconCanvasItem *item,
const ArtPoint *world_point);
void nautilus_icon_canvas_item_get_icon_rectangle (NautilusIconCanvasItem *item,
ArtDRect *world_rectangle);
void nautilus_icon_canvas_item_update_bounds (NautilusIconCanvasItem *item);
END_GNOME_DECLS
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* gnome-icon-container.h - Icon container widget.
Copyright (C) 1999, 2000 Free Software Foundation
Copyright (C) 2000 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome 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 Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Ettore Perazzoli <ettore@gnu.org>, Darin Adler <darin@eazel.com>
*/
#ifndef NAUTILUS_ICON_CONTAINER_H
#define NAUTILUS_ICON_CONTAINER_H
#include <libgnomeui/gnome-canvas.h>
#include "nautilus-icon-factory.h"
typedef struct NautilusIconContainer NautilusIconContainer;
typedef struct NautilusIconContainerClass NautilusIconContainerClass;
typedef struct NautilusIconContainerDetails NautilusIconContainerDetails;
typedef struct NautilusIconData NautilusIconData;
#define NAUTILUS_ICON_CONTAINER(obj) \
GTK_CHECK_CAST (obj, nautilus_icon_container_get_type (), NautilusIconContainer)
#define NAUTILUS_ICON_CONTAINER_CLASS(k) \
GTK_CHECK_CLASS_CAST (k, nautilus_icon_container_get_type (), NautilusIconListView)
#define NAUTILUS_IS_ICON_CONTAINER(obj) \
GTK_CHECK_TYPE (obj, nautilus_icon_container_get_type ())
#define NAUTILUS_ICON_CONTAINER_ICON_DATA(pointer) \
((NautilusIconData *) (pointer))
struct NautilusIconContainer {
GnomeCanvas canvas;
NautilusIconContainerDetails *details;
};
struct NautilusIconContainerClass {
GnomeCanvasClass parent_class;
int (* button_press) (NautilusIconContainer *container,
GdkEventButton *event);
void (* activate) (NautilusIconContainer *container,
NautilusIconData *data);
void (* context_click_selection) (NautilusIconContainer *container);
void (* context_click_background) (NautilusIconContainer *container);
void (* selection_changed) (NautilusIconContainer *container);
void (* icon_changed) (NautilusIconContainer *container,
NautilusIconData *data,
int x, int y,
double scale_x, double scale_y);
/* Connect to these signals to supply information about icons.
* They are called as needed after the icons are inserted.
*/
NautilusScalableIcon * (* get_icon_images) (NautilusIconContainer *container,
NautilusIconData *data,
GList **emblem_images);
char * (* get_icon_text) (NautilusIconContainer *container,
NautilusIconData *data);
char * (* get_icon_uri) (NautilusIconContainer *container,
NautilusIconData *data);
char * (* get_icon_property) (NautilusIconContainer *container,
NautilusIconData *data,
const char *property_name);
};
/* GtkObject */
guint nautilus_icon_container_get_type (void);
GtkWidget *nautilus_icon_container_new (void);
/* adding, removing, and managing icons */
void nautilus_icon_container_clear (NautilusIconContainer *view);
void nautilus_icon_container_add (NautilusIconContainer *view,
NautilusIconData *data,
int x,
int y,
double scale_x,
double scale_y);
void nautilus_icon_container_add_auto (NautilusIconContainer *view,
NautilusIconData *data);
gboolean nautilus_icon_container_remove (NautilusIconContainer *view,
NautilusIconData *data);
void nautilus_icon_container_request_update (NautilusIconContainer *view,
NautilusIconData *data);
void nautilus_icon_container_request_update_all (NautilusIconContainer *container);
/* operations on all icons */
void nautilus_icon_container_relayout (NautilusIconContainer *view);
void nautilus_icon_container_line_up (NautilusIconContainer *view);
void nautilus_icon_container_unselect_all (NautilusIconContainer *view);
void nautilus_icon_container_select_all (NautilusIconContainer *view);
/* operations on the selection */
GList * nautilus_icon_container_get_selection (NautilusIconContainer *view);
gboolean nautilus_icon_container_has_stretch_handles (NautilusIconContainer *container);
gboolean nautilus_icon_container_is_stretched (NautilusIconContainer *container);
void nautilus_icon_container_show_stretch_handles (NautilusIconContainer *container);
void nautilus_icon_container_unstretch (NautilusIconContainer *container);
/* options */
int nautilus_icon_container_get_zoom_level (NautilusIconContainer *view);
void nautilus_icon_container_set_zoom_level (NautilusIconContainer *view,
int new_zoom_level);
void nautilus_icon_container_enable_linger_selection (NautilusIconContainer *view,
gboolean enable);
#endif
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* gnome-icon-container-dnd.h - Drag & drop handling for the icon container
widget.
/* nautilus-icon-dnd.h - Drag & drop handling for the icon container widget.
Copyright (C) 1999, 2000 Free Software Foundation
Copyright (C) 2000 Eazel, Inc.
......@@ -20,48 +20,50 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Author: Ettore Perazzoli <ettore@gnu.org>
Authors: Ettore Perazzoli <ettore@gnu.org>,
Darin Adler <darin@eazel.com>,
Andy Hertzfeld <andy@eazel.com>
*/
#ifndef GNOME_ICON_CONTAINER_DND_H
#define GNOME_ICON_CONTAINER_DND_H
#ifndef NAUTILUS_ICON_DND_H
#define NAUTILUS_ICON_DND_H
#include "gnome-icon-container.h"
#include "nautilus-icon-container.h"
#include <gtk/gtkdnd.h>
typedef struct _GnomeIconContainerDndInfo GnomeIconContainerDndInfo;
typedef enum _GnomeIconContainerDndTargetType GnomeIconContainerDndTargetType;
typedef struct NautilusIconDndInfo NautilusIconDndInfo;
typedef enum NautilusIconDndTargetType NautilusIconDndTargetType;
/* Standard DnD types. */
enum _GnomeIconContainerDndTargetType {
GNOME_ICON_CONTAINER_DND_GNOME_I