[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (34c89fa606b512ce5f209c2829b5e769c0ea121c)
The branch, master has been updated
via 34c89fa606b512ce5f209c2829b5e769c0ea121c (commit)
from 2c25ce33e7abfaa4f7710abebd620e70fa0e8cd1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gtk/gtkhid-main.c | 4 ++--
src/hid/gtk/gui-output-events.c | 8 ++------
src/hid/gtk/gui.h | 2 +-
3 files changed, 5 insertions(+), 9 deletions(-)
=================
Commit Messages
=================
commit 34c89fa606b512ce5f209c2829b5e769c0ea121c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Remove emit_changed parameter from ghid_port_ranges_scale.
The one caller which passed TRUE, PCBChanged () also immediately
aftwewards calls ghid_port_ranges_pan(), which will take car of any
changes necessary.
:100644 100644 27ceeb9... 96ff923... M src/hid/gtk/gtkhid-main.c
:100644 100644 527945a... 0fc07f3... M src/hid/gtk/gui-output-events.c
:100644 100644 7c0ffb5... 9bed4d9... M src/hid/gtk/gui.h
=========
Changes
=========
commit 34c89fa606b512ce5f209c2829b5e769c0ea121c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Remove emit_changed parameter from ghid_port_ranges_scale.
The one caller which passed TRUE, PCBChanged () also immediately
aftwewards calls ghid_port_ranges_pan(), which will take car of any
changes necessary.
diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index 27ceeb9..96ff923 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -95,7 +95,7 @@ ghid_zoom_view_abs (Coord center_x, Coord center_y, double new_zoom)
gport->zoom = new_zoom;
pixel_slop = new_zoom;
- ghid_port_ranges_scale (FALSE);
+ ghid_port_ranges_scale ();
gport->view_x0 = MAX (0, SIDE_X (center_x) - xtmp * gport->view_width);
gport->view_y0 = MAX (0, SIDE_Y (center_y) - ytmp * gport->view_height);
@@ -1152,7 +1152,7 @@ PCBChanged (int argc, char **argv, Coord x, Coord y)
if (!gport->pixmap)
return 0;
RouteStylesChanged (0, NULL, 0, 0);
- ghid_port_ranges_scale (TRUE);
+ ghid_port_ranges_scale ();
ghid_port_ranges_pan (0, 0, FALSE);
ghid_zoom_view_fit ();
ghid_port_ranges_changed ();
diff --git a/src/hid/gtk/gui-output-events.c b/src/hid/gtk/gui-output-events.c
index 527945a..0fc07f3 100644
--- a/src/hid/gtk/gui-output-events.c
+++ b/src/hid/gtk/gui-output-events.c
@@ -114,7 +114,7 @@ ghid_port_ranges_pan (gdouble x, gdouble y, gboolean relative)
| overall PCB board size.
*/
void
-ghid_port_ranges_scale (gboolean emit_changed)
+ghid_port_ranges_scale (void)
{
GtkAdjustment *adj;
@@ -135,16 +135,12 @@ ghid_port_ranges_scale (gboolean emit_changed)
adj->page_increment = adj->page_size/10.0;
adj->step_increment = adj->page_size/100.0;
adj->upper = PCB->MaxWidth;
- if (emit_changed)
- gtk_signal_emit_by_name (GTK_OBJECT (adj), "changed");
adj = gtk_range_get_adjustment (GTK_RANGE (ghidgui->v_range));
adj->page_size = gport->view_height;
adj->page_increment = adj->page_size/10.0;
adj->step_increment = adj->page_size/100.0;
adj->upper = PCB->MaxHeight;
- if (emit_changed)
- gtk_signal_emit_by_name (GTK_OBJECT (adj), "changed");
}
@@ -467,7 +463,7 @@ ghid_port_drawing_area_configure_event_cb (GtkWidget * widget,
ghid_drawing_area_configure_hook (out);
}
- ghid_port_ranges_scale (FALSE);
+ ghid_port_ranges_scale ();
ghid_invalidate_all ();
return 0;
}
diff --git a/src/hid/gtk/gui.h b/src/hid/gtk/gui.h
index 7c0ffb5..9bed4d9 100644
--- a/src/hid/gtk/gui.h
+++ b/src/hid/gtk/gui.h
@@ -264,7 +264,7 @@ void ghid_get_pointer (gint *, gint *);
*/
void ghid_port_ranges_changed (void);
gboolean ghid_port_ranges_pan (gdouble x, gdouble y, gboolean relative);
-void ghid_port_ranges_scale (gboolean emit_changed);
+void ghid_port_ranges_scale (void);
void ghid_port_ranges_update_ranges (void);
gboolean ghid_note_event_location (GdkEventButton * ev);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs