X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-validating-entry.c;h=24cca531f59a651e4203dcf52217b8241e2eef40;hb=07b4b24bacfc227ccd63df56a0ee7734ececd4fd;hp=6d34d6cb65f254d4092363df83f2c16147231531;hpb=dd3db058530966c0d28def9c3bd1af04fc32ba6f;p=modest diff --git a/src/widgets/modest-validating-entry.c b/src/widgets/modest-validating-entry.c index 6d34d6c..24cca53 100644 --- a/src/widgets/modest-validating-entry.c +++ b/src/widgets/modest-validating-entry.c @@ -29,7 +29,6 @@ #include "modest-validating-entry.h" #include -#include /* For the gtk_signal_stop_emit_by_name() convenience function. */ #include /* For strlen(). */ /* Include config.h so that _() works: */ @@ -209,12 +208,10 @@ on_insert_text(GtkEditable *editable, } 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"); } }