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

Re: gEDA-user: PCB Gtk port



Le Sat, 26 Feb 2005 17:43:18 -0600
Bill Wilson <billw@xxxxxxxxxxxxxx> a écrit :

> On Sat, 26 Feb 2005 23:07:02 +0100
> Iznogood <iznogood@xxxxxxxxxxxxxxxxxxxx> wrote:
> 
> > Thanks for the job! It's great! Just one thing: when you start a
.pcb
> > file, the zoom seems one time too large with regard to the zoom
button.
> 
> Should have added this to the previous patch.  Here's the patch again
> with zoom fixed:
> 
> --- gui-top-window.c.orig	2005-02-26 16:44:51.000000000 -0600
> +++ gui-top-window.c	2005-02-26 17:10:45.000000000 -0600
> @@ -2086,6 +2086,8 @@
>  	gui_route_style_button_set_active(0);
>  	gui_config_handle_units_changed();
>  	gui_change_selected_update_menu_actions();
> +
> +	gui_zoom_display_update();
>  	}
>  
>    /* Sync toggle states in the menus at startup to Settings values
loaded
> @@ -2630,7 +2632,11 @@
>  	/* Turning off a layer that was selected will cause PCB to
switch to
>  	|  another layer.
>  	*/
> -	layer = MIN (INDEXOFCURRENT, GUI_RATS_LAYER);
> +	if (PCB->RatDraw)
> +		layer = GUI_RATS_LAYER;
> +	else
> +		layer = PCB->SilkActive ? GUI_SILK_LAYER : LayerStack[0];
> +
>  	if (layer < MAX_LAYER)
>  		active = PCB->Data->Layer[layer].On;
>  	else if (layer == GUI_SILK_LAYER)
> 
> > I will be interested with the documentation with another extension
> > than .texi and some .pot file to translate it.
> 
> Don't know much about the .texi, but the tarball uploaded now has
> a pcb-gtk/po/pcb.pot file that you can start with.  I did add i18n to
> most of what I did.  Some of the popup confirms and other things
> probably are missed and I doubt the configure system is set up to
> enable i18n.
> 
> Maybe you could succeed "by hand".  After the configure you would
> have to edit the src/Makefile and change the DEFS line to:
> 
> DEFS = -DHAVE_CONFIG_H -DENABLE_NLS -DPACKAGE=\"pcb\"
-DLOCALEDIR=\"/usr/share/locale\"
> 
> Then do a make.  And again by hand install the fr.po you have created:
> 
>    cd src/po
>    msgfmt -f -v -o fr.mo fr.po
>    cp fr.mo /usr/share/locale/fr/LC_MESSAGES/pcb.mo
> 
> Maybe it's better to wait until the PCB build can do it all for you,
but while
> I know what to do, I don't know how to make the autobuild tools do it.

Thanks for the very quick reply. I will do the job tomorow, cause it's
too late for tonight and I'm tired! ;-)

Cordially.

> 
> Bill
> 
> 


-- 
Sur http://www.iznogood-factory.org , vous avez parmi des
doc techniques en français, celle de cinglés qui développent
des outils pour les schémas électroniques: gEDA.

Attachment: pgpyTPnGGqNl9.pgp
Description: PGP signature