Revision 22534 (by benny, 2006/07/27 16:16:51) 2006-07-27 Benedikt Meurer <benny@xfce.org>

* README, acinclude.m4, configure.in.in, thunar-vfs/, thunar/,
plugins/thunar-apr/thunar-apr-provider.c,
plugins/thunar-uca/thunar-uca-model.c: Import the trash framework,
based on the XDG trash specification, but currently limited to the
home trash.
* thunar/thunar-file.{c,h}, thunar/thunar-standard-view.c
(thunar_standard_view_merge_custom_actions): Remove obsolete
thunar_file_get_actions(). bug #1241.
* thunar/thunar-file.c, thunar/thunar-util.{c,h}: Use localized
human readable format for file dates. bug #2057.
* thunar/thunar-private.h, thunar/thunar-tree-model.c,
thunar/thunar-thumbnail-generator.c, thunar/thunar-shortcuts-model.c,
thunar/thunar-renamer-pair.c, thunar/thunar-renamer-model.c,
thunar/thunar-clipboard-manager.c: Use the slice allocator to reduce
the memory overhead.
* thunar/thunar-gtk-extensions.{c,h}, thunar/thunar-chooser-button.c,
thunar/thunar-permissions-chooser.c, thunar/thunar-chooser-dialog.c,
thunar/thunar-preferences-dialog.c, thunar/thunar-renamer-dialog.c,
thunar/thunar-size-label.c: Use a single shared GtkTooltips instance
for the whole application.
* thunar/thunar-path-entry.c: Update the path entry icon and text
whenever the current file changes.
* README, acinclude.m4, configure.in.in, plugins/thunar-tpa/: Add a
trash panel applet, that communicates with Thunar via D-BUS to
display the current state of the trash can and move files to the
trash by dropping them to the panel applet.
* thunar/thunar-preferences.c(thunar_preferences_class_init),
docs/README.thunarrc: Disable case-sensitive sorting of the
files by default. bug #2064.
* docs/reference/thunar-vfs/: Update the API documentation.
* po/POTFILES.in: Add new files here.
* po/Thunar.pot, po/*.po: Merge new strings.
* po/de.po: Update german translations.


/* $Id: thunar-application.h 22534 2006-07-27 16:16:51Z benny $ */
/*-
 * Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
 * Copyright (c) 2005      Jeff Franks <jcfranks@xfce.org>
 *
 * 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., 59 Temple
 * Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __THUNAR_APPLICATION_H__
#define __THUNAR_APPLICATION_H__

#include <thunar/thunar-window.h>

G_BEGIN_DECLS;

typedef struct _ThunarApplicationClass ThunarApplicationClass;
typedef struct _ThunarApplication      ThunarApplication;

#define THUNAR_TYPE_APPLICATION             (thunar_application_get_type ())
#define THUNAR_APPLICATION(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_TYPE_APPLICATION, ThunarApplication))
#define THUNAR_APPLICATION_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_TYPE_APPLICATION, ThunarApplicationClass))
#define THUNAR_IS_APPLICATION(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_TYPE_APPLICATION))
#define THUNAR_IS_APPLICATION_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_TYPE_APPLICATION))
#define THUNAR_APPLICATION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_TYPE_APPLICATION, ThunarApplicationClass))

GType              thunar_application_get_type          (void) G_GNUC_CONST;

ThunarApplication *thunar_application_get               (void);

gboolean           thunar_application_get_daemon        (ThunarApplication *application);
void               thunar_application_set_daemon        (ThunarApplication *application,
                                                         gboolean           daemon);

GList             *thunar_application_get_windows       (ThunarApplication *application);

gboolean           thunar_application_has_windows       (ThunarApplication *application);

void               thunar_application_take_window       (ThunarApplication *application,
                                                         GtkWindow         *window);

GtkWidget         *thunar_application_open_window       (ThunarApplication *application,
                                                         ThunarFile        *directory,
                                                         GdkScreen         *screen);

gboolean           thunar_application_bulk_rename       (ThunarApplication *application,
                                                         const gchar       *working_directory,
                                                         gchar            **filenames,
                                                         gboolean           standalone,
                                                         GdkScreen         *screen,
                                                         GError           **error);

gboolean           thunar_application_process_filenames (ThunarApplication *application,
                                                         const gchar       *working_directory,
                                                         gchar            **filenames,
                                                         GdkScreen         *screen,
                                                         GError           **error);

void               thunar_application_copy_to           (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *source_path_list,
                                                         GList             *target_path_list,
                                                         GClosure          *new_files_closure);

void               thunar_application_copy_into         (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *source_path_list,
                                                         ThunarVfsPath     *target_path,
                                                         GClosure          *new_files_closure);

void               thunar_application_link_into         (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *source_path_list,
                                                         ThunarVfsPath     *target_path,
                                                         GClosure          *new_files_closure);

void               thunar_application_move_into         (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *source_path_list,
                                                         ThunarVfsPath     *target_path,
                                                         GClosure          *new_files_closure);

void               thunar_application_unlink_files      (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *file_list);

void               thunar_application_creat             (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *path_list,
                                                         GClosure          *new_files_closure);

void               thunar_application_mkdir             (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *path_list,
                                                         GClosure          *new_files_closure);

void               thunar_application_empty_trash       (ThunarApplication *application,
                                                         gpointer           parent);

void               thunar_application_restore_files     (ThunarApplication *application,
                                                         gpointer           parent,
                                                         GList             *trash_file_list,
                                                         GClosure          *new_files_closure);

G_END_DECLS;

#endif /* !__THUNAR_APPLICATION_H__ */