ghellopcb.c File Reference

Detailed Description

Plug-in for PCB to say "Hello world".

Copyright (C) 2009 by Bert Timmerman <>
Function to show a GTK dialog with a "Hello world" message on the screen.

Compile like this:

gcc -Wall -Ipath/to/pcb/src -Ipath/to/pcb -O2 -shared -lglib-2.0 \ ghellopcb.c -o `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0`

The resulting file should go in $HOME/.pcb/plugins/

Be very strict in compiling this plug-in against the exact pcb sources you compiled/installed the pcb executable (i.e. src/pcb) with.
Usage: gHelloPCB()

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to:
the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition in file ghellopcb.c.

#include <config.h>
#include <gtk/gtk.h>
#include <stdio.h>
#include <math.h>
#include "global.h"
#include "data.h"
#include "hid.h"
#include "misc.h"
#include "create.h"
#include "rtree.h"
#include "undo.h"
#include "set.h"

Include dependency graph for ghellopcb.c:

Go to the source code of this file.


static void on_destroy (GtkWidget *widget, gpointer data)
 Terminate the main loop.
static int ghellopcb (int argc, char **argv)
 Show a GTK dialog with a "Hello world" message on the screen.
void pcb_plugin_init ()


static HID_Action ghellopcb_action_list []

Function Documentation

static int ghellopcb int  argc,
char **  argv

Show a GTK dialog with a "Hello world" message on the screen.

Usage: gHelloPCB()

Definition at line 66 of file ghellopcb.c.

References on_destroy().

Here is the call graph for this function:

static void on_destroy GtkWidget *  widget,
gpointer  data

Terminate the main loop.

Definition at line 55 of file ghellopcb.c.

Referenced by ghellopcb().

Variable Documentation

HID_Action ghellopcb_action_list[] [static]

Initial value:

        {"gHelloPCB", NULL, ghellopcb, "show a GTK dialog with a Hello world message on the screen", NULL}

Definition at line 96 of file ghellopcb.c.

Generated on Tue Aug 17 15:28:06 2010 for pcb-plugins by  doxygen 1.4.6-NO