diff options
| author | Simeon Simeonov | 2018-02-26 11:23:00 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-02-26 11:23:00 +0100 |
| commit | 0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch) | |
| tree | af916a30553c78ce9d4f2d8658656a175c5b6921 /src/addr_compl.h | |
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'src/addr_compl.h')
| -rw-r--r-- | src/addr_compl.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/addr_compl.h b/src/addr_compl.h new file mode 100644 index 0000000..7eca78a --- /dev/null +++ b/src/addr_compl.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* | ||
| 2 | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client | ||
| 3 | * | ||
| 4 | * Copyright (C) 2000-2004 by Alfons Hoogervorst & The Sylpheed Claws Team. | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef __ADDR_COMPL_H__ | ||
| 22 | #define __ADDR_COMPL_H__ | ||
| 23 | |||
| 24 | gint start_address_completion (void); | ||
| 25 | gint invalidate_address_completion (void); | ||
| 26 | |||
| 27 | guint complete_address (const gchar *str); | ||
| 28 | |||
| 29 | gchar *get_address_from_edit (GtkEntry *entry, | ||
| 30 | gint *start_pos); | ||
| 31 | void replace_address_in_edit (GtkEntry *entry, | ||
| 32 | const gchar *newtext, | ||
| 33 | gint start_pos); | ||
| 34 | |||
| 35 | gchar *get_complete_address (gint index); | ||
| 36 | |||
| 37 | gchar *get_next_complete_address (void); | ||
| 38 | gchar *get_prev_complete_address (void); | ||
| 39 | guint get_completion_count (void); | ||
| 40 | |||
| 41 | gboolean is_completion_pending (void); | ||
| 42 | |||
| 43 | void clear_completion_cache (void); | ||
| 44 | |||
| 45 | gint end_address_completion (void); | ||
| 46 | |||
| 47 | /* ui functions */ | ||
| 48 | |||
| 49 | void address_completion_start (GtkWidget *mainwindow); | ||
| 50 | void address_completion_register_entry (GtkEntry *entry); | ||
| 51 | void address_completion_unregister_entry (GtkEntry *entry); | ||
| 52 | void address_completion_end (GtkWidget *mainwindow); | ||
| 53 | |||
| 54 | #endif /* __ADDR_COMPL_H__ */ | ||
