Peter Clifton [Wed, 3 Oct 2007 19:57:57 +0000 (3 20:57 +0100)]
Remove the unused states for attrib placement: DRAWATTRIB and ENDATTRIB.
Also removes the functions:
o_attrib_{start|end|rubberattrib} which are no longer used after this.
Peter Clifton [Wed, 3 Oct 2007 19:57:57 +0000 (3 20:57 +0100)]
Remove the unused function o_erasebounding().
Peter Clifton [Wed, 3 Oct 2007 19:57:41 +0000 (3 20:57 +0100)]
Avoid accessing (GList)->{next|priv} directly.
Instead use g_list_{next|previous}, allowing us to catch errors where
changing from gEDA structures which had their own next and prev pointers.
Werner Hoch [Sat, 15 Sep 2007 08:45:44 +0000 (15 10:45 +0200)]
fixed symbols/linear/lm7912-1.sym
changed pinnumbers and added footprint and some attributes
bumped symversion to 1.0
Michele Petrecca [Wed, 12 Sep 2007 02:49:03 +0000 (11 22:49 -0400)]
Updated Italian translation.
Ales Hvezda [Wed, 12 Sep 2007 02:37:55 +0000 (11 22:37 -0400)]
Fixed a whole bunch of gtk+ 2.4.x and misc issues building on an older box
This is a fix for (Patch#)
1789290 libgeda-1.2.0 fprintf which supplied a
similar patch which fixes the issues in libgeda/src/s_clib.c and
libgeda/src/s_textbuffer.c. In the future, all releases will be built with
gtk+ 2.4.x so that these sorts of problems do not get released.
Peter Clifton [Sun, 9 Sep 2007 13:14:44 +0000 (9 14:14 +0100)]
Avoid un-necessary usage of global_window_current in g_keys_execute()
Peter Clifton [Sun, 9 Sep 2007 13:14:42 +0000 (9 14:14 +0100)]
Avoid use of global_window_current in gschem/src/x_compselect.c
Peter Clifton [Sun, 9 Sep 2007 13:04:21 +0000 (9 14:04 +0100)]
Use a GObject constructor, not instance_init for compselect the dialog.
Using a GObject constructor allows access to the construct time properties
of the object during initialisation, whereas at execution of the GType
instance_init function, those properties have not been set.
Peter Clifton [Sun, 9 Sep 2007 11:51:00 +0000 (9 12:51 +0100)]
Remove unused TOPLEVEL variables display_{width,height}
Peter Clifton [Sat, 8 Sep 2007 23:54:12 +0000 (9 00:54 +0100)]
Fix grid snapping in "Edit->Mirror Mode"
Where the user selectes Edit->Mirror Mode, then clicks a point about which
to mirror, the snap operation on the mouse coordinates was not taking place
until after the mirror. Bug was introduced with noscreen changes.
Peter Clifton [Sat, 8 Sep 2007 23:18:34 +0000 (9 00:18 +0100)]
Remove the globally exported variable_set_func.
Only gattrib provided a non-NULL export of this symbol, and such imports
into libgeda prevent libgeda being dynamically linked on some platforms.
To better match the other tools in the suite, gattrib's i_vars_set() and
i_window_vars_set() functions were combined into a single i_vars_set().
Peter Clifton [Sat, 8 Sep 2007 23:01:14 +0000 (9 00:01 +0100)]
Remove unused extern variables from libgeda, gnetlist and utils.
Peter Clifton [Sat, 8 Sep 2007 22:26:47 +0000 (8 23:26 +0100)]
Use o_translate_world() to tidy up o_complex_translate_world()
Removed o_complex_world_translate_toplevel(), and changed all useage of
o_complex_translate_world() for generic lists of objects to instead use
the new o_list_translate_world(). o_glist_translate_world() is also added.
Peter Clifton [Sat, 8 Sep 2007 22:24:33 +0000 (8 23:24 +0100)]
Add new function o_translate_world() which will translate any object.
Peter Clifton [Sat, 8 Sep 2007 22:24:27 +0000 (8 23:24 +0100)]
Rename o_complex_world_translate() to o_complex_translate_world()
The function name now matches the pattern for other objects types.
Peter Clifton [Sat, 8 Sep 2007 14:49:02 +0000 (8 15:49 +0100)]
Remove unused function o_attrib_search_special().
Peter Clifton [Sat, 8 Sep 2007 14:26:33 +0000 (8 15:26 +0100)]
Remove unused function o_attrib_count_toplevel().
Peter Clifton [Sat, 8 Sep 2007 14:26:32 +0000 (8 15:26 +0100)]
Remove empty functions o_attrib_{edit,select_draw,unselect_draw}().
Peter Clifton [Sat, 8 Sep 2007 14:26:31 +0000 (8 15:26 +0100)]
Remove unused function o_text_input().
Peter Clifton [Sat, 8 Sep 2007 12:13:38 +0000 (8 13:13 +0100)]
Remove auto-uref code which was #ifdef'd out. its no longer used.
Peter Clifton [Fri, 7 Sep 2007 23:30:49 +0000 (8 00:30 +0100)]
Remove unused OBJECT *object_selected from PAGE structure.
Peter Clifton [Fri, 7 Sep 2007 23:17:05 +0000 (8 00:17 +0100)]
Remove o_complex_translate{2,_selection,_display_selection}()
o_complex_translate{_selection,_display_selection}() were unused,
o_complex_translate2() simply wrapped o_complex_translate_display().
Peter Clifton [Fri, 7 Sep 2007 23:17:03 +0000 (8 00:17 +0100)]
Removed unnecessary angle parameter to o_complex_rotate_world(), fix bug.
Fix rotation code to support angles other than 90 degrees. All current
users actually pass 90 degrees so this bug had no visible effect.
Peter Clifton [Fri, 7 Sep 2007 22:58:51 +0000 (7 23:58 +0100)]
Removed unused angle parameter to o_complex_rotate_lowlevel().
Peter Clifton [Fri, 7 Sep 2007 22:57:38 +0000 (7 23:57 +0100)]
Removed unused angle parameter to o_text_rotate_world().
From an old unmerged patch by Patrick Bernaud.
Peter Clifton [Thu, 6 Sep 2007 23:20:29 +0000 (7 00:20 +0100)]
Avoid use of gtk_cell_renderer_stop_editing(), which is GTK 2.6+
Instead emit the "editing-canceled" signal directly if necessary.
Peter Clifton [Wed, 5 Sep 2007 17:47:23 +0000 (5 18:47 +0100)]
Simplify test to call gdk_init() in o_read_picture()
Avoids testing a GtkWidget pointer in TOPLEVEL variable setup by gschem or
gattrib. Instead, just ensure we call gdk_init() at least once. If gschem
or gattrib already did, its not a problem as repeated calls aren't harmful.
Peter Clifton [Wed, 5 Sep 2007 17:47:23 +0000 (5 18:47 +0100)]
Tidy o_picture_copy(), avoiding use of some TOPLEVEL variables
Peter Clifton [Wed, 5 Sep 2007 17:39:55 +0000 (5 18:39 +0100)]
Fix loading of embedded images.
Various bugs in the base64 decoding function were preventing the correct
decoding of the embedded image. In addition, it was possible for this code
to access invalid memory - possibly leading to a crash.
Additionally removes extra \n inserted between lines of the base64 input.
Peter Clifton [Wed, 5 Sep 2007 13:38:13 +0000 (5 14:38 +0100)]
Remove un-necessary variable re-initialisations in x_window_setup().
The initialisations removed are the same as those in s_toplevel_new().
Peter Clifton [Wed, 5 Sep 2007 13:38:02 +0000 (5 14:38 +0100)]
Remove the un-needed TOPLEVEL variable: DONT_RECALC, and its usage.
Peter Clifton [Wed, 5 Sep 2007 13:37:56 +0000 (5 14:37 +0100)]
Remove the redundant TOPLEVEL variable: DONT_RESIZE
Peter Clifton [Wed, 5 Sep 2007 13:37:49 +0000 (5 14:37 +0100)]
Remove the redundant TOPLEVEL variable: DONT_DRAW_CONN
Peter Clifton [Wed, 5 Sep 2007 13:37:41 +0000 (5 14:37 +0100)]
Remove unused variables from the TOPLEVEL structure
Peter Clifton [Wed, 5 Sep 2007 13:34:11 +0000 (5 14:34 +0100)]
Use o_attrib_print() in libgeda/src/s_basic.c avoiding code duplication.
Printed output will be slightly different, but this is just debug code.
Peter Clifton [Wed, 5 Sep 2007 13:19:25 +0000 (5 14:19 +0100)]
Remove unused function o_attrib_reattach()
Peter Clifton [Wed, 5 Sep 2007 13:19:19 +0000 (5 14:19 +0100)]
Remove unused functions o_attrib_copy() and o_attrib_copy_all().
Peter Clifton [Wed, 5 Sep 2007 13:19:05 +0000 (5 14:19 +0100)]
Remove unused function o_attrib_test_detach()
Peter Clifton [Wed, 5 Sep 2007 13:19:00 +0000 (5 14:19 +0100)]
Remove unused, empty function o_attrib_detach_all()
Peter Clifton [Wed, 5 Sep 2007 13:18:50 +0000 (5 14:18 +0100)]
Remove unused function o_attrib_print_reverse()
Peter Clifton [Wed, 5 Sep 2007 12:46:57 +0000 (5 13:46 +0100)]
Fix memory corruption and possible segfault copying attributes
If an object (but not all its attributes) was selected and copied, dangling
pointers were left in the un-copied attributes. A subsequent copy operation
containing those missed attributes would attempt to reattach them to the
copy of their parent. If this had been deleted in the mean time, memory
corruption and a possible segfault would occur.
Consolidates the duplicated code which sets the ATTRIB property "copied_to"
into a helper function, o_attrib_list_copied_to(). This is also used to
clean up after copy operations.
Peter Clifton [Mon, 3 Sep 2007 15:48:32 +0000 (3 16:48 +0100)]
Move o_picture_set_pixbuf() from libgeda to gschem
Peter Clifton [Mon, 3 Sep 2007 15:48:09 +0000 (3 16:48 +0100)]
Remove unused TOPLEVEL variable REMOVING_SEL.
Peter Clifton [Mon, 3 Sep 2007 15:47:22 +0000 (3 16:47 +0100)]
Remove unused dialog pointers from TOPLEVEL
Peter Clifton [Mon, 3 Sep 2007 15:46:55 +0000 (3 16:46 +0100)]
Remove unneeded functions in libgeda/o_attrib.c
Removes:
o_attrib_set_show(TOPLEVEL *toplevel, int flag)
o_attrib_set_visible(TOPLEVEL *toplevel, int flag)
Peter Clifton [Mon, 3 Sep 2007 15:46:20 +0000 (3 16:46 +0100)]
Remove un-needed redraw in o_scale() and generally tidied the function up
Peter Clifton [Mon, 3 Sep 2007 15:46:09 +0000 (3 16:46 +0100)]
Remove ineffective redraw in o_complex_world_translate()
Peter Clifton [Mon, 3 Sep 2007 15:41:28 +0000 (3 16:41 +0100)]
Removes the linking between TOPLEVELs, instead uses a GList in gschem
Peter Clifton [Mon, 3 Sep 2007 15:38:53 +0000 (3 16:38 +0100)]
libgeda: Rename all w_current variables to toplevel
Peter Clifton [Mon, 3 Sep 2007 14:32:27 +0000 (3 15:32 +0100)]
Remove gattrib's use of GTK widget pointers stored in TOPLEVEL.
Peter Clifton [Mon, 3 Sep 2007 14:32:27 +0000 (3 15:32 +0100)]
Remove gattrib's use of TOPLEVEL rc-variables defined in gschem.
Peter Clifton [Mon, 3 Sep 2007 14:32:27 +0000 (3 15:32 +0100)]
Remove some unused / ineffective code in gattrib.
Peter Clifton [Mon, 3 Sep 2007 14:32:27 +0000 (3 15:32 +0100)]
Make use of o_select_unselect_all() to reduce code duplication in gschem
Peter Clifton [Mon, 3 Sep 2007 14:32:27 +0000 (3 15:32 +0100)]
Remove o_unselect_all() function, instead use o_select_unselect_all()
Peter Clifton [Mon, 3 Sep 2007 14:32:25 +0000 (3 15:32 +0100)]
Remove unused GType instance_init functions in gschem.
Peter Clifton [Mon, 3 Sep 2007 14:28:33 +0000 (3 15:28 +0100)]
Remove unused header file gschem/include/x_event.h
Peter Clifton [Mon, 3 Sep 2007 12:49:51 +0000 (3 13:49 +0100)]
x_compselect.c: Avoid using GValue to set properties where unnecessary
Peter Clifton [Mon, 3 Sep 2007 11:17:25 +0000 (3 12:17 +0100)]
Avoid using s_hierarchy_up() for traversal when we know where we're going.
When trying to reach a specific parent we've come from before, we can use
s_page_goto() and avoid the search through the page list.
Peter Clifton [Mon, 3 Sep 2007 11:17:19 +0000 (3 12:17 +0100)]
Fix indenting / whitespace in gschem/src/o_misc.c
Peter Clifton [Mon, 3 Sep 2007 11:15:43 +0000 (3 12:15 +0100)]
Replace the linked list of PAGEs with a GedaList (typecast to GedaPageList)
Ales Hvezda [Mon, 3 Sep 2007 02:48:59 +0000 (2 22:48 -0400)]
Last minute updates to the READMEs for all projects
Cherry picked from stable-1.2 branch, since these changes apply to master
too.
(cherry picked from commit
88fcb8d1bcdaa1436572d6a0ebe86f4df242a8d6)
Ales Hvezda [Mon, 3 Sep 2007 01:11:05 +0000 (2 21:11 -0400)]
Updated po/pot files by running make update-po
Ales Hvezda [Mon, 3 Sep 2007 00:54:49 +0000 (2 20:54 -0400)]
Fix for Bug#
1782032: Blank attibute name when attribute value starts with " "
In order to fix this bug, we needed to validate the input attribute when:
1) input an attribute using the single attribute editor,
2) Add an attribute in the multi-attribute editor
3) Modify the name or value of an attribute in the multi-attribute editor
An attribute is not valid if the name or value are empty, name ends with a
space, and/or value starts with a space. o_attrib_get_name_value does
this validation throughout gaf.
Ales Hvezda [Sun, 2 Sep 2007 22:52:50 +0000 (2 18:52 -0400)]
Moved refresh button in component select dialog box
The refresh button was along the very bottom of the component select
dialog box at the same level as Close, Apply, and OK. The refresh
operation is not nearly as important or first class as these actions.
The refresh button was moved to the filter area. Whether this change
sticks depends on what users think of the new location (I'm quite willing
to move it elsewhere if there is a better spot).
Ales Hvezda [Sun, 2 Sep 2007 22:21:24 +0000 (2 18:21 -0400)]
Added standard Control-z and Control-y keymappings for Undo and Redo
Ales Hvezda [Sun, 2 Sep 2007 20:50:29 +0000 (2 16:50 -0400)]
Fix for Bug#
1776547: graphical versus source
The usage described in Bug#
1776547 is pretty unique, but it might be handy
to support in general. The recursive source= and graphical= behavior is
a unexpected side effect of the traversal of graphical symbols/components
(
552e06e921e4b6eb758b9483d1913c39b3fef5f5). The fix is to explicitly
check for the graphical= attribute and if it is found to not further
traverse the hierarchy. Regression tests were added so this behavior
doesn't change in the future.
Ales Hvezda [Mon, 20 Aug 2007 03:03:54 +0000 (19 23:03 -0400)]
Another set of po files changed via make distcheck
Ales Hvezda [Mon, 20 Aug 2007 02:40:19 +0000 (19 22:40 -0400)]
Update ChangeLogs using: ./update-changelogs.sh 1.0-
20070526..master
Ales Hvezda [Sat, 18 Aug 2007 20:41:24 +0000 (18 16:41 -0400)]
Added undo-panzoom keyword to control if pan/zoom cmds are undoable
The default is to still store the pan/zoom info when panning or zooming,
but now the user has a choice.
Ales Hvezda [Sat, 18 Aug 2007 20:17:45 +0000 (18 16:17 -0400)]
Toplevel gschem menu tweaks
Added ... to some entries that open up dialog boxes or other windows
Changed the ordering of Hotkeys and About in the Help menu
Removed obsolete comment about the help menu being right justified
Ales Hvezda [Sat, 18 Aug 2007 20:14:30 +0000 (18 16:14 -0400)]
Bumped versions to 1.1.2/
20070818/30:2:0 for the next development snapshot
Ales Hvezda [Sat, 18 Aug 2007 19:46:17 +0000 (18 15:46 -0400)]
Another attempt to commit wiki snapshot updates
Ales Hvezda [Sat, 18 Aug 2007 19:36:44 +0000 (18 15:36 -0400)]
Updated wiki snapshot from the live wiki
Ales Hvezda [Sat, 18 Aug 2007 18:21:53 +0000 (18 14:21 -0400)]
Added dist-license and use-license to the attribute-name keyword
Peter Clifton [Sat, 18 Aug 2007 18:20:46 +0000 (18 14:20 -0400)]
Fix memory leak where GLists weren't free'd properly after use.
Ales Hvezda [Tue, 14 Aug 2007 12:01:18 +0000 (14 08:01 -0400)]
Updated po files using make update-po
Ales Hvezda [Tue, 14 Aug 2007 11:46:06 +0000 (14 07:46 -0400)]
Moved 3 rc promotion keywords from gschem into libgeda (fix for bug#
1748143)
All the promotion keywords were moved from gschem into libgeda to fix:
[
1748143 ] gschlas causes duplicate prompted attributes The primary
cause of this bug was that the promotion variables within TOPLEVEL were
not being setup by gschlas and so duplicate refdes attributes were
showing up in the schematic. The three rc keywords that were moved are:
(attribute-promotion ... )
(promote-invisible ... )
(keep-invisible ... )
Peter Clifton [Sun, 12 Aug 2007 00:57:17 +0000 (12 01:57 +0100)]
Fix component selector filtering after using the "Refresh" button.
Peter Clifton [Sun, 12 Aug 2007 00:57:00 +0000 (12 01:57 +0100)]
Make updates faster when typing in the component selector filter.
The filtering process doesn't happen until after the user pauses typing.
Reducing the update delay from 300ms to 200ms makes this feel better.
Peter Clifton [Sun, 12 Aug 2007 00:56:58 +0000 (12 01:56 +0100)]
Fix crash closing component selector window quickly after filtering.
Typing in the filter box adds new update timeouts (300ms) with each
keystroke. If typing fast there could be more than one timer active at
once, however only the last added is cancelled when closing the dialog.
Timers which ran after the dialog closed could cause a segfault.
We now cancel any pending timeout before adding a new one.
Ales Hvezda [Sat, 11 Aug 2007 02:00:58 +0000 (10 22:00 -0400)]
Added some net midpoint connections for testing purposes
Ales Hvezda [Sat, 11 Aug 2007 01:57:30 +0000 (10 21:57 -0400)]
Fixed a nasty bug that was causing gsymcheck's make check to randomly fail
Peter Clifton [Thu, 9 Aug 2007 11:36:17 +0000 (9 12:36 +0100)]
Remove old prototypes from various prototype.h where no function exists.
Peter Clifton [Fri, 10 Aug 2007 23:52:25 +0000 (11 00:52 +0100)]
Peter Clifton [Fri, 10 Aug 2007 21:52:18 +0000 (10 22:52 +0100)]
Avoid using s_hierarchy_up() for traversal when we know where we're going.
When trying to reach a specific parent we've come from before, we can use
s_page_goto() and avoid the search through the page list.
Peter Clifton [Fri, 10 Aug 2007 21:45:48 +0000 (10 22:45 +0100)]
Fix indenting / whitespace in gschem/src/o_misc.c
Peter Clifton [Fri, 10 Aug 2007 20:30:24 +0000 (10 21:30 +0100)]
Add page list "changed" signal handler to gschem's page manager dialog.
Peter Clifton [Fri, 10 Aug 2007 20:26:10 +0000 (10 21:26 +0100)]
Replace the linked list of PAGEs with a GedaList (typecast to GedaPageList)
Peter Clifton [Fri, 10 Aug 2007 00:32:27 +0000 (10 01:32 +0100)]
Add different select box behaviour for left-right and right-left drags
Selections boxes dragged from...
left to right: select elements entirely contained within the box.
right to left: select any element partially inside the box.
Stuart Brorson [Sun, 5 Aug 2007 09:30:58 +0000 (5 05:30 -0400)]
Updated files to fix problems noted by Chitlesh.
Fixed files to fix following problems with Fedora:
* DOS style line endings on a couple lines (WTF???)
* Removed absolute paths present in example file.
Peter Clifton [Sun, 5 Aug 2007 21:36:56 +0000 (5 22:36 +0100)]
Alter guile 1.6 compat tests to work with older autoconf versions
Don't use AC_DEFINE to define function like macros, instead use
AC_CHECK_DECLS to set a HAVE_DECL_..., then use AH_VERBATIM to
insert a test which defines a replacement if necessary.
Peter Clifton [Thu, 2 Aug 2007 21:09:52 +0000 (2 22:09 +0100)]
Fix configure checks enabling guile 1.6.x compatability routines.
Ivan Stankovic [Thu, 2 Aug 2007 12:27:15 +0000 (2 13:27 +0100)]
gattrib: remove unused code from x_gtksheet.c
Peter Clifton [Thu, 2 Aug 2007 12:17:58 +0000 (2 13:17 +0100)]
Fix to allow automatic loading of untitled backup files
Peter Clifton [Thu, 2 Aug 2007 12:16:22 +0000 (2 13:16 +0100)]
Fix drawing artifact when dragging a net / bus to zero length.
The grip dragging code cancels editing if you resize to a zero length line
segment. Don't attempt to undraw the (zero length) rubberbanded line after
the coordinates have been invalidated.
Peter Clifton [Thu, 2 Aug 2007 12:07:30 +0000 (2 13:07 +0100)]
Refactor code in o_grips.c to reduce duplication
Also make many whitespace fixes. The code paths should remain the same.
Peter Clifton [Thu, 2 Aug 2007 12:07:23 +0000 (2 13:07 +0100)]
Remove old code commented out in o_net_consolidate_segments()
Peter Clifton [Thu, 2 Aug 2007 12:06:09 +0000 (2 13:06 +0100)]
Fix drawing of cues after moving a single line segment
Peter Clifton [Wed, 1 Aug 2007 21:58:05 +0000 (1 22:58 +0100)]
Alter grammar in gschem's "Unsaved changes" dialog box.