This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: important memory-trashing fix


Hi Andrew,

>Why would you want to use a macro?  Surely you could do
>
> void
> gnu::awt::gtk::GtkButtonPeer::setLabel (java::lang::String *label)
> {
>   _Jv_GdkThreadLock sync;
>   Jv_temp_utf_string utflabel(label);
> 
>   // The button child is a label.
>   GtkBin *bin = GTK_BIN (ptr);
>   gtk_label_set_text (GTK_LABEL (bin->child), safe_cstr (utflabel.data));
> }
>
>or somesuch.

http://gcc.gnu.org/ml/java-patches/2003-q3/msg00361.html

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]