summaryrefslogtreecommitdiff
path: root/components/text/nautilus-text-view.c
diff options
context:
space:
mode:
authorMichael Meeks <michael@ximian.com>2001-11-21 06:14:51 +0000
committerMichael Meeks <mmeeks@src.gnome.org>2001-11-21 06:14:51 +0000
commit44af9fae6c0e1ab24a4a3314dd3a5ebb8285e8b0 (patch)
tree39ae0372cfad88bb73f705180a49329ebd1d42c6 /components/text/nautilus-text-view.c
parente9e3b603f46468766a07f8eb7a238d6b4ad677ab (diff)
downloadnautilus-44af9fae6c0e1ab24a4a3314dd3a5ebb8285e8b0.tar.gz
kill g_log_domain_glib.
2001-11-21 Michael Meeks <michael@ximian.com> * src/nautilus-main.c (main): kill g_log_domain_glib. * components/news/nautilus-news.c (main): ditto. * libnautilus-private/nautilus-marshal.h: upd. * libnautilus/nautilus-view.c (nautilus_view_class_init): update for new marshallers. * libnautilus-private/nautilus-directory-async.c (nautilus_directory_async_state_changed): #ifdef out GTK_OBJECT_DESTROYED check. * libnautilus/nautilus-clipboard.c (select_all_idle_callback): kill GTK_OBJECT_DESTROYED check; unneccessary. * libnautilus-private/nautilus-directory.c (nautilus_directory_find_file_by_internal_uri): ditto. * libnautilus-private/nautilus-entry.c (select_all_at_idle): ditto. * components/text/nautilus-text-view.c (file_read_callback): ditto. * src/file-manager/fm-properties-window.c (rename_callback): ditto.
Diffstat (limited to 'components/text/nautilus-text-view.c')
-rw-r--r--components/text/nautilus-text-view.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/components/text/nautilus-text-view.c b/components/text/nautilus-text-view.c
index e0eb059c4..bb131b131 100644
--- a/components/text/nautilus-text-view.c
+++ b/components/text/nautilus-text-view.c
@@ -326,15 +326,14 @@ file_read_callback (GnomeVFSAsyncHandle *vfs_handle,
if (result == GNOME_VFS_OK && bytes_read > 0) {
/* write the buffer into the text field */
display = GTK_TEXT (text_view->details->text_display);
- if (!GTK_OBJECT_DESTROYED (display)) {
- gtk_text_freeze (display);
- gtk_text_set_point (display,
- gtk_text_get_length (display));
- gtk_text_insert (display,
- NULL, NULL, NULL,
- buffer, bytes_read);
- gtk_text_thaw (display);
- }
+
+ gtk_text_freeze (display);
+ gtk_text_set_point (display,
+ gtk_text_get_length (display));
+ gtk_text_insert (display,
+ NULL, NULL, NULL,
+ buffer, bytes_read);
+ gtk_text_thaw (display);
/* read more if necessary */
if (text_view->details->file_size < MAX_FILE_SIZE) {