~ubuntu-branches/debian/jessie/glib2.0/jessie

« back to all changes in this revision

Viewing changes to gio/gfilenamecompleter.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mto: (1.4.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 70.
  • Revision ID: james.westby@ubuntu.com-20090215130043-6snh45flhit8oalb
Tags: upstream-2.18.4
ImportĀ upstreamĀ versionĀ 2.18.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* GIO - GLib Input, Output and Streaming Library
2
 
 * 
 
2
 *
3
3
 * Copyright (C) 2006-2007 Red Hat, Inc.
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
27
27
#ifndef __G_FILENAME_COMPLETER_H__
28
28
#define __G_FILENAME_COMPLETER_H__
29
29
 
30
 
#include <glib-object.h>
 
30
#include <gio/giotypes.h>
31
31
 
32
32
G_BEGIN_DECLS
33
33
 
40
40
 
41
41
/**
42
42
 * GFilenameCompleter:
43
 
 * 
 
43
 *
44
44
 * Completes filenames based on files that exist within the file system.
45
45
 **/
46
 
typedef struct _GFilenameCompleter GFilenameCompleter;
47
46
typedef struct _GFilenameCompleterClass GFilenameCompleterClass;
48
47
 
49
 
struct _GFilenameCompleterClass {
 
48
struct _GFilenameCompleterClass
 
49
{
50
50
  GObjectClass parent_class;
51
51
 
52
52
  /*< public >*/
53
53
  /* signals */
54
 
  void (* got_completion_data)  (GFilenameCompleter *filename_completer);
 
54
  void (* got_completion_data) (GFilenameCompleter *filename_completer);
55
55
 
56
56
  /*< private >*/
57
57
  /* Padding for future expansion */
60
60
  void (*_g_reserved3) (void);
61
61
};
62
62
 
63
 
GType g_filename_completer_get_type (void) G_GNUC_CONST;
 
63
GType               g_filename_completer_get_type              (void) G_GNUC_CONST;
64
64
 
65
65
GFilenameCompleter *g_filename_completer_new                   (void);
66
66
 
67
67
char *              g_filename_completer_get_completion_suffix (GFilenameCompleter *completer,
68
 
                                                                const char *initial_text);
 
68
                                                                const char *initial_text);
69
69
char **             g_filename_completer_get_completions       (GFilenameCompleter *completer,
70
 
                                                                const char *initial_text);
 
70
                                                                const char *initial_text);
71
71
void                g_filename_completer_set_dirs_only         (GFilenameCompleter *completer,
72
 
                                                                gboolean dirs_only);
 
72
                                                                gboolean dirs_only);
73
73
 
74
74
G_END_DECLS
75
75