No need to query for the persist-stream interface here, just re-use
2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (set_editor_text): No need to query for the persist-stream interface here, just re-use composer->persist_stream_interface - this might improve the speed at which a reply action brings up the composer. svn path=/trunk/; revision=16425
This commit is contained in:

committed by
Jeffrey Stedfast

parent
796b9fe197
commit
f6b7c9d6e5
@ -1,3 +1,10 @@
|
||||
2002-04-08 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* e-msg-composer.c (set_editor_text): No need to query for the
|
||||
persist-stream interface here, just re-use
|
||||
composer->persist_stream_interface - this might improve the speed
|
||||
at which a reply action brings up the composer.
|
||||
|
||||
2002-04-09 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* e-msg-composer-hdrs.c (set_recipients_from_destv): Use decode
|
||||
|
@ -882,28 +882,25 @@ set_editor_text (EMsgComposer *composer, const char *text)
|
||||
BonoboWidget *editor;
|
||||
CORBA_Environment ev;
|
||||
|
||||
g_return_if_fail (composer->persist_stream_interface != CORBA_OBJECT_NIL);
|
||||
|
||||
persist = composer->persist_stream_interface;
|
||||
|
||||
editor = BONOBO_WIDGET (composer->editor);
|
||||
|
||||
CORBA_exception_init (&ev);
|
||||
persist = (Bonobo_PersistStream) bonobo_object_client_query_interface (
|
||||
bonobo_widget_get_server (editor), "IDL:Bonobo/PersistStream:1.0", &ev);
|
||||
|
||||
g_return_if_fail (persist != CORBA_OBJECT_NIL);
|
||||
|
||||
stream = bonobo_stream_mem_create (text, strlen (text),
|
||||
TRUE, FALSE);
|
||||
stream = bonobo_stream_mem_create (text, strlen (text), TRUE, FALSE);
|
||||
Bonobo_PersistStream_load (persist, (Bonobo_Stream)bonobo_object_corba_objref (BONOBO_OBJECT (stream)),
|
||||
"text/html", &ev);
|
||||
if (ev._major != CORBA_NO_EXCEPTION) {
|
||||
/* FIXME. Some error message. */
|
||||
return;
|
||||
}
|
||||
if (ev._major != CORBA_SYSTEM_EXCEPTION)
|
||||
CORBA_Object_release (persist, &ev);
|
||||
|
||||
Bonobo_Unknown_unref (persist, &ev);
|
||||
CORBA_exception_free (&ev);
|
||||
bonobo_object_unref (BONOBO_OBJECT(stream));
|
||||
|
||||
bonobo_object_unref (BONOBO_OBJECT (stream));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user