Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 960d23bbf0f9e5c983908456422bf898d64a3e9d @tadeboro committed Dec 15, 2009
@@ -0,0 +1 @@
+Tadej Borovšak <tadeboro@gmail.com>
@@ -0,0 +1 @@
+FIXME
@@ -0,0 +1,17 @@
+# Makefile.am
+
+SUBDIRS = \
+ data \
+ src \
+ vapi \
+ po
+
+EXTRA_DIST = \
+ intltool-extract.in \
+ intltool-merge.in \
+ intltool-update.in
+
+DISTCLEANFILES = \
+ intltool-extract \
+ intltool-merge \
+ intltool-update
@@ -0,0 +1 @@
+FIXME
@@ -0,0 +1 @@
+FIXME
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="Sampala"
+REQUIRED_AUTOMAKE_VERSION=1.11
+
+(test -f $srcdir/src/sampala.vala) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
+}
+
+which gnome-autogen.sh || {
+ echo "You need to install gnome-common from the GNOME CVS"
+ exit 1
+}
+
+. gnome-autogen.sh
@@ -0,0 +1,50 @@
+# configure.ac
+
+AC_INIT([Sampala], [3.0])
+AC_CONFIG_SRCDIR([src/sampala.vala])
+AC_CONFIG_HEADERS([config.h])
+
+AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2])
+
+# Enable silent rules is available
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+AM_MAINTAINER_MODE
+
+AC_PROG_CC
+AC_PROG_CC_STDC
+AM_PROG_VALAC([0.7.0])
+AC_PROG_INSTALL
+AC_PROG_INTLTOOL([0.35])
+
+pkg_modules="gtk+-2.0 >= 2.14.0"
+SAMPALA_PACKAGES="--pkg gtk+-2.0"
+PKG_CHECK_MODULES(SAMPALA, [$pkg_modules])
+AC_SUBST(SAMPALA_CFLAGS)
+AC_SUBST(SAMPALA_LIBS)
+AC_SUBST(SAMPALA_PACKAGES)
+
+GETTEXT_PACKAGE=sampala
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package])
+AC_SUBST(GETTEXT_PACKAGE)
+AM_GLIB_GNU_GETTEXT
+
+AM_GLIB_GNU_GETTEXT
+
+AC_CONFIG_FILES([
+ Makefile
+ data/sampala.desktop.in
+ data/Makefile
+ data/icons/Makefile
+ data/icons/16x16/Makefile
+ data/icons/22x22/Makefile
+ data/icons/24x24/Makefile
+ data/icons/32x32/Makefile
+ data/icons/48x48/Makefile
+ data/icons/scalable/Makefile
+ data/images/Makefile
+ po/Makefile.in
+ src/Makefile
+ vapi/Makefile
+])
+AC_OUTPUT
@@ -0,0 +1,14 @@
+# Makefile.am
+
+SUBDIRS = icons images
+
+desktopdir = $(datadir)/applications
+desktop_in_files = sampala.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
+
+EXTRA_DIST = \
+ $(desktop_in_files)
+
+CLEANFILES = \
+ $(desktop_DATA)
@@ -0,0 +1,14 @@
+# Makefile.am
+
+themedir = $(datadir)/icons/hicolor
+size = 16x16
+context = apps
+
+iconsdir = $(themedir)/$(size)/$(context)
+
+icons_DATA = \
+ sampala.png
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,14 @@
+# Makefile.am
+
+themedir = $(datadir)/icons/hicolor
+size = 22x22
+context = apps
+
+iconsdir = $(themedir)/$(size)/$(context)
+
+icons_DATA = \
+ sampala.png
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,14 @@
+# Makefile.am
+
+themedir = $(datadir)/icons/hicolor
+size = 24x24
+context = apps
+
+iconsdir = $(themedir)/$(size)/$(context)
+
+icons_DATA = \
+ sampala.png
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,14 @@
+# Makefile.am
+
+themedir = $(datadir)/icons/hicolor
+size = 32x32
+context = apps
+
+iconsdir = $(themedir)/$(size)/$(context)
+
+icons_DATA = \
+ sampala.png
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,14 @@
+# Makefile.am
+
+themedir = $(datadir)/icons/hicolor
+size = 48x48
+context = apps
+
+iconsdir = $(themedir)/$(size)/$(context)
+
+icons_DATA = \
+ sampala.png
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,16 @@
+# Makefile.am
+
+SUBDIRS = 16x16 22x22 24x24 32x32 48x48 scalable
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+
+install-data-hook: update-icon-cache
+uninstall-hook: update-icon-cache
+update-icon-cache:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating GTK+ icon cache."; \
+ $(gtk_update_icon_cache); \
+ else \
+ echo "*** Icon cache not updated. After (un)install, run this:"; \
+ echo "*** $(gtk_update_icon_cache)"; \
+ fi
@@ -0,0 +1,13 @@
+# Makefile.am
+
+themedir = $(datadir)/icons/hicolor
+size = scalable
+context = apps
+
+iconsdir = $(themedir)/$(size)/$(context)
+
+icons_DATA = \
+ sampala.svg
+
+EXTRA_DIST = \
+ $(icons_DATA)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.1"
+ width="280"
+ height="280"
+ id="svg2">
+ <defs
+ id="defs4" />
+ <g
+ transform="translate(0,-772.36218)"
+ id="layer1">
+ <g
+ transform="matrix(1.0033597,0,0,0.95445541,-84.6288,726.1841)"
+ id="g5214">
+ <path
+ d="m 148,49.28125 c -11.99467,0 -21.71875,12.21817 -21.71875,27.28125 0,0.68473 0.023,1.359186 0.0625,2.03125 l -40.3125,230.28125 43.15625,0 4.0625,-23.21875 188.0625,0 40.25,-236.375 -212.15625,0 0,0.0625 C 148.9456,49.307097 148.46804,49.28125 148,49.28125 z"
+ id="rect3594"
+ style="fill:#f9e689;fill-opacity:1;stroke:#000000;stroke-width:1.02186584;stroke-opacity:1" />
+ <path
+ d="m 106.5625,286.59375 c -11.994674,0 -21.71875,12.21817 -21.71875,27.28125 0,15.06308 9.724076,27.25 21.71875,27.25 1.20071,0 2.38353,-0.10841 3.53125,-0.34375 l 0,0.4375 212.15625,0 -1.03125,-54.5625 -212.125,0 0,0.125 c -0.83135,-0.12133 -1.67398,-0.1875 -2.53125,-0.1875 z"
+ id="path3590"
+ style="fill:#c5c5c5;fill-opacity:1;stroke:#000000;stroke-width:1.02186584;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+ <rect
+ width="236.14818"
+ height="57.336876"
+ x="-2213.9961"
+ y="-2289.0808"
+ transform="matrix(-0.16720778,0.98592168,0.00326554,-0.99999467,0,0)"
+ id="rect3601"
+ style="fill:#dbdbdb;fill-opacity:1;stroke:#000000;stroke-width:2.52341509;stroke-opacity:1" />
+ </g>
+ <text
+ x="81.701401"
+ y="897.75659"
+ id="text3605"
+ xml:space="preserve"
+ style="font-size:48px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans Mono;-inkscape-font-specification:Bitstream Vera Sans Mono Bold"><tspan
+ x="81.701401"
+ y="897.75659"
+ id="tspan3607">Vala</tspan></text>
+ </g>
+</svg>
@@ -0,0 +1,9 @@
+# Makefile.am
+
+imagesdir = $(pgkdatadir)/images
+images_DATA = \
+ gauge.png \
+ needle.png
+
+EXTRA_DIST = \
+ $(images_DATA)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+_Name=Sampala
+_GenericName=Sample Vala application
+_Comment=Vala application that can serve as a learnign example
+Exec=sampala
+Icon=sampala
+Terminal=false
+Categories=Programming
+StartupNotify=true
@@ -0,0 +1 @@
+sl
@@ -0,0 +1,2 @@
+data/imagination.desktop.in.in
+src/imagination.vala
@@ -0,0 +1,2 @@
+data/imagination.desktop.in
+src/imagination.c
@@ -0,0 +1,35 @@
+# Slovenian translations for Imagination package
+# Slovenski prevodi paketa Imagination.
+# Copyright (C) 2009 THE Imagination'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the Imagination package.
+# <tadeboro@gmail.com>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Imagination 3.0\n"
+"Report-Msgid-Bugs-To: <tadeboro@gmail.com>\n"
+"POT-Creation-Date: 2009-12-14 13:46+0100\n"
+"PO-Revision-Date: 2009-12-14 13:54+0100\n"
+"Last-Translator: <tadeboro@gmail.com>\n"
+"Language-Team: Slovenian\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
+"%100==4 ? 2 : 3);\n"
+
+#: ../data/imagination.desktop.in.in.h:1
+msgid "A DVD slideshow maker"
+msgstr "Izdelovalec DVD predstavitev"
+
+#: ../data/imagination.desktop.in.in.h:2
+msgid "A lightweight DVD slideshow maker using GTK+2"
+msgstr "Lahkokategorni izdelovalec DVD predstavitev"
+
+#: ../data/imagination.desktop.in.in.h:3 ../src/imagination.vala:9
+msgid "Imagination"
+msgstr "Domišljija"
+
+#: ../src/imagination.vala:13
+msgid "Sample app"
+msgstr "Vzorčna applikacija"
@@ -0,0 +1,20 @@
+bin_PROGRAMS = sampala
+
+sampala_SOURCES = \
+ sampala.vala \
+ samplegauge.vala \
+ sampleapp.vala
+
+INCLUDES = \
+ -include config.h \
+ $(SAMPALA_CFLAGS) \
+ -DLOCALEDIR=\""$(localedir)"\" \
+ -DPKGDATADIR=\""$(pkgdatadir)"\" \
+ -DPKGLIBDIR=\""$(pkglibdir)"\"
+
+VALAFLAGS = \
+ --vapidir=$(srcdir)/../vapi --pkg config \
+ @SAMPALA_PACKAGES@
+
+sampala_LDADD = \
+ $(SAMPALA_LIBS)
@@ -0,0 +1,35 @@
+/*
+** Copyright (C) 2009 Tadej Borovšak <tadeboro@gmail.com>
+**
+** 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+int
+main( string[] args )
+{
+ Intl.bindtextdomain( Config.GETTEXT_PACKAGE, Config.LOCALEDIR );
+ Intl.bind_textdomain_codeset( Config.GETTEXT_PACKAGE, "UTF-8" );
+ Intl.textdomain( Config.GETTEXT_PACKAGE );
+
+ Gtk.init( ref args );
+
+ var test = new Sample.App();
+ test.show();
+
+ Gtk.main();
+
+ return( 0 );
+}
+
Oops, something went wrong.

0 comments on commit 960d23b

Please sign in to comment.