summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-29 22:14:48 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-29 22:22:03 -0300
commitafc999c766661b50d9f3070864a3d9c3c2c9c500 (patch)
tree29e432f640b967773d3a69e3b34c61e63bf6c77c /gui/sheet.c
parent9fa6e29c6bbd1cb2f1c3b988267c12522baae08a (diff)
downloadeeshow-afc999c766661b50d9f3070864a3d9c3c2c9c500.tar.gz
eeshow-afc999c766661b50d9f3070864a3d9c3c2c9c500.tar.bz2
eeshow-afc999c766661b50d9f3070864a3d9c3c2c9c500.zip
gui/common.h (show_extra): change from bool to enum gfx_extra (mask)
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index a09efec..96b911d 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -16,6 +16,7 @@
#include <gtk/gtk.h>
+#include "gfx/gfx.h"
#include "file/git-hist.h"
#include "kicad/sch.h"
#include "kicad/delta.h"
@@ -558,7 +559,7 @@ static void sheet_key(void *user, int x, int y, int keyval)
break;
case GDK_KEY_e:
- show_extra = !show_extra;
+ show_extra ^= gfx_pin_type;
redraw(gui);
break;