From 84d7e5e9b8f638f20038008d233673daa69bb3bf Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Thu, 17 Dec 2009 13:59:19 -0500 Subject: Added license/copyright to the example and un-commented out the code that adds the menu. --- bindings/mono/examples/IndicatorExample.cs | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'bindings') diff --git a/bindings/mono/examples/IndicatorExample.cs b/bindings/mono/examples/IndicatorExample.cs index 0cb72a1..c34e020 100644 --- a/bindings/mono/examples/IndicatorExample.cs +++ b/bindings/mono/examples/IndicatorExample.cs @@ -1,3 +1,22 @@ +/* + * Copyright 2009 Canonical Ltd. + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, as published + * by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranties of + * MERCHANTABILITY, SATISFACTORY QUALITY, 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, see . + * + * Authors: + * Cody Russell + */ + using Gtk; using AppIndicator; @@ -21,16 +40,14 @@ public class IndicatorExample indicator.Status = Status.Attention; - /* Menu menu = new Menu (); menu.Append (new MenuItem ("Foo")); menu.Append (new MenuItem ("Bar")); indicator.Menu = menu; - */ win.ShowAll (); Application.Run (); } -} \ No newline at end of file +} -- cgit v1.2.3 From af814231cc7fbab3fd6653ae499f8c6929d3144c Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Thu, 17 Dec 2009 15:01:24 -0500 Subject: Don't create the signature during build --- bindings/mono/Makefile.am | 4 ++-- bindings/mono/appindicator-sharp.snk | Bin 0 -> 596 bytes 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 bindings/mono/appindicator-sharp.snk (limited to 'bindings') diff --git a/bindings/mono/Makefile.am b/bindings/mono/Makefile.am index fe56158..662c3dc 100644 --- a/bindings/mono/Makefile.am +++ b/bindings/mono/Makefile.am @@ -13,7 +13,7 @@ ASSEMBLY = appindicator-sharp.dll TARGET = $(ASSEMBLY) $(ASSEMBLY).config assemblydir = $(libdir)/appindicator-sharp-0.1 assembly_DATA = $(TARGET) -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(ASSEMBLY_NAME).snk $(API) $(RAW_API) $(TEST) +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API) $(RAW_API) $(TEST) DISTCLEANFILES = $(ASSEMBLY).config TEST_SOURCES = TestIndicator.cs EXTRA_DIST = \ @@ -22,6 +22,7 @@ EXTRA_DIST = \ appindicator-sharp-0.1.pc.in \ appindicator-sharp.dll.config.in \ app-indicator.sources.xml \ + $(ASSEMBLY_NAME).snk \ $(TEST_SOURCES) GACUTIL_FLAGS="-package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib" @@ -50,7 +51,6 @@ generated-stamp: $(API) $(ASSEMBLY): generated-stamp @rm -f $(ASSEMBLY).mdb - $(SN) -k $(ASSEMBLY_NAME).snk $(CSC) $(CSFLAGS) -keyfile:$(ASSEMBLY_NAME).snk -nowarn:0169,0612,0618 -unsafe -out:$(ASSEMBLY) -target:library $(references) $(builddir)/$(GENERATED_SOURCES) install-data-local: diff --git a/bindings/mono/appindicator-sharp.snk b/bindings/mono/appindicator-sharp.snk new file mode 100644 index 0000000..efb62d0 Binary files /dev/null and b/bindings/mono/appindicator-sharp.snk differ -- cgit v1.2.3 From 52c77ebbd512a3f5601daddda903ebdac890d3e9 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Thu, 17 Dec 2009 15:29:51 -0500 Subject: use srcdir for the path to appindicator-sharp.snk --- bindings/mono/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings') diff --git a/bindings/mono/Makefile.am b/bindings/mono/Makefile.am index 662c3dc..dedbeb7 100644 --- a/bindings/mono/Makefile.am +++ b/bindings/mono/Makefile.am @@ -51,7 +51,7 @@ generated-stamp: $(API) $(ASSEMBLY): generated-stamp @rm -f $(ASSEMBLY).mdb - $(CSC) $(CSFLAGS) -keyfile:$(ASSEMBLY_NAME).snk -nowarn:0169,0612,0618 -unsafe -out:$(ASSEMBLY) -target:library $(references) $(builddir)/$(GENERATED_SOURCES) + $(CSC) $(CSFLAGS) -keyfile:$(srcdir)/$(ASSEMBLY_NAME).snk -nowarn:0169,0612,0618 -unsafe -out:$(ASSEMBLY) -target:library $(references) $(builddir)/$(GENERATED_SOURCES) install-data-local: echo "$(GACUTIL) -i $(ASSEMBLY_NAME).dll -package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib"; \ -- cgit v1.2.3