Re: [gtk-list] gtk_window_set_title function



Rob Huffstedtler wrote:
> 
> Looking through the Freeciv source, I came across the following:
> 
>   gtk_window_set_title (GTK_WINDOW (toplevel), _("Freeciv"));
> 
> What is the purpose of the underbar?  I checked the tutorial, the RDP, and
> Harlow and no one seems to mention this.  I tried it in a small test app
> and it throws an error.

Usually it is a macro that substitutes char* with a function call
which returns localized version of the string. It is a matter of
localization, in short.

-- 
Leon. 

### Born in USSR ###



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]