diff options
Diffstat (limited to 'libnautilus-private/nautilus-entry.c')
-rw-r--r-- | libnautilus-private/nautilus-entry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libnautilus-private/nautilus-entry.c b/libnautilus-private/nautilus-entry.c index 7177ef141..c3557ed2d 100644 --- a/libnautilus-private/nautilus-entry.c +++ b/libnautilus-private/nautilus-entry.c @@ -202,13 +202,13 @@ nautilus_entry_select_all_at_idle (NautilusEntry *entry) * @test: The text to set **/ -void +void nautilus_entry_set_text (NautilusEntry *entry, const gchar *text) { + g_return_if_fail (NAUTILUS_IS_ENTRY (entry)); + entry->user_edit = FALSE; - - gtk_entry_set_text ( GTK_ENTRY (entry), text); - + gtk_entry_set_text (GTK_ENTRY (entry), text); entry->user_edit = TRUE; } |