/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2011 Match Grun and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2001-2015 Match Grun and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
/*
#ifdef HAVE_CONFIG_H
# include "config.h"
+#include "claws-features.h"
#endif
#include "defs.h"
gint y = event->y;
gint row, col;
- gtk_cmclist_get_selection_info( clist, x, y, &row, &col );
+ if (!gtk_cmclist_get_selection_info( clist, x, y, &row, &col ))
+ return FALSE;
if( col != FIELD_COL_SELECT ) return FALSE;
if( row > impldif_dlg.rowCount ) return FALSE;
gboolean errFlag = FALSE;
sFile = gtk_editable_get_chars( GTK_EDITABLE(impldif_dlg.entryFile), 0, -1 );
- g_strchug( sFile ); g_strchomp( sFile );
+ g_strstrip( sFile );
sName = gtk_editable_get_chars( GTK_EDITABLE(impldif_dlg.entryName), 0, -1 );
- g_strchug( sName ); g_strchomp( sName );
+ g_strstrip( sName );
g_free( impldif_dlg.nameBook );
g_free( impldif_dlg.fileName );
* \param data User data.
*/
static gboolean imp_ldif_key_pressed( GtkWidget *widget, GdkEventKey *event, gpointer data ) {
- if (event && event->keyval == GDK_Escape) {
+ if (event && event->keyval == GDK_KEY_Escape) {
imp_ldif_cancel( widget, data );
}
return FALSE;
GtkWidget *entryFile;
GtkWidget *entryName;
GtkWidget *btnFile;
- CLAWS_TIP_DECL();
gint top;
vbox = gtk_vbox_new(FALSE, 8);
GtkWidget *checkSelect;
GtkWidget *btnModify;
GtkWidget *eventBox;
- CLAWS_TIP_DECL();
gint top;
gchar *titles[ FIELDS_N_COLS ];
/* First row */
top = 0;
- label = gtk_label_new( _( "Address Book :" ) );
+ label = gtk_label_new( _( "Address Book:" ) );
gtk_table_attach(GTK_TABLE(table), label, 0, 1, top, (top + 1), GTK_FILL, 0, 0, 0);
gtk_misc_set_alignment(GTK_MISC(label), 1, 0.5);
/* Second row */
top++;
- label = gtk_label_new( _( "File Name :" ) );
+ label = gtk_label_new( _( "File Name:" ) );
gtk_table_attach(GTK_TABLE(table), label, 0, 1, top, (top + 1), GTK_FILL, 0, 0, 0);
gtk_misc_set_alignment(GTK_MISC(label), 1, 0.5);
/* Third row */
top++;
- label = gtk_label_new( _("Records Imported :") );
+ label = gtk_label_new( _("Records Imported:") );
gtk_table_attach(GTK_TABLE(table), label, 0, 1, top, (top + 1), GTK_FILL, 0, 0, 0);
gtk_misc_set_alignment(GTK_MISC(label), 1, 0.5);