Commit e8e43456 authored by Johannes Schmid's avatar Johannes Schmid Committed by Johannes Schmid

Remove gnome project template as it just contains deprecated libraries

2009-02-15  Johannes Schmid  <jhs@gnome.org>

        * plugins/project-wizard/templates/Makefile.am:
        * plugins/project-wizard/templates/gnome.wiz:
        * plugins/project-wizard/templates/gnome/.cvsignore:
        * plugins/project-wizard/templates/gnome/Makefile.am:
        * plugins/project-wizard/templates/gnome/po/.cvsignore:
        * plugins/project-wizard/templates/gnome/po/Makefile.am:
        * plugins/project-wizard/templates/gnome/po/POTFILES.in:
        * plugins/project-wizard/templates/gnome/src/.cvsignore:
        * plugins/project-wizard/templates/gnome/src/Makefile.am:
        * plugins/project-wizard/templates/gnome/src/Makefile.am.tpl:
        * plugins/project-wizard/templates/gnome/src/callbacks.c:
        * plugins/project-wizard/templates/gnome/src/callbacks.h:
        * plugins/project-wizard/templates/gnome/src/main.c:
        * plugins/project-wizard/templates/gnome/src/project.glade:
        Remove gnome project template as it just contains deprecated
        libraries


svn path=/trunk/; revision=4744
parent 4e22c0be
2009-02-15 Johannes Schmid <jhs@gnome.org>
* plugins/project-wizard/templates/Makefile.am:
* plugins/project-wizard/templates/gnome.wiz:
* plugins/project-wizard/templates/gnome/.cvsignore:
* plugins/project-wizard/templates/gnome/Makefile.am:
* plugins/project-wizard/templates/gnome/po/.cvsignore:
* plugins/project-wizard/templates/gnome/po/Makefile.am:
* plugins/project-wizard/templates/gnome/po/POTFILES.in:
* plugins/project-wizard/templates/gnome/src/.cvsignore:
* plugins/project-wizard/templates/gnome/src/Makefile.am:
* plugins/project-wizard/templates/gnome/src/Makefile.am.tpl:
* plugins/project-wizard/templates/gnome/src/callbacks.c:
* plugins/project-wizard/templates/gnome/src/callbacks.h:
* plugins/project-wizard/templates/gnome/src/main.c:
* plugins/project-wizard/templates/gnome/src/project.glade:
Remove gnome project template as it just contains deprecated
libraries
2009-02-14 James Liggett <jrliggett@cox.net>
* plugins/subversion/anjuta-subversion.plugin.in:
SUBDIRS = minimal terminal cpp gtk anjuta-plugin anjuta-plugin-vala gnome \
SUBDIRS = minimal terminal cpp gtk anjuta-plugin anjuta-plugin-vala \
gtkmm wxwin xlib xlib-dock gcj java \
python mkfile sdl licenses gnome-applet m4
python mkfile sdl licenses m4
wizard_filesdir = $(anjuta_data_dir)/project
wizard_files_DATA = \
......@@ -17,7 +17,6 @@ wizard_files_DATA = \
anjuta-plugin.wiz \
anjuta-plugin-vala.wiz \
anjuta-plugin-logo.png \
gnome.wiz \
gnome-logo.png \
gtkmm.wiz \
gtkmm-logo.png \
......
<project-wizard>
<_name>GNOME</_name>
<_description>A generic GNOME project</_description>
<icon>gnome-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
<required-program>autoconf</required-program>
<required-program>make</required-program>
<required-package>libgnome-2.0 >= 2.14</required-package>
<required-package>libgnomeui-2.0 >= 2.14</required-package>
<required-package>libglade-2.0 >= 2.6.0</required-package>
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
<property type="string" name="Name" _label="Project Name:" _description="project name" default="gnome-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
</page>
<page name="options" _label="Project options" _description="Options for project build system">
<property type="directory" name="Destination" _label="Destination:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
<property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
<item name="GPL" _label="General Public License (GPL)"/>
<item name="LGPL" _label="Lesser General Public License (LGPL)"/>
<item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
<item name="None" _label="No license"/>
</property>
<property type="hidden" name="NameUpper" default="[+(string-upcase (get "Name"))+]"/>
<property type="hidden" name="NameLower" default="[+(string-downcase (get "Name"))+]"/>
<property type="hidden" name="NameCUpper" default="[+(string->c-name! (string-substitute (string-upcase (get "Name")) " " "_"))+]"/>
<property type="hidden" name="NameCLower" default="[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]"/>
<property type="hidden" name="NameHLower" default="[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]"/>
<property type="hidden" name="HavePackage" default="1"/>
<property type="hidden" name="PackageModule1" default="libgnome-2.0 >= 2.14 libgnomeui-2.0 >= 2.14 libglade-2.0 >= 2.6.0"/>
<property type="boolean" name="HaveLangCPP" _label="Add C++ support:" _description="Adds C++ support to the project so that C++ source files can be built" default="0"/>
<property type="boolean" name="HaveGlade" _label="Use libglade for the UI" _description="Use the libglade-2.0 library to load the glade interface file at runtime" default="1"/>
<property type="boolean" name="HaveI18n" _label="Add internationalization:" _description="Adds support for internationalization so that your project can have translations in different languages" default="1"/>
<property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds support for building shared libraries in your project" default="1"/>
<property type="boolean" name="HaveGtkDoc" _label="Add gtk-doc system:" _description="gtk-doc is used to compile API documentations for GObject based classes" default="0"/>
<property type="boolean" name="HavePackageExtra" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
</page>
[+IF (=(get "HavePackageExtra") "1")+]
<page name="packages" _label="Configure external packages" _description="Configure external packages">
<property type="string" name="PackageModule2" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'" mandatory="yes"/>
<property type="string" name="PackageModule3" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
<property type="string" name="PackageModule4" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
<property type="string" name="PackageModule5" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
</page>
[+ENDIF+]
<content>
<directory source="terminal" destination="[+Destination+]">
<file source="AUTHORS"/>
<file source="ChangeLog"/>
<file source="Makefile.am.tpl" destination="Makefile.am"/>
<file source="NEWS"/>
<file source="README"/>
<file source="autogen.sh" executable="yes"/>
<file source="configure.ac.tpl" destination="configure.ac"/>
<file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
<file source="cvsignore" destination=".cvsignore"/>
<directory source="src">
<file source="cvsignore" destination=".cvsignore"/>
</directory>
[+IF (=(get "HaveI18n") "1") +]
<directory source="po">
<file source="ChangeLog"/>
<file source="POTFILES.in"/>
<file source="LINGUAS" />
<file source="cvsignore" destination=".cvsignore"/>
</directory>
[+ENDIF+]
</directory>
<directory source="gnome" destination="[+Destination+]">
<directory source="src">
<file source="main.c"/>
<file source="callbacks.c"/>
<file source="callbacks.h"/>
[+IF (=(get "HaveGlade") "1")+]
<file source="project.glade" destination="[+NameHLower+].glade"/>
[+ENDIF+]
<file source="Makefile.am.tpl" destination="Makefile.am"/>
</directory>
</directory>
<directory source="licenses" destination="[+Destination+]">
<file source="[+License+]" destination="COPYING"/>
</directory>
</content>
<action>
<run command="sh -c &quot;cd [+(raw-shell-str (get "Destination"))+] &amp;&amp; ./autogen.sh&quot;"/>
<open file="[+Destination+]/[+NameHLower+].anjuta"/>
</action>
wizard_filesdir = $(anjuta_data_dir)/project/gnome/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
[+ autogen5 template +]
# List of source files containing translatable strings.
src/main.c
src/callbacks.c
src/callbacks.h
wizard_filesdir = $(anjuta_data_dir)/project/gnome/src
wizard_files_DATA = main.c callbacks.c callbacks.h Makefile.am.tpl project.glade
EXTRA_DIST = $(wizard_files_DATA)
[+ autogen5 template +]
## Process this file with automake to produce Makefile.in
## Created by Anjuta
[+IF (=(get "HaveGlade") "1")+]
gladedir = $(datadir)/[+NameHLower+]/glade
glade_DATA = [+NameHLower+].glade
[+ENDIF+]
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
$([+NameCUpper+]_CFLAGS)
AM_CFLAGS =\
-Wall\
-g
bin_PROGRAMS = [+NameHLower+]
[+NameCLower+]_SOURCES = \
callbacks.c \
callbacks.h \
main.c
[+NameCLower+]_LDFLAGS = \
-Wl,--export-dynamic
[+NameCLower+]_LDADD = $([+NameCUpper+]_LIBS)
EXTRA_DIST = $(glade_DATA)
[+IF (=(get "HaveGlade") "1")+]
# Remove glade directory on uninstall
uninstall-local:
-rm -r $(gladedir)
-rm -r $(datadir)/[+NameHLower+]
[+ENDIF+]
[+ autogen5 template +]
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* callbacks.c
* Copyright (C) [+Author+] [+(shell "date +%Y")+] <[+Email+]>
*
[+CASE (get "License") +]
[+ == "BSD" +][+(bsd "callbacks.c" (get "Author") " * ")+]
[+ == "LGPL" +][+(lgpl "callbacks.c" (get "Author") " * ")+]
[+ == "GPL" +][+(gpl "callbacks.c" " * ")+]
[+ESAC+] */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "callbacks.h"
void
destroy (GtkWidget *widget, gpointer data)
{
gtk_main_quit ();
}
[+ autogen5 template +]
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* callbacks.h
* Copyright (C) [+Author+] [+(shell "date +%Y")+] <[+Email+]>
*
[+CASE (get "License") +]
[+ == "BSD" +][+(bsd "callbacks.h" (get "Author") " * ")+]
[+ == "LGPL" +][+(lgpl "callbacks.h" (get "Author") " * ")+]
[+ == "GPL" +][+(gpl "callbacks.h" " * ")+]
[+ESAC+] */
#include <gnome.h>
void destroy (GtkWidget *widget, gpointer data);
[+ autogen5 template +]
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* main.c
* Copyright (C) [+Author+] [+(shell "date +%Y")+] <[+Email+]>
*
[+CASE (get "License") +]
[+ == "BSD" +][+(bsd "main.c" (get "Author") " * ")+]
[+ == "LGPL" +][+(lgpl "main.c" (get "Author") " * ")+]
[+ == "GPL" +][+(gpl "main.c" " * ")+]
[+ESAC+] */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <bonobo.h>
#include <gnome.h>
#include "callbacks.h"
[+IF (=(get "HaveGlade") "1")+]
#include <glade/glade.h>
/* For testing propose use the local (not installed) glade file */
/* #define GLADE_FILE PACKAGE_DATA_DIR"/[+NameLower+]/glade/[+NameLower+].glade" */
#define GLADE_FILE "[+NameHLower+].glade"
[+ENDIF+]
GtkWidget*
create_window (void)
{
GtkWidget *window;
[+IF (=(get "HaveGlade") "1")+]
GladeXML *gxml;
gxml = glade_xml_new (GLADE_FILE, NULL, NULL);
/* This is important */
glade_xml_signal_autoconnect (gxml);
window = glade_xml_get_widget (gxml, "window");
[+ELSE+]
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), _("window"));
gtk_window_set_default_size (GTK_WINDOW (window), 500, 400);
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);
[+ENDIF+]
return window;
}
int
main (int argc, char *argv[])
{
GtkWidget *window;
[+IF (=(get "HaveI18n") "1")+]
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
[+ENDIF+]
gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE,
argc, argv,
GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR,
NULL);
window = create_window ();
gtk_widget_show (window);
gtk_main ();
return 0;
}
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window">
<property name="visible">True</property>
<property name="title" translatable="yes">window</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="default_width">500</property>
<property name="default_height">400</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<signal name="destroy" handler="destroy" object="NULL"/>
<child>
<placeholder/>
</child>
</widget>
</glade-interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment