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

Re: gEDA-user: Annoying library window open upon every PCB start



   Heres a patch i just learned how to make.
   --- On Sun, 8/2/09, Uwe Hermann <uwe@xxxxxxxxxxxxxx> wrote:

     From: Uwe Hermann <uwe@xxxxxxxxxxxxxx>
     Subject: gEDA-user: Annoying library window open upon every PCB
     start
     To: "gEDA user mailing list" <geda-user@xxxxxxxxxxxxxx>
     Date: Sunday, August 2, 2009, 11:37 PM

   Hi,
   On Fri, Jul 31, 2009 at 11:31:04AM -0700, Josh Jordan wrote:
   >    An unrelated but essential change is to stop the library window
   from
   >    opening every time pcb opens in gtk.
   Yes, I also find it annoying if it opens automatically everytime I
   start
   PCB. However, this should be a user-editable config option and not
   hard-coded either way, IMHO.
   Uwe.
   --
   [1]http://www.hermann-uwe.de  | [2]http://www.holsham-traders..de
   [3]http://www.crazy-hacks.org |
   [4]http://www.unmaintained-free-software.org
   _______________________________________________
   geda-user mailing list
   [5]geda-user@xxxxxxxxxxxxxx
   [6]http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

References

   1. http://www.hermann-uwe.de/
   2. http://www.holsham-traders.de/
   3. http://www.crazy-hacks.org/
   4. http://www.unmaintained-free-software.org/
   5. file://localhost/mc/compose?to=geda-user@xxxxxxxxxxxxxx
   6. http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index cbdd104..f3086ca 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -1741,11 +1741,15 @@ LayerGroupsChanged (int argc, char **argv, int x, int y)
 }
 
 /* ---------------------------------------------------------------------- */
+int stop_annoying_library = 1;
 
 static int
 LibraryChanged (int argc, char **argv, int x, int y)
 {
-  ghid_library_window_show (&ghid_port, FALSE);
+  if(stop_annoying_library)
+    stop_annoying_library = 0;
+  else
+    ghid_library_window_show (&ghid_port, FALSE);
   return 0;
 }
 
@@ -2413,6 +2417,7 @@ Open the DRC violations window.
 
 %end-doc */
 
+
 static int
 DoWindows (int argc, char **argv, int x, int y)
 {

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