All pastes #74416 Raw Edit

Something

public text v1 · immutable
#74416 ·published 2006-06-28 23:44 UTC
rendered paste body
Main.c:

/* Created by Anjuta version 1.2.4a */
/*	This file will not be overwritten */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gtk/gtk.h>
#include <glade/glade.h>
#include <glib.h>
#include <stdlib.h>

#include "support.h"
#include "functions.h"

int main (int argc, char *argv[])
{
	GladeXML *xml;
	
	gtk_init(&argc,&argv);
	
	xml = glade_xml_new ("../Glade/quikcrypt.glade", NULL, NULL);
	if(!xml) {
		g_error("Main GUI loading failed");
	}

	glade_xml_signal_autoconnect (xml);

	gtk_main ();
	return 0;
}

Functions.h:
GLADE_CB void on_quit_activate(GtkMenuItem *menuitem,
                               gpointer user_data);

Functions.c:
#include <glade/glade.h>
#include <glib.h>
#include <gtk/gtk.h>

#include "support.h"
#include "functions.h"

GLADE_CB void on_quit_activate(GtkMenuItem *menuitem,
                               gpointer user_data) {
	gtk_main_quit();
}