Re: gEDA-user: Please test new grids for GTK PCB

2011-03-09 Thread jpka
On Wed, 09 Mar 2011 21:52:15 +0100, Krzysztof Kościuszkiewicz wrote:
> The success story would look like:
>  ...

Great! Thank you :)
The last question is, when i find correct callback signature, passed 
arguments absolutely cannot be modified in any way, including adding 
random arguments, right?




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: nice hint from faq-gschem

2011-03-09 Thread Kai-Martin Knaak
Kai-Martin Knaak wrote:

> I filed a bug report. 

https://bugs.launchpad.net/geda/+bug/732326
 
---<)kaimartin(>---

-- 
Kai-Martin Knaak
Email: k...@familieknaak.de
Öffentlicher PGP-Schlüssel:
http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: nice hint from faq-gschem

2011-03-09 Thread Kai-Martin Knaak
Vladimir Zhbanov wrote:

> I've opened my new.sym symbol in gschem and mistakenly inserted new.sym
> into it.

which makes for a recursive loop. 


> Closed and reopened myschematic.sch containing that symbol.
> Pretty nice segfault :)
> No log records.
> Try it! :)

Confirmed.
I filed a bug report. 
 
---<)kaimartin(>---
-- 
Kai-Martin Knaak
Email: k...@familieknaak.de
Öffentlicher PGP-Schlüssel:
http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Soldering tips

2011-03-09 Thread Stephen Ecob
My favorite tool for desoldering is a hot air blower.  It may look
like a glorified hair dryer, but it works like a charm.  No damaged
tips either :-)


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gschem: net attribute for power I/O, clean appearance? (no “:1”)

2011-03-09 Thread Kai-Martin Knaak
Mark Rages wrote:

> But there is opposition:
> http://archives.seul.org/geda/dev/Mar-2004/msg00021.html
> 
A bit further down the thread Ales signals, he is willing to apply 
the patch:
http://archives.seul.org/geda/dev/Mar-2004/msg00016.html

Maybe, he just needs a friendly reminder to actually do as indicated.

---<)kaimartin(>---
-- 
Kai-Martin Knaak
Email: k...@familieknaak.de
Öffentlicher PGP-Schlüssel:
http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Soldering tips

2011-03-09 Thread Darryl Gibson
The other day I wanted to salvage some parts off a dead TV chassis,
but I didn't want to
use my good soldering tip to do so.

I had some solid 12 gauge house wire laying around, so I gave it a
try. I stripped a six inch
piece, folded it over on itself, and twisted it up like twisted pair
wire. It threaded into my
Weller SP23 iron, trimmed it to length, and it worked like a charm.

Now, if I can fashion a "tip" out of it, I may never buy another
commercial tip again?
-- 
Darryl Gibson N2DIY
Linux, free software for everybody.
RLU X 182668/379552


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: nice hint from faq-gschem

2011-03-09 Thread Vladimir Zhbanov
faq-gschem:

Q: Can my local library cover frequently needed sub circuits?

A: Yes, symbols can contain symbols and nets. 
...

I've opened my new.sym symbol in gschem and mistakenly inserted new.sym
into it.
Closed and reopened myschematic.sch containing that symbol.
Pretty nice segfault :)
No log records.
Try it! :)

--
VZh


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Please test new grids for GTK PCB

2011-03-09 Thread Krzysztof Kościuszkiewicz
On Wed, Mar 09, 2011 at 11:39:36AM +, jpka wrote:

> > Each signal handler has its required signature. This can be found in
> the GTK docs.
> 
> Is there any success-story about it or example using docs IRL ?

The success story would look like:

1) Look up the function ghid_button_connected()
2) the function creates a GtkButton b and calls:

if (cb_func)
gtk_signal_connect (GTK_OBJECT (b), "clicked",
GTK_SIGNAL_FUNC (cb_func), data);

3) Hence you look up signal "clicked" in GtkButton
http://library.gnome.org/devel/gtk/unstable/GtkButton.html#GtkButton-clicked

4) There you find correct callback signature:

void user_function (GtkButton *button,
gpointer   user_data);
-- 
Krzysztof Kościuszkiewicz
"Simplicity is the ultimate sophistication" -- Leonardo da Vinci


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gschem: net attribute for power I/O, clean appearance? (no “:1”)

2011-03-09 Thread Colin D Bennett
On Tue, 8 Mar 2011 18:41:59 -0600
Mark Rages  wrote:

