remove space in front of colon
[claws.git] / src / browseldap.c
index 67799b5f4e5c4671c7cd261a2b53f3c09dfbdb1f..117d77ea4ddbdfa488c695b76077390e30eae1fb 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * 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
@@ -23,6 +23,7 @@
 
 #ifdef HAVE_CONFIG_H
 #  include "config.h"
+#include "claws-features.h"
 #endif
 
 #ifdef USE_LDAP
@@ -179,7 +180,7 @@ static gint browse_delete_event(
 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();
        }
 }
@@ -233,7 +234,7 @@ static void browse_create( void ) {
 
        /* 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);
 
@@ -243,7 +244,7 @@ static void browse_create( void ) {
 
        /* 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);
 
@@ -385,7 +386,7 @@ gboolean browseldap_entry( AddressDataSource *ds, const gchar *dn ) {
        _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");