Re: [PATCH] Introduce vnc_util_get_version() functions to get version



Em Qui, 2010-09-30 às 14:58 +0200, Michal Novotny escreveu:
> On 09/30/2010 02:45 PM, Jonh Wendell wrote:
> > About the patch, three notes:
> > 1) str must be freed with g_strfreev
> > 2) retVal should be renamed to ret_val or just ret?
> > 3) about vnc_util_get_version_string(), couldn't it return a const gchar
> > * (return VERSION;)?
> >
> > Cheers,
> >    
> Ok, thanks for your valuable input since I'm not familiar with the GNOME 
> String functions very much so that's why I did something that could be 
> done better. Nevertheless I'll have a look after I finish at work today. 
> Why should I rename retVal to ret_val or ret ? I'm just curious why. 
> Also, the point 3 - do you mean implement as "return (const char 
> *)VERSION" ?

item 2), just for convention. I don't see in gtk-vnc any variable
withThisStyle.

item 3)
const gchar * get_version_string ()
{
  return VERSION;
}

Cheers,
-- 
Jonh Wendell
http://www.bani.com.br



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