> On Tue, Mar 8, 2011 at 6:18 PM, Colin D Bennett 
> wrote:
> > Hidden option 3: Make gschem assume “:1” for ‘net’ attribute values
> > without a “:N” suffix.
> 
> This has been proposed by several users, including me.

Mark, many thanks for posting the references to that conversation.
I appreciate the very appropriate and poignant subject line mentioning
“DRY, colon cancer, and redundant, repetitive redundancy”. :-)
My thoughts exactly.

The “ugly workaround” [1] you mention is exactly what I described as
Option 2. (Except I use the convention of the normal input-2 symbol,
using the ‘value’ attribute instead of ‘description’.)

There is also a post-processing kludge [2] implementing Hidden option 3!
This solves all the original problems but does bring its own
inconveniences because it's implemented with post-processing scripting.

Regards,
Colin

References:

[1] “The way I get around the 'ugly' :1 thing is make the net invisible
then use a visible 'description' attribute.” 
Bob Paddock ;
.

[2] “Right now I do not have :1 on my net names, and I have my makefile
make a copy of all my schematics, and run 
sed -i -e 's/^\(net=.*\)/\1:1/' on them to add a :1.”
 Miles Gazic; Thu, 11 Jun 2009 14:45:10 -0600;
.


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gschem: net attribute for power I/O, clean appearance? (no “:1”)

2011-03-09 Thread yamazakir2
Nope never added that feature, only spice netlist, sorry.

On Wed, Mar 9, 2011 at 1:43 AM, Kovacs Levente  wrote:
> On Tue, 8 Mar 2011 17:37:32 -0800
> yamazakir2  wrote:
>
>> I wrote a custom netlister over a year ago that suppose this and
>> hierarchical netlisting.
>>
>> http://spnet.code-fusion.net/
>
> Can your netlister output a netlist for gEDA-PCB?
>
> --
> Kovacs Levente 
> Voice: +36705071002
>
>
>
>
> ___
> geda-user mailing list
> geda-user@moria.seul.org
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Please test new grids for GTK PCB

2011-03-09 Thread jpka
Hi!

On Thu, 03 Mar 2011 15:39:22 +0100, Krzysztof Kościuszkiewicz wrote:

> I was asking why in the model you keep strings and not ints/floats?

I don't know if i can directly place user-editable numeric values into 
treeview, instead of strings, it's possible? This is due to absence of 
examples: all treeview's C code samples found (with user-editing) are 
text/string. But also it's due to probably in future, user input can be 
in form '50 mil' or '2e3 mkm', i don't know useful it or no, but 
currently it can be easy added.

> custom implementation of GtkTreeModel ...

It can work only in my dreams, because currently i even don't know how to 
write gtk callback procedure header...:(
Example:
I need to write "Set by Mark Distance" button press procedure (as you 
see, currently tied to dummy write (and it work well :D ) )
I copypaste your new cb_edited_mm_or_mil proc, because *it has access to 
treeview items* and contains all i need; only small modifications need.
I don't touch the header because i don't know how to rewrite it correctly:
/(GtkCellRendererText *cell,
  gchar *path,
  gchar *text,
  GtkTreeView *treeview)/
but it tied not here
/  g_signal_connect(renderer, "edited", (GCallback) cb_edited_mm_or_mil, 
treeview);/
but i place it here :
/  ghid_button_connected (hbox_btn_grids, NULL, FALSE, FALSE, FALSE, 4, 
  cb_grid_setbymarkdistance, NULL, _("Set by Mark Distance"),  ../
and it of course not work: program crashes silently, no any debug info, 
no way to read anything or things how to rewrite the header, no suitable 
examples... compiles without warnings.

> Each signal handler has its required signature. This can be found in
the GTK docs.

Is there any success-story about it or example using docs IRL ?

Thanks! :)





___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gschem: net attribute for power I/O, clean appearance? (no “:1”)

2011-03-09 Thread Kovacs Levente
On Tue, 8 Mar 2011 17:37:32 -0800
yamazakir2  wrote:

> I wrote a custom netlister over a year ago that suppose this and
> hierarchical netlisting.
> 
> http://spnet.code-fusion.net/

Can your netlister output a netlist for gEDA-PCB?

-- 
Kovacs Levente 
Voice: +36705071002




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Please test new grids for GTK PCB

2011-03-09 Thread jpka
On Fri, 04 Mar 2011 02:17:35 +0100, Krzysztof Kościuszkiewicz wrote:

> Please check the attached patch - now everything in the model is updated
> correctly.

Works well, thank you! I will post it soon on Launchpad
https://bugs.launchpad.net/pcb/+bug/724154



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user