#include "modest-validating-entry.h"
#include <modest-ui-constants.h>
-#include <gtk/gtksignal.h> /* For the gtk_signal_stop_emit_by_name() convenience function. */
#include <string.h> /* For strlen(). */
/* Include config.h so that _() works: */
#include <config.h>
#endif
-#ifndef MODEST_TOOLKIT_HILDON2
-#define USE_GTK_ENTRY
-#endif
-
#ifdef USE_GTK_ENTRY
G_DEFINE_TYPE (ModestValidatingEntry, modest_validating_entry, GTK_TYPE_ENTRY);
#else
}
if(!allow) {
- /* The signal documentation says
- * "by connecting to this signal and then stopping the signal with
- * gtk_signal_emit_stop(), it is possible to modify the inserted text,
- * or prevent it from being inserted entirely."
- */
- gtk_signal_emit_stop_by_name (GTK_OBJECT (self), "insert-text");
+ /* The signal documentation says: */
+ /* "by connecting to this signal and then stopping the signal with */
+ /* g_signal_stop_emission(), it is possible to modify the inserted text, */
+ g_signal_stop_emission_by_name (self, "insert-text");
}
}
entry = g_object_new (MODEST_TYPE_VALIDATING_ENTRY, NULL);
-#ifndef MODEST_TOOLKIT_HILDON2
+#ifdef MODEST_TOOLKIT_HILDON2
hildon_gtk_widget_set_theme_size (GTK_WIDGET (entry), MODEST_EDITABLE_SIZE);
#endif