Fix bug #70220. Harden *Stream functions so that you can't call them unless the widget has been realized. r=pavlov, rs=brendan

This commit is contained in:
blizzard%redhat.com 2001-05-19 14:23:38 +00:00
Родитель 40aba358d9
Коммит dc2aec3993
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -794,6 +794,7 @@ gtk_moz_embed_open_stream(GtkMozEmbed *embed, const char *base_uri,
g_return_if_fail (embed != NULL);
g_return_if_fail (GTK_IS_MOZ_EMBED(embed));
g_return_if_fail (GTK_WIDGET_REALIZED(GTK_WIDGET(embed)));
embedPrivate = (EmbedPrivate *)embed->data;
@ -807,6 +808,7 @@ void gtk_moz_embed_append_data(GtkMozEmbed *embed, const char *data,
g_return_if_fail (embed != NULL);
g_return_if_fail (GTK_IS_MOZ_EMBED(embed));
g_return_if_fail (GTK_WIDGET_REALIZED(GTK_WIDGET(embed)));
embedPrivate = (EmbedPrivate *)embed->data;
embedPrivate->AppendToStream(data, len);
@ -819,6 +821,7 @@ gtk_moz_embed_close_stream(GtkMozEmbed *embed)
g_return_if_fail (embed != NULL);
g_return_if_fail (GTK_IS_MOZ_EMBED(embed));
g_return_if_fail (GTK_WIDGET_REALIZED(GTK_WIDGET(embed)));
embedPrivate = (EmbedPrivate *)embed->data;
embedPrivate->CloseStream();