summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 04:05:41 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 04:06:59 -0300
commit1776e011bad42b24905d5515f975bbd78641bff2 (patch)
tree57a9cd487d14d7cd2ac181d9c5b62ccdce966ab9 /gui/gui.c
parentaa7e2782b14e596e6ccb373e55bdd18eff3cf4c4 (diff)
downloadeeshow-1776e011bad42b24905d5515f975bbd78641bff2.tar.gz
eeshow-1776e011bad42b24905d5515f975bbd78641bff2.tar.bz2
eeshow-1776e011bad42b24905d5515f975bbd78641bff2.zip
eeshow/gui/: experimental support for page layout; option -P pl-file.kicad_wks
Unlike libraries and schematics, page layouts are not (yet) tracked through revision history.
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/gui.c b/gui/gui.c
index d2d220a..f7f2038 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -30,6 +30,7 @@
#include "misc/util.h"
#include "misc/diag.h"
#include "file/git-hist.h"
+#include "kicad/pl.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
#include "kicad/delta.h"
@@ -381,12 +382,14 @@ static void get_history(struct gui_ctx *ctx, const char *sch_name, int limit)
/* ----- Initialization ---------------------------------------------------- */
-int gui(unsigned n_args, char **args, bool recurse, int limit)
+int gui(unsigned n_args, char **args, bool recurse, int limit,
+ struct pl_ctx *pl)
{
GtkWidget *window;
char *title;
struct gui_ctx ctx = {
.zoom = 4, /* scale by 1 / 16 */
+ .pl = pl, // @@@
.hist = NULL,
.vcs_hist = NULL,
.showing_history= 0,