xfce4-menueditor problems

Jean-François Wauthy pollux at castor.be
Wed Feb 4 17:03:33 CET 2004


Le mer 04/02/2004 à 14:53, edscott wilson garcia a écrit :
> El mié, 04-02-2004 a las 06:32, Jean-François Wauthy escribió:
> > Le mer 04/02/2004 à 13:23, Jasper Huijsmans a écrit :
> > > All declarations must be at the start of a block. Gcc3 allows
> > > declarations anywhere, but earlier versions do not, nor I expect do
> > > other compilers.
> > > 
> > yes but here i declare the variable at the start of the block,...
> 
> Let me venture a hypothesis,
>  
> gint response = gtk_dialog_run(GTK_DIALOG(dialog));
> 
> In my mind's eye it seems unpredictable the way different compilers
> could interpret that since gtk will wander off in a new gtk loop. Maybe
> it would be clearer to write the following instead,
> 
> if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES) {
>   gtk_widget_destroy(dialog);
>   /* do your thing */
> } else gtk_widget_destroy(dialog);
> 
> And get rid of any need for declaration or initialisation.
> 
> my $.02 ;-)
> 
done, patch in attachements
> 
> 
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
-- 
Jean-François Wauthy <pollux at castor.be>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: response.diff.bz2
Type: application/x-bzip
Size: 1888 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040204/6f4c3446/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040204/6f4c3446/attachment.pgp>


More information about the Xfce4-dev mailing list