From f3dc285322d67289770bdc38427a3b48895a335e Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 14:58:15 -0500 Subject: Adding another level of .in for the pc files. --- configure.ac | 4 ++-- libindicator/Makefile.am | 7 +++++-- libindicator/indicator.pc.in | 17 ----------------- libindicator/indicator.pc.in.in | 17 +++++++++++++++++ libindicator/indicator3.pc.in | 17 ----------------- libindicator/indicator3.pc.in.in | 17 +++++++++++++++++ 6 files changed, 41 insertions(+), 38 deletions(-) delete mode 100644 libindicator/indicator.pc.in create mode 100644 libindicator/indicator.pc.in.in delete mode 100644 libindicator/indicator3.pc.in create mode 100644 libindicator/indicator3.pc.in.in diff --git a/configure.ac b/configure.ac index c35802e..535807b 100644 --- a/configure.ac +++ b/configure.ac @@ -125,8 +125,8 @@ AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") AC_CONFIG_FILES([ Makefile libindicator/Makefile -libindicator/indicator.pc -libindicator/indicator3.pc +libindicator/indicator.pc.in +libindicator/indicator3.pc.in tests/Makefile tools/Makefile ]) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index d63f841..bb60d5c 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -10,8 +10,11 @@ BUILT_SOURCES = indicator-object-enum-types.h indicator-object-enum-types.c CLEANFILES = DISTCLEANFILES = EXTRA_DIST = \ - indicator3.pc.in \ - indicator.pc.in + indicator3.pc.in.in \ + indicator.pc.in.in + +%.pc: %.pc.in + cp $< $@ include $(top_srcdir)/Makefile.am.marshal diff --git a/libindicator/indicator.pc.in b/libindicator/indicator.pc.in deleted file mode 100644 index 4e9b177..0000000 --- a/libindicator/indicator.pc.in +++ /dev/null @@ -1,17 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -bindir=@bindir@ -includedir=@includedir@ - -indicatordir=${libdir}/indicators/5/ -iconsdir=@datarootdir@/@PACKAGE@/icons/ - -Cflags: -I${includedir}/libindicator-0.3 -Requires: gtk+-2.0 -Libs: -lindicator - -Name: libindicator -Description: libindicator. -Version: @VERSION@ - diff --git a/libindicator/indicator.pc.in.in b/libindicator/indicator.pc.in.in new file mode 100644 index 0000000..4e9b177 --- /dev/null +++ b/libindicator/indicator.pc.in.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=${libdir}/indicators/5/ +iconsdir=@datarootdir@/@PACKAGE@/icons/ + +Cflags: -I${includedir}/libindicator-0.3 +Requires: gtk+-2.0 +Libs: -lindicator + +Name: libindicator +Description: libindicator. +Version: @VERSION@ + diff --git a/libindicator/indicator3.pc.in b/libindicator/indicator3.pc.in deleted file mode 100644 index 9fa0eac..0000000 --- a/libindicator/indicator3.pc.in +++ /dev/null @@ -1,17 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -bindir=@bindir@ -includedir=@includedir@ - -indicatordir=${libdir}/indicators3/2/ -iconsdir=@datarootdir@/@PACKAGE@/icons/ - -Cflags: -I${includedir}/libindicator-0.3 -Requires: gtk+-3.0 -Libs: -lindicator3 - -Name: libindicator3 -Description: libindicator3. -Version: @VERSION@ - diff --git a/libindicator/indicator3.pc.in.in b/libindicator/indicator3.pc.in.in new file mode 100644 index 0000000..9fa0eac --- /dev/null +++ b/libindicator/indicator3.pc.in.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=${libdir}/indicators3/2/ +iconsdir=@datarootdir@/@PACKAGE@/icons/ + +Cflags: -I${includedir}/libindicator-0.3 +Requires: gtk+-3.0 +Libs: -lindicator3 + +Name: libindicator3 +Description: libindicator3. +Version: @VERSION@ + -- cgit v1.2.3 From 746cf4ec825feda7b16ea32fad82d2901c9791d3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 15:05:49 -0500 Subject: Making the API and ABI versions variables --- libindicator/Makefile.am | 12 +++++++++--- libindicator/indicator.pc.in.in | 4 ++-- libindicator/indicator3.pc.in.in | 4 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index bb60d5c..1646023 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -13,12 +13,18 @@ EXTRA_DIST = \ indicator3.pc.in.in \ indicator.pc.in.in +INDICATOR_ABI_VERSION = 6 +INDICATOR_API_VERSION = 4 + %.pc: %.pc.in - cp $< $@ + sed \ + -e "s|\@indicator_api_version\@|$(INDICATOR_API_VERSION)|" \ + -e "s|\@indicator_abi_version\@|$(INDICATOR_ABI_VERSION)|" \ + $< > $@ include $(top_srcdir)/Makefile.am.marshal -libindicatorincludedir=$(includedir)/libindicator$(VER)-0.3/libindicator +libindicatorincludedir=$(includedir)/libindicator$(VER)-0.$(INDICATOR_API_VERSION)/libindicator indicator_headers = \ indicator.h \ @@ -54,7 +60,7 @@ libindicator_la_LIBADD = \ $(LIBINDICATOR_LIBS) libindicator_la_LDFLAGS = \ - -version-info 3:0:0 \ + -version-info $(INDICATOR_ABI_VERSION):0:0 \ -no-undefined \ -export-symbols-regex "^[^_].*" diff --git a/libindicator/indicator.pc.in.in b/libindicator/indicator.pc.in.in index 4e9b177..df4d6c8 100644 --- a/libindicator/indicator.pc.in.in +++ b/libindicator/indicator.pc.in.in @@ -4,10 +4,10 @@ libdir=@libdir@ bindir=@bindir@ includedir=@includedir@ -indicatordir=${libdir}/indicators/5/ +indicatordir=${libdir}/indicators/@indicator_abi_version@ iconsdir=@datarootdir@/@PACKAGE@/icons/ -Cflags: -I${includedir}/libindicator-0.3 +Cflags: -I${includedir}/libindicator-0.@indicator_api_version@ Requires: gtk+-2.0 Libs: -lindicator diff --git a/libindicator/indicator3.pc.in.in b/libindicator/indicator3.pc.in.in index 9fa0eac..1f34567 100644 --- a/libindicator/indicator3.pc.in.in +++ b/libindicator/indicator3.pc.in.in @@ -4,10 +4,10 @@ libdir=@libdir@ bindir=@bindir@ includedir=@includedir@ -indicatordir=${libdir}/indicators3/2/ +indicatordir=${libdir}/indicators3/@indicator_abi_version@/ iconsdir=@datarootdir@/@PACKAGE@/icons/ -Cflags: -I${includedir}/libindicator-0.3 +Cflags: -I${includedir}/libindicator-0.@indicator_api_version@ Requires: gtk+-3.0 Libs: -lindicator3 -- cgit v1.2.3 From 7797504facc6bb176c07b692abfbb7eadc76b5a6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 16:13:05 -0500 Subject: Adding the naming hint to the entry structure --- libindicator/indicator-object.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h index 5faeff5..be7d43e 100644 --- a/libindicator/indicator-object.h +++ b/libindicator/indicator-object.h @@ -150,6 +150,8 @@ struct _IndicatorObject { @menu: The menu to be added to the menubar @accessible_desc: The accessible description of the indicator + @name_hint: A name to describe the indicator being placed to allow + the caller to be more aware of the individual entries. @reserved1: Reserved for future use @reserved2: Reserved for future use @@ -161,6 +163,7 @@ struct _IndicatorObjectEntry { GtkImage * image; GtkMenu * menu; const gchar * accessible_desc; + const gchar * name_hint; void (*reserved1) (void); void (*reserved2) (void); -- cgit v1.2.3 From 26c580fe6b0196d9bfb1eb136af7ae07eae017d8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 16:15:14 -0500 Subject: Adding a get name hint function as well. --- libindicator/indicator-object.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h index be7d43e..a285949 100644 --- a/libindicator/indicator-object.h +++ b/libindicator/indicator-object.h @@ -77,6 +77,8 @@ typedef struct _IndicatorObjectEntry IndicatorObjectEntry; object. @get_accessible_desc: Gets the accessible descriptionfor this object. + @get_name_hint: Gets the hint of the type of indicator that this + is for the caller. @get_entries: Gets all of the entires for this object returning a #GList of #IndicatorObjectEntries. The list should be under the ownership of the caller but the entires will @@ -106,6 +108,7 @@ struct _IndicatorObjectClass { GtkImage * (*get_image) (IndicatorObject * io); GtkMenu * (*get_menu) (IndicatorObject * io); const gchar * (*get_accessible_desc) (IndicatorObject * io); + const gchar * (*get_name_hint) (IndicatorObject * io); GList * (*get_entries) (IndicatorObject * io); guint (*get_location) (IndicatorObject * io, IndicatorObjectEntry * entry); -- cgit v1.2.3 From f837b4b6102108a10bc897bdc1484882b5747316 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 16:18:56 -0500 Subject: Clearing our local name_hint and ensuring we fill it if a function is provided. --- libindicator/indicator-object.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index a91251c..2fe8dd1 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -240,6 +240,7 @@ indicator_object_init (IndicatorObject *self) self->priv->entry.label = NULL; self->priv->entry.image = NULL; self->priv->entry.accessible_desc = NULL; + self->priv->entry.name_hint = NULL; self->priv->gotten_entries = FALSE; @@ -435,6 +436,10 @@ get_entries_default (IndicatorObject * io) g_warning("IndicatorObject class does not have an accessible description."); } + if (class->get_name_hint) { + priv->entry.name_hint = class->get_name_hint(io); + } + priv->gotten_entries = TRUE; } -- cgit v1.2.3 From f5575b53091bee7985efb3c88bcc1d6fe34edefa Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 22:27:48 -0500 Subject: Changing the pkgconfig file version to include the API version --- configure.ac | 4 ++-- libindicator/Makefile.am | 6 +++--- libindicator/indicator-0.4.pc.in.in | 17 +++++++++++++++++ libindicator/indicator.pc.in.in | 17 ----------------- libindicator/indicator3-0.4.pc.in.in | 17 +++++++++++++++++ libindicator/indicator3.pc.in.in | 17 ----------------- 6 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 libindicator/indicator-0.4.pc.in.in delete mode 100644 libindicator/indicator.pc.in.in create mode 100644 libindicator/indicator3-0.4.pc.in.in delete mode 100644 libindicator/indicator3.pc.in.in diff --git a/configure.ac b/configure.ac index 535807b..7d17d0b 100644 --- a/configure.ac +++ b/configure.ac @@ -125,8 +125,8 @@ AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") AC_CONFIG_FILES([ Makefile libindicator/Makefile -libindicator/indicator.pc.in -libindicator/indicator3.pc.in +libindicator/indicator-0.4.pc.in +libindicator/indicator3-0.4.pc.in tests/Makefile tools/Makefile ]) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 1646023..53c0058 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -10,8 +10,8 @@ BUILT_SOURCES = indicator-object-enum-types.h indicator-object-enum-types.c CLEANFILES = DISTCLEANFILES = EXTRA_DIST = \ - indicator3.pc.in.in \ - indicator.pc.in.in + indicator3-0.$(INDICATOR_API_VERSION).pc.in.in \ + indicator-0.$(INDICATOR_API_VERSION).pc.in.in INDICATOR_ABI_VERSION = 6 INDICATOR_API_VERSION = 4 @@ -75,7 +75,7 @@ libindicator3_la_CFLAGS = $(libindicator_la_CFLAGS) libindicator3_la_LIBADD = $(libindicator_la_LIBADD) libindicator3_la_LDFLAGS = $(libindicator_la_LDFLAGS) -pkgconfig_DATA = indicator$(VER).pc +pkgconfig_DATA = indicator$(VER)-0.$(INDICATOR_API_VERSION).pc pkgconfigdir = $(libdir)/pkgconfig glib_marshal_list = indicator-object-marshal.list diff --git a/libindicator/indicator-0.4.pc.in.in b/libindicator/indicator-0.4.pc.in.in new file mode 100644 index 0000000..df4d6c8 --- /dev/null +++ b/libindicator/indicator-0.4.pc.in.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=${libdir}/indicators/@indicator_abi_version@ +iconsdir=@datarootdir@/@PACKAGE@/icons/ + +Cflags: -I${includedir}/libindicator-0.@indicator_api_version@ +Requires: gtk+-2.0 +Libs: -lindicator + +Name: libindicator +Description: libindicator. +Version: @VERSION@ + diff --git a/libindicator/indicator.pc.in.in b/libindicator/indicator.pc.in.in deleted file mode 100644 index df4d6c8..0000000 --- a/libindicator/indicator.pc.in.in +++ /dev/null @@ -1,17 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -bindir=@bindir@ -includedir=@includedir@ - -indicatordir=${libdir}/indicators/@indicator_abi_version@ -iconsdir=@datarootdir@/@PACKAGE@/icons/ - -Cflags: -I${includedir}/libindicator-0.@indicator_api_version@ -Requires: gtk+-2.0 -Libs: -lindicator - -Name: libindicator -Description: libindicator. -Version: @VERSION@ - diff --git a/libindicator/indicator3-0.4.pc.in.in b/libindicator/indicator3-0.4.pc.in.in new file mode 100644 index 0000000..1f34567 --- /dev/null +++ b/libindicator/indicator3-0.4.pc.in.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=${libdir}/indicators3/@indicator_abi_version@/ +iconsdir=@datarootdir@/@PACKAGE@/icons/ + +Cflags: -I${includedir}/libindicator-0.@indicator_api_version@ +Requires: gtk+-3.0 +Libs: -lindicator3 + +Name: libindicator3 +Description: libindicator3. +Version: @VERSION@ + diff --git a/libindicator/indicator3.pc.in.in b/libindicator/indicator3.pc.in.in deleted file mode 100644 index 1f34567..0000000 --- a/libindicator/indicator3.pc.in.in +++ /dev/null @@ -1,17 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -bindir=@bindir@ -includedir=@includedir@ - -indicatordir=${libdir}/indicators3/@indicator_abi_version@/ -iconsdir=@datarootdir@/@PACKAGE@/icons/ - -Cflags: -I${includedir}/libindicator-0.@indicator_api_version@ -Requires: gtk+-3.0 -Libs: -lindicator3 - -Name: libindicator3 -Description: libindicator3. -Version: @VERSION@ - -- cgit v1.2.3 From 173c8a74b0a8191c9b70cf8c7486032710f8bf74 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Jul 2011 22:29:32 -0500 Subject: Setting default GTK version to 3 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7d17d0b..c951db5 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,7 @@ AC_ARG_WITH([gtk], [AS_HELP_STRING([--with-gtk], [Which version of gtk to use @<:@default=2@:>@])], [], - [with_gtk=2]) + [with_gtk=3]) AS_IF([test "x$with_gtk" = x3], [PKG_CHECK_MODULES(LIBINDICATOR, gtk+-3.0 >= $GTK3_REQUIRED_VERSION gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION) -- cgit v1.2.3 From 2d3893c354ea2d39d18b9e3524e640d671508f90 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 6 Jul 2011 16:11:29 -0500 Subject: Adding license info to [ch] files --- tests/dummy-indicator-blank.c | 22 ++++++++++++++++++++++ tests/dummy-indicator-null.c | 22 ++++++++++++++++++++++ tests/dummy-indicator-signaler.c | 22 ++++++++++++++++++++++ tests/dummy-indicator-simple.c | 22 ++++++++++++++++++++++ tests/service-manager-connect-service.c | 22 ++++++++++++++++++++++ tests/service-manager-connect.c | 22 ++++++++++++++++++++++ tests/service-manager-no-connect.c | 22 ++++++++++++++++++++++ tests/service-manager-nostart-connect.c | 22 ++++++++++++++++++++++ tests/service-shutdown-timeout.c | 22 ++++++++++++++++++++++ tests/service-version-bad-service.c | 22 ++++++++++++++++++++++ tests/service-version-good-service.c | 22 ++++++++++++++++++++++ tests/service-version-manager.c | 22 ++++++++++++++++++++++ .../service-version-multiwatch-manager-impolite.c | 22 ++++++++++++++++++++++ tests/service-version-multiwatch-manager.c | 22 ++++++++++++++++++++++ tests/service-version-multiwatch-service.c | 22 ++++++++++++++++++++++ tests/service-version-values.h | 22 ++++++++++++++++++++++ tests/test-desktop-shortcuts.c | 22 ++++++++++++++++++++++ tests/test-loader.c | 22 ++++++++++++++++++++++ 18 files changed, 396 insertions(+) diff --git a/tests/dummy-indicator-blank.c b/tests/dummy-indicator-blank.c index 5cfe0f0..874284b 100644 --- a/tests/dummy-indicator-blank.c +++ b/tests/dummy-indicator-blank.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include "libindicator/indicator.h" diff --git a/tests/dummy-indicator-null.c b/tests/dummy-indicator-null.c index 169196c..8aec668 100644 --- a/tests/dummy-indicator-null.c +++ b/tests/dummy-indicator-null.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include diff --git a/tests/dummy-indicator-signaler.c b/tests/dummy-indicator-signaler.c index dcb2560..00eee3b 100644 --- a/tests/dummy-indicator-signaler.c +++ b/tests/dummy-indicator-signaler.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c index 70937ba..1aab711 100644 --- a/tests/dummy-indicator-simple.c +++ b/tests/dummy-indicator-simple.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include diff --git a/tests/service-manager-connect-service.c b/tests/service-manager-connect-service.c index d60e414..7f57f96 100644 --- a/tests/service-manager-connect-service.c +++ b/tests/service-manager-connect-service.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service.h" diff --git a/tests/service-manager-connect.c b/tests/service-manager-connect.c index 91d2bad..5e7684f 100644 --- a/tests/service-manager-connect.c +++ b/tests/service-manager-connect.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service-manager.h" diff --git a/tests/service-manager-no-connect.c b/tests/service-manager-no-connect.c index 1c32eb2..fab0607 100644 --- a/tests/service-manager-no-connect.c +++ b/tests/service-manager-no-connect.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service-manager.h" diff --git a/tests/service-manager-nostart-connect.c b/tests/service-manager-nostart-connect.c index 7107f42..ce0ac80 100644 --- a/tests/service-manager-nostart-connect.c +++ b/tests/service-manager-nostart-connect.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service-manager.h" diff --git a/tests/service-shutdown-timeout.c b/tests/service-shutdown-timeout.c index 820441c..e461af0 100644 --- a/tests/service-shutdown-timeout.c +++ b/tests/service-shutdown-timeout.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service.h" diff --git a/tests/service-version-bad-service.c b/tests/service-version-bad-service.c index 6057e74..12081d1 100644 --- a/tests/service-version-bad-service.c +++ b/tests/service-version-bad-service.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service.h" diff --git a/tests/service-version-good-service.c b/tests/service-version-good-service.c index 12a6a32..17f987e 100644 --- a/tests/service-version-good-service.c +++ b/tests/service-version-good-service.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service.h" diff --git a/tests/service-version-manager.c b/tests/service-version-manager.c index aedc0ed..9e582f5 100644 --- a/tests/service-version-manager.c +++ b/tests/service-version-manager.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service-manager.h" diff --git a/tests/service-version-multiwatch-manager-impolite.c b/tests/service-version-multiwatch-manager-impolite.c index 8bfd3c6..b4cd1c8 100644 --- a/tests/service-version-multiwatch-manager-impolite.c +++ b/tests/service-version-multiwatch-manager-impolite.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service-manager.h" diff --git a/tests/service-version-multiwatch-manager.c b/tests/service-version-multiwatch-manager.c index 771426f..4db6769 100644 --- a/tests/service-version-multiwatch-manager.c +++ b/tests/service-version-multiwatch-manager.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service-manager.h" diff --git a/tests/service-version-multiwatch-service.c b/tests/service-version-multiwatch-service.c index 9920306..30b7f00 100644 --- a/tests/service-version-multiwatch-service.c +++ b/tests/service-version-multiwatch-service.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-service.h" diff --git a/tests/service-version-values.h b/tests/service-version-values.h index e9fb087..1a60460 100644 --- a/tests/service-version-values.h +++ b/tests/service-version-values.h @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #define SERVICE_VERSION_GOOD 1342 #define SERVICE_VERSION_BAD 543 diff --git a/tests/test-desktop-shortcuts.c b/tests/test-desktop-shortcuts.c index 00dccd4..2e121fa 100644 --- a/tests/test-desktop-shortcuts.c +++ b/tests/test-desktop-shortcuts.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-desktop-shortcuts.h" diff --git a/tests/test-loader.c b/tests/test-loader.c index f5e05dc..ac9d4e5 100644 --- a/tests/test-loader.c +++ b/tests/test-loader.c @@ -1,3 +1,25 @@ +/* +Test for libindicator + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3.0 as published by the Free Software Foundation. + +This library 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 version 3.0 for more details. + +You should have received a copy of the GNU General Public +License along with this library. If not, see +. +*/ + #include #include "libindicator/indicator-object.h" -- cgit v1.2.3 From fb0fab8ec38d33d0b32ebefecddba9ddd86b603b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 6 Jul 2011 16:30:16 -0500 Subject: Making some test XFAIL and attaching to bugs --- tests/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index 569055c..e78ac6b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,6 +6,7 @@ endif TESTS = DISTCLEANFILES = +XFAIL_TESTS = check_PROGRAMS = @@ -257,6 +258,8 @@ service-manager-connect-tester: service-manager-connect service-manager-connect- TESTS += service-manager-connect-tester DISTCLEANFILES += service-manager-connect-tester session.conf service-manager-connect.service +# Bug 806690 +XFAIL_TESTS += service-manager-connect-tester ############################# # Service Versions @@ -320,6 +323,8 @@ service-version-tester: service-version-manager service-version-bad-service serv TESTS += service-version-tester DISTCLEANFILES += service-version-tester service-version-bad.service service-version-good.service +# Bug 806691 +XFAIL_TESTS += service-version-tester ############################# # Service Versions @@ -377,6 +382,8 @@ service-version-multiwatch-tester: service-version-multiwatch-manager service-ve TESTS += service-version-multiwatch-tester DISTCLEANFILES += service-version-multiwatch-tester +# Bug 806692 +XFAIL_TESTS += service-version-multiwatch-tester ############################# # Service Manager Shutdown -- cgit v1.2.3 From 6f2f14775574e792ca2209a97c20bc31af438928 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 6 Jul 2011 16:33:09 -0500 Subject: Switch to using gtk_box_new() --- tools/indicator-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c index 03614aa..0cdf1ff 100644 --- a/tools/indicator-loader.c +++ b/tools/indicator-loader.c @@ -44,7 +44,7 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d g_debug("Signal: Entry Added"); GtkWidget * menuitem = gtk_menu_item_new(); - GtkWidget * hbox = gtk_hbox_new(FALSE, 3); + GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); if (entry->image != NULL) { gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(entry->image), FALSE, FALSE, 0); -- cgit v1.2.3 From cce6c17c1fd178a53fc9a79b57e0daef41d6aa4b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 6 Jul 2011 16:35:49 -0500 Subject: Cleaning up the built pc file --- libindicator/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 53c0058..4433655 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -22,6 +22,8 @@ INDICATOR_API_VERSION = 4 -e "s|\@indicator_abi_version\@|$(INDICATOR_ABI_VERSION)|" \ $< > $@ +CLEANFILES = indicator$(VER)-0.$(INDICATOR_API_VERSION).pc + include $(top_srcdir)/Makefile.am.marshal libindicatorincludedir=$(includedir)/libindicator$(VER)-0.$(INDICATOR_API_VERSION)/libindicator -- cgit v1.2.3 From 9cca8d7de8e5d04886aae8e7f2c118c4ca3c65e8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 6 Jul 2011 16:35:52 -0500 Subject: 0.3.90 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c951db5..1188b04 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_INIT([libindicator], - [0.3.22], + [0.3.90], [http://bugs.launchpad.net/libindicator], [libindicator], [http://launchpad.net/libindicator]) -- cgit v1.2.3 From 14cdff4c343ce0eee37f769a0ba815222c405086 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 7 Jul 2011 08:25:11 -0500 Subject: Handling the right box for the right version of GTK --- tools/indicator-loader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c index 0cdf1ff..027d364 100644 --- a/tools/indicator-loader.c +++ b/tools/indicator-loader.c @@ -44,7 +44,11 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d g_debug("Signal: Entry Added"); GtkWidget * menuitem = gtk_menu_item_new(); +#if GTK_CHECK_VERSION(3,0,0) GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); +#else + GtkWidget * hbox = gtk_hbox_new(FALSE, 3); +#endif if (entry->image != NULL) { gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(entry->image), FALSE, FALSE, 0); -- cgit v1.2.3