~ubuntu-branches/ubuntu/karmic/file-browser-applet/karmic

« back to all changes in this revision

Viewing changes to src/vfs.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2009-02-13 21:33:45 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090213213345-gowiib2ifj0hmjb3
Tags: 0.6.1-0ubuntu1
* New upstream release. (LP: #329282)
 - Added mnemonic keyboard shortcut to menus for 
   faster keyboard navigation.
 - Added recent documents' support.
 - Improved menu browser focus after context menu close.
 - Fixed bugs #43, 44, 45, 49, 51, 56, 59, 60, 62.
* debian/control:
 - Update Vcs-Bzr field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#ifndef __VFS_H__
27
27
#define __VFS_H__
28
28
 
29
 
#include <glib.h>
30
29
#include <gtk/gtk.h>
31
 
#include <gio/gio.h>
32
 
 
33
 
#include "config.h"
34
 
#include "menu-browser.h"
35
 
 
 
30
 
 
31
/******************************************************************************/
 
32
enum {
 
33
        ARG_APP,
 
34
        ARG_FILE,
 
35
    ARGS_SIZE,
 
36
};
36
37
/******************************************************************************/
37
38
typedef struct _VfsFileInfo VfsFileInfo;
38
 
typedef struct _LaunchInfo LaunchInfo;
39
39
/******************************************************************************/
40
40
struct _VfsFileInfo {
41
41
        gchar           *display_name; /* need to free this */
43
43
        GtkWidget       *icon; /* don't need to free this */
44
44
        gboolean        is_executable;
45
45
};
46
 
struct _LaunchInfo {
47
 
        gchar *command; /* the app to launch. can include args in here too, even file names. */
48
 
        gchar *file;    /* the file to open if any. Should be NULL if not used. */
49
 
};
50
46
/******************************************************************************/
51
47
gboolean        vfs_file_is_executable          (const gchar *file_name);
52
48
gboolean        vfs_file_is_desktop                     (const gchar *file_name);
57
53
GList*          vfs_get_all_mime_applications (const gchar *file_name);
58
54
GtkWidget*      vfs_get_icon_for_file           (const gchar *file_name);
59
55
 
60
 
gboolean        vfs_launch_application          (LaunchInfo *launch_info);
 
56
gboolean        vfs_launch_application          (const gchar *const*args);
61
57
gboolean        vfs_file_do_default_action      (const gchar *file_name);
62
58
void            vfs_file_trash                          (gchar *file_name);
63
59
/******************************************************************************/