vala-tests r48 - trunk/tests/examples
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala-tests r48 - trunk/tests/examples
- Date: Sat, 25 Oct 2008 07:55:54 +0000 (UTC)
Author: juergbi
Date: Sat Oct 25 07:55:54 2008
New Revision: 48
URL: http://svn.gnome.org/viewvc/vala-tests?rev=48&view=rev
Log:
* Fix panel-applet-simple and panel-applet-advanced examples
Modified:
trunk/tests/examples/panel-applet-advanced.test
trunk/tests/examples/panel-applet-advanced.vala
trunk/tests/examples/panel-applet-simple.test
trunk/tests/examples/update.sh
Modified: trunk/tests/examples/panel-applet-advanced.test
==============================================================================
--- trunk/tests/examples/panel-applet-advanced.test (original)
+++ trunk/tests/examples/panel-applet-advanced.test Sat Oct 25 07:55:54 2008
@@ -21,7 +21,7 @@
$VALAC --pkg gtk+-2.0 --pkg libpanelapplet-2.0 -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
-if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then
+if [ "x0" = "x1" -o "x$INTERACT" = "x1" ] ; then
./$TESTNAME $@
else
echo ""
Modified: trunk/tests/examples/panel-applet-advanced.vala
==============================================================================
--- trunk/tests/examples/panel-applet-advanced.vala (original)
+++ trunk/tests/examples/panel-applet-advanced.vala Sat Oct 25 07:55:54 2008
@@ -3,8 +3,8 @@
public class MainApplet : Panel.Applet {
- public static bool factory (MainApplet applet, string iid) {
- applet.create ();
+ public static bool factory (Panel.Applet applet, string iid) {
+ ((MainApplet) applet).create ();
return true;
}
@@ -66,4 +66,4 @@
return Applet.factory_main ("OAFIID:Vala_Applet_Factory",
typeof (MainApplet), factory);
}
-}
\ No newline at end of file
+}
Modified: trunk/tests/examples/panel-applet-simple.test
==============================================================================
--- trunk/tests/examples/panel-applet-simple.test (original)
+++ trunk/tests/examples/panel-applet-simple.test Sat Oct 25 07:55:54 2008
@@ -21,7 +21,7 @@
$VALAC --pkg gtk+-2.0 --pkg libpanelapplet-2.0 -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
-if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then
+if [ "x0" = "x1" -o "x$INTERACT" = "x1" ] ; then
./$TESTNAME $@
else
echo ""
Modified: trunk/tests/examples/update.sh
==============================================================================
--- trunk/tests/examples/update.sh (original)
+++ trunk/tests/examples/update.sh Sat Oct 25 07:55:54 2008
@@ -16,6 +16,8 @@
gtk-builder-sample
gtk-filechooser-subclass
gtk-valawidget
+panel-applet-advanced
+panel-applet-simple
poppler-sample
webkit-sample
"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]