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

2011-03-21 Thread jpka
On Thu, 10 Mar 2011 09:16:08 +0100, Krzysztof Kościuszkiewicz wrote: 2011/3/10 jpka jo...@kvidex.ru: 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? You

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

2011-03-10 Thread Krzysztof Kościuszkiewicz
2011/3/10 jpka jo...@kvidex.ru: 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? You can pass whatever you want (if it is known at callback registration time)

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

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:

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)

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?

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

2011-03-03 Thread Krzysztof Kościuszkiewicz
2011/3/3 jpka jo...@kvidex.ru: There's no need to write a callback; default one will refresh the GtkTreeView widget to include your changes to the model. Please have a look at the attached patch. Thanks for help! Both codes work well in case of initial drawing radiobuttons instead of

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

2011-03-03 Thread Krzysztof Kościuszkiewicz
Please check the attached patch - now everything in the model is updated correctly. -- Krzysztof Kościuszkiewicz Simplicity is the ultimate sophistication -- Leonardo da Vinci From 9e58163f910c9e24ecd6400b2dc81e158c86152b Mon Sep 17 00:00:00 2001 From: Krzysztof Kosciuszkiewicz

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

2011-03-02 Thread Felix Ruoff
Am 28.02.2011 11:48, schrieb jpka: * the Yes is not updated also when grid changes via keypress while preferences dialog is active * maybe Yes as string column can be replaced with gboolean and a GtkCellRendererToggle? Or a custom renderer if really needed. Or a selection could

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

2011-03-02 Thread Krzysztof Kościuszkiewicz
On Mon, Feb 28, 2011 at 10:48:50AM +, jpka wrote: Krzysztof Kościuszkiewicz wrote: * to have GtkTreeView updated you need to emit row-changed signal, like: gtk_tree_model_row_changed (GTK_TREE_MODEL (model), path, iter); I find it, but unfortunately i can't write callback

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

2011-02-28 Thread jpka
https://bugs.launchpad.net/pcb/+bug/724154 Hi! Thanks for your feedback. I prepare and post newgrids.pcb-git-199z.v2.patch on Launchpad, i make some bugfixes: Felix Ruoff wrote: Some comments (most of them for usability): - You often mention in the tooltips the shortcut '^M'. At my system

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

2011-02-28 Thread Steven Michalske
Steven Michalske wrote: Did not apply cleanly against git head at 359a02cfe25e32aec7d2985c8f368fbfdcd954fa Sorry i can't get it, but i check patch for errors on latest git tree available on time of post. (p.s. i'm too novice in git, can you give me exactly commands to set git head to your

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

2011-02-24 Thread Colin D Bennett
On Thu, 24 Feb 2011 07:17:33 + (UTC) jpka jo...@kvidex.ru wrote: Hi! I prepare patch for new grid management, if you're interested please test it: https://bugs.launchpad.net/pcb/+bug/724154 The new grid support is fantastic. I love it. I did some editing of the UI text that you might

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

2011-02-24 Thread Felix Ruoff
Am 24.02.2011 08:17, schrieb jpka: I prepare patch for new grid management, if you're interested please test it: https://bugs.launchpad.net/pcb/+bug/724154 Thanks Hi, I have had a short test of your powerfull patch. I am not sure, if I shoud post my comments to the bug or the mailing list - I

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

2011-02-24 Thread Colin D Bennett
On Thu, 24 Feb 2011 22:14:42 +0100 Felix Ruoff fe...@posaunenmission.de wrote: Am 24.02.2011 08:17, schrieb jpka: I prepare patch for new grid management, if you're interested please test it: https://bugs.launchpad.net/pcb/+bug/724154 Thanks Hi, I have had a short test of your

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

2011-02-24 Thread Kai-Martin Knaak
Colin D Bennett wrote: (If you don't understand my objection to using a bunch of colors for grid points, consider that there are only so many useful colors to use; in my current color scheme I use red, blue, yellow, green, and white for primary copper layer, secondary copper layer, selected