Update Spanish translation
[gnumeric.git] / src / complete.h
blob4ed75fdcc10b88c7d02f87776f9827bccbb85ab3
1 #ifndef _GNM_COMPLETE_H_
2 # define _GNM_COMPLETE_H_
4 #include <glib-object.h>
5 #include <gnumeric-fwd.h>
7 G_BEGIN_DECLS
9 #define GNM_COMPLETE_TYPE (gnm_complete_get_type ())
10 #define GNM_COMPLETE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_COMPLETE_TYPE, GnmComplete))
11 #define GNM_COMPLETE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNM_COMPLETE_TYPE, GnmCompleteClass))
12 #define GNM_IS_COMPLETE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_COMPLETE_TYPE))
14 typedef void (*GnmCompleteMatchNotifyFn) (char const *text, void *closure);
16 struct GnmComplete_ {
17 GObject parent;
19 GnmCompleteMatchNotifyFn notify;
20 void *notify_closure;
22 char *text;
24 guint idle_tag;
27 typedef struct {
28 GObjectClass parent_class;
30 void (*start_over) (GnmComplete *complete);
31 gboolean (*search_iteration) (GnmComplete *complete);
32 } GnmCompleteClass;
34 void gnm_complete_construct (GnmComplete *complete,
35 GnmCompleteMatchNotifyFn notify,
36 void *notify_closure);
37 void gnm_complete_start (GnmComplete *complete, char const *text);
38 GType gnm_complete_get_type (void);
40 G_END_DECLS
42 #endif /* _GNM_COMPLETE_H_ */