/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2003-2011 Match Grun and the Claws Mail team
+ * Copyright (C) 2003-2012 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
#ifdef HAVE_CONFIG_H
# include "config.h"
+#include "claws-features.h"
#endif
#ifdef USE_LDAP
static void browse_key_pressed(
GtkWidget *widget, GdkEventKey *event, gboolean *cancelled )
{
- if (event && event->keyval == GDK_Escape) {
+ if (event && event->keyval == GDK_KEY_Escape) {
gtk_main_quit();
}
}
/* First row */
top = 0;
- label = gtk_label_new(_("Server Name :"));
+ label = gtk_label_new(_("Server 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);
/* Second row */
top++;
- label = gtk_label_new(_("Distinguished Name (dn) :"));
+ label = gtk_label_new(_("Distinguished Name (dn):"));
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);
_queryID_ = ldaplocate_search_setup(
server, dn, browse_callback_entry, browse_callback_end );
debug_print("query id: %d\n", _queryID_);
- _browseIdleID_ = g_idle_add( ( GtkFunction ) browse_idle, NULL );
+ _browseIdleID_ = g_idle_add( (GSourceFunc) browse_idle, NULL );
/* Start search */
debug_print("starting search\n");