Emit property notification for the text-length property

svn path=/trunk/; revision=21938
This commit is contained in:
Matthias Clasen 2008-12-27 01:16:52 +00:00
parent 6a43b63b35
commit fbada98059
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-12-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c: Emit property notification for the text-length
property.
2008-12-26 Matthias Clasen <mclasen@redhat.com> 2008-12-26 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/search_entry.c: Add a demo for new entry features. * demos/gtk-demo/search_entry.c: Add a demo for new entry features.

View File

@ -1187,7 +1187,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* GtkEntry::icon-pressed: * GtkEntry::icon-pressed:
* @entry: The entry on which the signal is emitted * @entry: The entry on which the signal is emitted
* @icon_pos: The position of the clicked icon * @icon_pos: The position of the clicked icon
* @buttomotione mouse button clicked * @event: the button press event
* *
* The ::icon-pressed signal is emitted when an icon is clicked. * The ::icon-pressed signal is emitted when an icon is clicked.
* *
@ -1208,7 +1208,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* GtkEntry::icon-released: * GtkEntry::icon-released:
* @entry: The entry on which the signal is emitted * @entry: The entry on which the signal is emitted
* @icon_pos: The position of the clicked icon * @icon_pos: The position of the clicked icon
* @button: The mouse button clicked * @event: the button release event
* *
* The ::icon-released signal is emitted on the button release from a * The ::icon-released signal is emitted on the button release from a
* mouse click. * mouse click.
@ -4115,6 +4115,7 @@ gtk_entry_real_insert_text (GtkEditable *editable,
emit_changed (entry); emit_changed (entry);
g_object_notify (G_OBJECT (editable), "text"); g_object_notify (G_OBJECT (editable), "text");
g_object_notify (G_OBJECT (editable), "text-length");
} }
static void static void
@ -4165,6 +4166,7 @@ gtk_entry_real_delete_text (GtkEditable *editable,
emit_changed (entry); emit_changed (entry);
g_object_notify (G_OBJECT (editable), "text"); g_object_notify (G_OBJECT (editable), "text");
g_object_notify (G_OBJECT (editable), "text-length");
} }
} }