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

gEDA-cvs: pcb.git: branch: master updated (2deda48c6b9fad996877d708a3f165f2eedd53d3)



The branch, master has been updated
       via  2deda48c6b9fad996877d708a3f165f2eedd53d3 (commit)
      from  609fa1f28c11757e54e0454f247259951c3b9797 (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/gui-drc-window.c |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit 2deda48c6b9fad996877d708a3f165f2eedd53d3
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    GTK HID: Add "Refresh" button to DRC window to re-run the DRC.
    
    Allows the user to more quickly get an updated view of their
    progress fixing design rule violations.

:100644 100644 c0ec649... fa2ec86... M	src/hid/gtk/gui-drc-window.c

=========
 Changes
=========

commit 2deda48c6b9fad996877d708a3f165f2eedd53d3
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    GTK HID: Add "Refresh" button to DRC window to re-run the DRC.
    
    Allows the user to more quickly get an updated view of their
    progress fixing design rule violations.

diff --git a/src/hid/gtk/gui-drc-window.c b/src/hid/gtk/gui-drc-window.c
index c0ec649..fa2ec86 100644
--- a/src/hid/gtk/gui-drc-window.c
+++ b/src/hid/gtk/gui-drc-window.c
@@ -72,6 +72,12 @@ drc_close_cb (gpointer data)
 }
 
 static void
+drc_refresh_cb (gpointer data)
+{
+  hid_actionl ("DRC", NULL);
+}
+
+static void
 drc_destroy_cb (GtkWidget * widget, gpointer data)
 {
   drc_window = NULL;
@@ -894,8 +900,9 @@ ghid_drc_window_show (gboolean raise)
 			       ghidgui->drc_window_height);
 
   vbox = gtk_vbox_new (FALSE, 0);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
   gtk_container_add (GTK_CONTAINER (drc_window), vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
+  gtk_box_set_spacing (GTK_BOX (vbox), 6);
 
   drc_list_model = gtk_list_store_new (NUM_DRC_COLUMNS,
 				       G_TYPE_INT,      /* DRC_VIOLATION_NUM_COL */
@@ -936,6 +943,14 @@ ghid_drc_window_show (gboolean raise)
   hbox = gtk_hbutton_box_new ();
   gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_END);
   gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+
+  gtk_box_set_spacing (GTK_BOX (hbox), 6);
+
+  button = gtk_button_new_from_stock (GTK_STOCK_REFRESH);
+  g_signal_connect (G_OBJECT (button), "clicked",
+		    G_CALLBACK (drc_refresh_cb), NULL);
+  gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
+
   button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
   g_signal_connect (G_OBJECT (button), "clicked",
 		    G_CALLBACK (drc_close_cb), NULL);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs