+2003-06-25 [christoph] 0.9.0claws61
+
+ * src/addr_compl.[ch]
+ * src/addrindex.[ch]
+ * src/folderview.c
+ * src/inc.c
+ * src/news.c
+ * src/summaryview.c
+ * src/toolbar.c
+ fix warnings
+
2003-06-25 [leandro] 0.9.0claws60
* src/compose.c
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws60
+EXTRA_VERSION=claws61
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
return NULL;
}
-/**
- * Return the previous complete address match from the completion index.
- * \return Completed address string; this should be freed when done.
- */
-static gchar *get_prev_complete_address(void)
-{
- if (is_completion_pending()) {
- int n = g_completion_next - 2;
-
- /* real previous */
- n = (n + (g_completion_count * 5)) % g_completion_count;
-
- /* real next */
- g_completion_next = n + 1;
- if (g_completion_next >= g_completion_count)
- g_completion_next = 0;
- return get_complete_address(n);
- } else
- return NULL;
-}
-
/**
* Return a count of the completed matches in the completion index.
* \return Number of matched entries.
}
}
-/**
- * Select specified row in list.
- * \param clist List to process.
- * \param row Row to select.
- */
-static void completion_window_advance_to_row(GtkCList *clist, gint row)
-{
- g_return_if_fail(row < g_completion_count);
- gtk_clist_select_row(clist, row, 0);
-}
-
/**
* Advance selection to previous/next item in list.
* \param clist List to process.
}
pthread_mutex_unlock( & _completionMutex_ );
/* printf( "addrcompl_callback...done\n" ); */
+
+ return 0;
}
/**
#ifndef __ADDR_COMPL_H__
#define __ADDR_COMPL_H__
+#include <gtk/gtk.h>
+
#include "addrindex.h"
gint start_address_completion (void);
guint complete_address (const gchar *str);
gchar *get_complete_address (gint index);
+gint invalidate_address_completion (void);
gint end_address_completion (void);
/* ui functions */
#include "addrindex.h"
#include "xml.h"
#include "addrquery.h"
+#include "addr_compl.h"
#ifndef DEV_STANDALONE
#include "prefs_gtk.h"
* Free DOM fragment.
* \param fragment Fragment to free.
*/
-static addrindex_free_fragment( AddressIfFragment *fragment ) {
+static void addrindex_free_fragment( AddressIfFragment *fragment ) {
GList *node;
/* Free children */
* \param addrIndex Address index object.
*/
static void addrindex_build_search_order( AddressIndex *addrIndex ) {
- AddressInterface *iface;
GList *nodeIf;
/* Clear existing list */
iface = ds->interface;
if( iface == NULL ) return retVal;
if( iface->getReadData ) {
+ /*
gchar *name = ( iface->getName ) ( ds->rawDataSource );
- /* printf( "addrindex_ds_read_data...reading:::%s:::\n", name ); */
+ printf( "addrindex_ds_read_data...reading:::%s:::\n", name );
+ */
retVal = ( iface->getReadData ) ( ds->rawDataSource );
}
return retVal;
gint (*callBackFunc) ( const gchar *, const gchar *, const gchar * ) )
{
AddressDataSource *ds;
- AddressInterface *iface;
GList *nodeIf, *nodeDS;
GList *listP, *nodeP;
GList *nodeM;
gpointer rawDataSource;
};
+void addrindex_initialize ( AddressIndex *addrIndex );
+void addrindex_teardown ( AddressIndex *addrIndex );
+
AddressIndex *addrindex_create_index ( void );
void addrindex_set_file_path ( AddressIndex *addrIndex,
const gchar *value );
FolderView *folderview)
{
gint row, column;
- FolderItem *item, *src_item = 0;
+ FolderItem *item, *src_item = NULL;
GtkCTreeNode *node = NULL;
gboolean acceptable = FALSE;
gint height = folderview->ctree->allocation.height;
FolderItem *inbox;
FolderItem *dropfolder;
gint msgnum;
- IncSession *inc_session = (IncSession *)(SESSION(session)->data);
- gint val;
if (session->ac_prefs->inbox) {
inbox = folder_find_item_from_identifier
static gchar *news_fetch_msg(Folder * folder, FolderItem * item, gint num);
-static gint news_scan_group(Folder * folder, FolderItem * item);
-
static void news_folder_init (Folder *folder,
const gchar *name,
const gchar *path);
static MsgInfo *news_parse_xover (const gchar *xover_str);
static gchar *news_parse_xhdr (const gchar *xhdr_str,
MsgInfo *msginfo);
-static gint news_remove_msg (Folder *folder,
- FolderItem *item,
- gint num);
gint news_get_num_list (Folder *folder,
FolderItem *item,
GSList **list);
return filename;
}
-gint news_scan_group(Folder *folder, FolderItem *item)
-{
- NNTPSession *session;
- gint num = 0, first = 0, last = 0;
- gint ok;
-
- g_return_val_if_fail(folder != NULL, -1);
- g_return_val_if_fail(item != NULL, -1);
-
- session = news_session_get(folder);
- if (!session) return -1;
-
- ok = news_select_group(session, item->path, &num, &first, &last);
- if (ok != NN_SUCCESS) {
- log_warning("can't set group: %s\n", item->path);
- return -1;
- }
-
- if (num == 0) {
- item->new_msgs = item->unread_msgs = item->total_msgs = item->last_num = 0;
- return 0;
- }
-
-/*
- path = folder_item_get_path(item);
- if (path && is_dir_exist(path)) {
- procmsg_get_mark_sum(path, &new, &unread, &total, &min, &max,
- first);
- }
- g_free(path);
-
- if (max < first || last < min)
- new = unread = total = num;
- else {
- if (min < first)
- min = first;
-
- if (last < max)
- max = last;
- else if (max < last) {
- new += last - max;
- unread += last - max;
- }
-
- if (new > num) new = num;
- if (unread > num) unread = num;
- }
-
- item->new = new;
- item->unread = unread;
- item->total = num;
- item->last_num = last;
-*/
- return 0;
-}
-
static NewsGroupInfo *news_group_info_new(const gchar *name,
gint first, gint last, gchar type)
{
return 0;
}
-static gint news_remove_msg(Folder *folder, FolderItem *item, gint num)
-{
- gchar * dir;
- gint r;
-
- dir = folder_item_get_path(item);
- debug_print("news_remove_msg: removing msg %d in %s\n",num,dir);
- r = remove_numbered_files(dir, num, num);
- g_free(dir);
-
- return r;
-}
-
static gint news_get_article(NNTPSession *session, gint num, gchar *filename)
{
return news_get_article_cmd(session, "ARTICLE", num, filename);
static void summary_unlock_row(SummaryView *summaryview, GtkCTreeNode *row)
{
- gboolean changed = FALSE;
GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
MsgInfo *msginfo;
{
ToolbarItem *toolbar_item = (ToolbarItem*)data;
MainWindow *mainwin;
- MessageView *msgview;
g_return_if_fail(toolbar_item != NULL);
{
ToolbarItem *toolbar_item = (ToolbarItem*)data;
MainWindow *mainwin;
- MessageView *msgview;
g_return_if_fail(toolbar_item != NULL);