From 322884dde9c0131373989c1fc39d92a4ce7e87f9 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Sat, 19 Jun 2010 08:47:50 -0400 Subject: first pass at providing a gtk3 version --- configure.ac | 9 +++++++++ libindicator/Makefile.am | 19 ++++++++++++++++--- libindicator/indicator3.pc.in | 17 +++++++++++++++++ 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 libindicator/indicator3.pc.in diff --git a/configure.ac b/configure.ac index 8ae0c74..7c706e9 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) ############################## GTK_REQUIRED_VERSION=2.18 +GTK3_REQUIRED_VERSION=2.90 DBUS_REQUIRED_VERSION=0.76 GIO_UNIX_REQUIRED_VERSION=2.22 @@ -39,6 +40,13 @@ PKG_CHECK_MODULES(LIBINDICATOR, gtk+-2.0 >= $GTK_REQUIRED_VERSION AC_SUBST(LIBINDICATOR_CFLAGS) AC_SUBST(LIBINDICATOR_LIBS) +PKG_CHECK_MODULES(LIBINDICATOR3, gtk+-3.0 >= $GTK3_REQUIRED_VERSION + gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION + dbus-glib-1 >= $DBUS_REQUIRED_VERSION) + +AC_SUBST(LIBINDICATOR3_CFLAGS) +AC_SUBST(LIBINDICATOR3_LIBS) + ############################## # Custom Junk ############################## @@ -92,6 +100,7 @@ AC_OUTPUT([ Makefile libindicator/Makefile libindicator/indicator.pc +libindicator/indicator3.pc tests/Makefile tools/Makefile ]) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 983a6a5..e6f7390 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -2,11 +2,13 @@ BUILT_SOURCES = indicator-object-enum-types.h indicator-object-enum-types.c CLEANFILES = DISTCLEANFILES = EXTRA_DIST = \ - indicator.pc.in + indicator.pc.in \ + indicator3.pc.in include $(top_srcdir)/Makefile.am.marshal libindicatorincludedir=$(includedir)/libindicator-0.3/libindicator +libindicator3includedir=$(includedir)/libindicator-3.3/libindicator indicator_headers = \ indicator.h \ @@ -16,11 +18,15 @@ indicator_headers = \ indicator-service.h \ indicator-service-manager.h + libindicatorinclude_HEADERS = \ $(indicator_headers) +libindicator3include_HEADERS = \ + $(indicator3_headers) lib_LTLIBRARIES = \ - libindicator.la + libindicator.la \ + libindicator3.la libindicator_la_SOURCES = \ $(indicator_headers) \ @@ -33,16 +39,23 @@ libindicator_la_SOURCES = \ indicator-object-marshal.c \ indicator-service.c \ indicator-service-manager.c +libindicator3_la_SOURCES = $(libindicator_la_SOURCES) libindicator_la_CFLAGS = \ $(LIBINDICATOR_CFLAGS) \ -DG_LOG_DOMAIN=\"libindicator\" \ -Wall -Werror +libindicator3_la_CFLAGS = \ + $(LIBINDICATOR3_CFLAGS) \ + -DG_LOG_DOMAIN=\"libindicator\" \ + -Wall -Werror libindicator_la_LIBADD = \ $(LIBINDICATOR_LIBS) +libindicator3_la_LIBADD = \ + $(LIBINDICATOR3_LIBS) -pkgconfig_DATA = indicator.pc +pkgconfig_DATA = indicator.pc indicator3.pc pkgconfigdir = $(libdir)/pkgconfig glib_marshal_list = indicator-object-marshal.list diff --git a/libindicator/indicator3.pc.in b/libindicator/indicator3.pc.in new file mode 100644 index 0000000..47b3461 --- /dev/null +++ b/libindicator/indicator3.pc.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=${libdir}/indicators/3/ +iconsdir=@datarootdir@/@PACKAGE@/icons/ + +Cflags: -I${includedir}/libindicator-3.3 +Requires: gtk+-3.0 +Libs: -lindicator3 + +Name: libindicator3 +Description: libindicator. +Version: @VERSION@ + -- cgit v1.2.3 From 923a1d5b25bbc33513984d413acdad9a5d446ab9 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Sat, 19 Jun 2010 09:32:03 -0400 Subject: don't use 3.3 version, rather use indicator3 --- libindicator/Makefile.am | 4 ++-- libindicator/indicator3.pc.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index e6f7390..172e2b2 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -8,7 +8,7 @@ EXTRA_DIST = \ include $(top_srcdir)/Makefile.am.marshal libindicatorincludedir=$(includedir)/libindicator-0.3/libindicator -libindicator3includedir=$(includedir)/libindicator-3.3/libindicator +libindicator3includedir=$(includedir)/libindicator3-0.3/libindicator indicator_headers = \ indicator.h \ @@ -22,7 +22,7 @@ indicator_headers = \ libindicatorinclude_HEADERS = \ $(indicator_headers) libindicator3include_HEADERS = \ - $(indicator3_headers) + $(indicator_headers) lib_LTLIBRARIES = \ libindicator.la \ diff --git a/libindicator/indicator3.pc.in b/libindicator/indicator3.pc.in index 47b3461..ba7098c 100644 --- a/libindicator/indicator3.pc.in +++ b/libindicator/indicator3.pc.in @@ -7,11 +7,11 @@ includedir=@includedir@ indicatordir=${libdir}/indicators/3/ iconsdir=@datarootdir@/@PACKAGE@/icons/ -Cflags: -I${includedir}/libindicator-3.3 +Cflags: -I${includedir}/libindicator3-0.3 Requires: gtk+-3.0 Libs: -lindicator3 Name: libindicator3 -Description: libindicator. +Description: libindicator3. Version: @VERSION@ -- cgit v1.2.3 From ecc6acd2a576fcc11d51ded532f570fb29ab475e Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Wed, 6 Oct 2010 10:58:49 -0400 Subject: instead of always building gtk2 and gtk3, add a --with-gtk= flag to configure to specify which to build with --- configure.ac | 38 ++++++++++++++++++++++++-------------- libindicator/Makefile.am | 40 +++++++++++++++++++++------------------- tests/Makefile.am | 18 ++++++++++++------ tools/Makefile.am | 7 ++++++- 4 files changed, 63 insertions(+), 40 deletions(-) diff --git a/configure.ac b/configure.ac index 7c706e9..5f4d3c9 100644 --- a/configure.ac +++ b/configure.ac @@ -29,23 +29,32 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) ############################## GTK_REQUIRED_VERSION=2.18 -GTK3_REQUIRED_VERSION=2.90 +GTK3_REQUIRED_VERSION=2.91 DBUS_REQUIRED_VERSION=0.76 GIO_UNIX_REQUIRED_VERSION=2.22 -PKG_CHECK_MODULES(LIBINDICATOR, gtk+-2.0 >= $GTK_REQUIRED_VERSION - gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION - dbus-glib-1 >= $DBUS_REQUIRED_VERSION) - -AC_SUBST(LIBINDICATOR_CFLAGS) -AC_SUBST(LIBINDICATOR_LIBS) - -PKG_CHECK_MODULES(LIBINDICATOR3, gtk+-3.0 >= $GTK3_REQUIRED_VERSION - gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION - dbus-glib-1 >= $DBUS_REQUIRED_VERSION) - -AC_SUBST(LIBINDICATOR3_CFLAGS) -AC_SUBST(LIBINDICATOR3_LIBS) +AC_ARG_WITH([gtk], + [AS_HELP_STRING([--with-gtk], + [Which version of gtk to use @<:@default=2@:>@])], + [], + [with_gtk=2]) +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 + dbus-glib-1 >= $DBUS_REQUIRED_VERSION) + AC_SUBST(LIBINDICATOR_CFLAGS) + AC_SUBST(LIBINDICATOR_LIBS) + ], + [test "x$with_gtk" = x2], + [PKG_CHECK_MODULES(LIBINDICATOR, gtk+-2.0 >= $GTK_REQUIRED_VERSION + gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION + dbus-glib-1 >= $DBUS_REQUIRED_VERSION) + AC_SUBST(LIBINDICATOR_CFLAGS) + AC_SUBST(LIBINDICATOR_LIBS) + ], + [AC_MSG_FAILURE([Value for --with-gtk was neither 2 nor 3])] +) +AM_CONDITIONAL(USE_GTK3, [test "x$with_gtk" = x3]) ############################## # Custom Junk @@ -114,4 +123,5 @@ AC_MSG_NOTICE([ Libindicator Configuration: Prefix: $prefix + GTK+ Version: $with_gtk ]) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 172e2b2..4932f07 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -1,14 +1,20 @@ +if USE_GTK3 +VER=3 +lib_LTLIBRARIES = libindicator3.la +else +VER= +lib_LTLIBRARIES = libindicator.la +endif + BUILT_SOURCES = indicator-object-enum-types.h indicator-object-enum-types.c CLEANFILES = DISTCLEANFILES = EXTRA_DIST = \ - indicator.pc.in \ - indicator3.pc.in + indicator$(VER).pc.in include $(top_srcdir)/Makefile.am.marshal -libindicatorincludedir=$(includedir)/libindicator-0.3/libindicator -libindicator3includedir=$(includedir)/libindicator3-0.3/libindicator +libindicatorincludedir=$(includedir)/libindicator$(VER)-0.3/libindicator indicator_headers = \ indicator.h \ @@ -18,15 +24,8 @@ indicator_headers = \ indicator-service.h \ indicator-service-manager.h - libindicatorinclude_HEADERS = \ $(indicator_headers) -libindicator3include_HEADERS = \ - $(indicator_headers) - -lib_LTLIBRARIES = \ - libindicator.la \ - libindicator3.la libindicator_la_SOURCES = \ $(indicator_headers) \ @@ -39,23 +38,26 @@ libindicator_la_SOURCES = \ indicator-object-marshal.c \ indicator-service.c \ indicator-service-manager.c -libindicator3_la_SOURCES = $(libindicator_la_SOURCES) libindicator_la_CFLAGS = \ $(LIBINDICATOR_CFLAGS) \ -DG_LOG_DOMAIN=\"libindicator\" \ -Wall -Werror -libindicator3_la_CFLAGS = \ - $(LIBINDICATOR3_CFLAGS) \ - -DG_LOG_DOMAIN=\"libindicator\" \ - -Wall -Werror libindicator_la_LIBADD = \ $(LIBINDICATOR_LIBS) -libindicator3_la_LIBADD = \ - $(LIBINDICATOR3_LIBS) -pkgconfig_DATA = indicator.pc indicator3.pc +# We duplicate these here because Automake won't let us use $(VER) on the left hand side. +# Since we carefully use $(VER) in the right hand side above, we can assign the same values. +# Only one version of the library is every compiled at the same time, so it is safe to reuse +# the right hand sides like this. +libindicator3includedir = $(libindicatorincludedir) +libindicator3include_HEADERS = $(indicator_headers) +libindicator3_la_SOURCES = $(libindicator_la_SOURCES) +libindicator3_la_CFLAGS = $(libindicator_la_CFLAGS) +libindicator3_la_LIBADD = $(libindicator_la_LIBADD) + +pkgconfig_DATA = indicator$(VER).pc pkgconfigdir = $(libdir)/pkgconfig glib_marshal_list = indicator-object-marshal.list diff --git a/tests/Makefile.am b/tests/Makefile.am index 13fef2d..d6a1048 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,3 +1,9 @@ +if USE_GTK3 +INDICATOR_LIB = -lindicator3 +else +INDICATOR_LIB = -lindicator +endif + TESTS = DISTCLEANFILES = @@ -31,7 +37,7 @@ test_loader_CFLAGS = \ test_loader_LDADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) ############################# # Test Desktop Shortcuts @@ -51,7 +57,7 @@ test_desktop_shortcuts_CFLAGS = \ test_desktop_shortcuts_LDADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) DS_XML_REPORT = desktop-shortcuts-check-results.xml DS_HTML_REPORT = desktop-shortcuts-check-results.html @@ -83,7 +89,7 @@ libdummy_indicator_blank_la_CFLAGS = \ libdummy_indicator_blank_la_LIBADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) libdummy_indicator_blank_la_LDFLAGS = \ -module \ @@ -103,7 +109,7 @@ libdummy_indicator_null_la_CFLAGS = \ libdummy_indicator_null_la_LIBADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) libdummy_indicator_null_la_LDFLAGS = \ -module \ @@ -123,7 +129,7 @@ libdummy_indicator_signaler_la_CFLAGS = \ libdummy_indicator_signaler_la_LIBADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) libdummy_indicator_signaler_la_LDFLAGS = \ -module \ @@ -143,7 +149,7 @@ libdummy_indicator_simple_la_CFLAGS = \ libdummy_indicator_simple_la_LIBADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) libdummy_indicator_simple_la_LDFLAGS = \ -module \ diff --git a/tools/Makefile.am b/tools/Makefile.am index 5e5ef8d..d2964f9 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,3 +1,8 @@ +if USE_GTK3 +INDICATOR_LIB = -lindicator3 +else +INDICATOR_LIB = -lindicator +endif libexec_PROGRAMS = \ indicator-loader @@ -17,5 +22,5 @@ indicator_loader_CFLAGS = \ indicator_loader_LDADD = \ $(LIBINDICATOR_LIBS) \ -L$(top_builddir)/libindicator/.libs \ - -lindicator + $(INDICATOR_LIB) -- cgit v1.2.3 From fc94eab8fd3749f0c9c68451f359c9e1efcdfd3b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 12:24:12 -0500 Subject: All the environment flags we should set for debugging --- tools/indicator-debugging | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/indicator-debugging diff --git a/tools/indicator-debugging b/tools/indicator-debugging new file mode 100644 index 0000000..afc2093 --- /dev/null +++ b/tools/indicator-debugging @@ -0,0 +1,8 @@ +# Timeout after 1 minute +export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=60000 + +# If no one connects, still stay alive +export INDICATOR_ALLOW_NO_WATCHERS=1 + +# Don't restart the services if they crash +export INDICATOR_SERVICE_RESTART_DISABLE=1 -- cgit v1.2.3 From 2e3ea76f4947c1148f6c3a8b870e0e319deaa20c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 12:37:08 -0500 Subject: Installing the environment file in the session dir --- tools/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/Makefile.am b/tools/Makefile.am index 5e5ef8d..4b959a5 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -19,3 +19,8 @@ indicator_loader_LDADD = \ -L$(top_builddir)/libindicator/.libs \ -lindicator +xsessiondir = $(sysconfdir)/X11/Xsession.d + +xsession_DATA = indicator-debugging + +EXTRA_DIST = $(xsession_DATA) -- cgit v1.2.3 From 0f99ed218d71e96d2fa5f10c5f0791b61445f8aa Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 12:39:13 -0500 Subject: Adding a number in the name --- tools/80indicator-debugging | 8 ++++++++ tools/Makefile.am | 2 +- tools/indicator-debugging | 8 -------- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 tools/80indicator-debugging delete mode 100644 tools/indicator-debugging diff --git a/tools/80indicator-debugging b/tools/80indicator-debugging new file mode 100644 index 0000000..afc2093 --- /dev/null +++ b/tools/80indicator-debugging @@ -0,0 +1,8 @@ +# Timeout after 1 minute +export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=60000 + +# If no one connects, still stay alive +export INDICATOR_ALLOW_NO_WATCHERS=1 + +# Don't restart the services if they crash +export INDICATOR_SERVICE_RESTART_DISABLE=1 diff --git a/tools/Makefile.am b/tools/Makefile.am index 4b959a5..168cea8 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -21,6 +21,6 @@ indicator_loader_LDADD = \ xsessiondir = $(sysconfdir)/X11/Xsession.d -xsession_DATA = indicator-debugging +xsession_DATA = 80indicator-debugging EXTRA_DIST = $(xsession_DATA) diff --git a/tools/indicator-debugging b/tools/indicator-debugging deleted file mode 100644 index afc2093..0000000 --- a/tools/indicator-debugging +++ /dev/null @@ -1,8 +0,0 @@ -# Timeout after 1 minute -export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=60000 - -# If no one connects, still stay alive -export INDICATOR_ALLOW_NO_WATCHERS=1 - -# Don't restart the services if they crash -export INDICATOR_SERVICE_RESTART_DISABLE=1 -- cgit v1.2.3 From b877951a5c45aaaa49718748b5f786681e3e9622 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 12:41:16 -0500 Subject: Add mean comment --- tools/80indicator-debugging | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/80indicator-debugging b/tools/80indicator-debugging index afc2093..f21559c 100644 --- a/tools/80indicator-debugging +++ b/tools/80indicator-debugging @@ -1,3 +1,9 @@ +# These are environment variables that effect the behavior +# of libindicator's service manager and indicator service +# objects. They turn off various robustness features that +# make debugging difficult and are not recommended for +# daily use. Development use only! + # Timeout after 1 minute export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=60000 -- cgit v1.2.3 From 32b0c1ce0db7b3955abd6d2192e89889170ec301 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 14:52:02 -0500 Subject: Autogen --- debian/changelog | 3 ++- tools/Makefile.in | 63 ++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 57 insertions(+), 9 deletions(-) diff --git a/debian/changelog b/debian/changelog index e8edbb3..ad3b567 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ libindicator (0.3.14-0ubuntu2~ppa1) UNRELEASED; urgency=low * Upstream Merge * Adding a small file to set debugging environment variables + * Autogen - -- Ted Gould Fri, 15 Oct 2010 14:48:22 -0500 + -- Ted Gould Fri, 15 Oct 2010 14:51:55 -0500 libindicator (0.3.14-0ubuntu1) maverick; urgency=low diff --git a/tools/Makefile.in b/tools/Makefile.in index 8c6b3b0..5e54885 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -15,6 +15,7 @@ @SET_MAKE@ + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ @@ -45,7 +46,7 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -am__installdirs = "$(DESTDIR)$(libexecdir)" +am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(xsessiondir)" PROGRAMS = $(libexec_PROGRAMS) am_indicator_loader_OBJECTS = \ indicator_loader-indicator-loader.$(OBJEXT) @@ -87,6 +88,28 @@ am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(indicator_loader_SOURCES) DIST_SOURCES = $(indicator_loader_SOURCES) +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +DATA = $(xsession_DATA) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -231,6 +254,9 @@ indicator_loader_LDADD = \ -L$(top_builddir)/libindicator/.libs \ -lindicator +xsessiondir = $(sysconfdir)/X11/Xsession.d +xsession_DATA = 80indicator-debugging +EXTRA_DIST = $(xsession_DATA) all: all-am .SUFFIXES: @@ -365,6 +391,26 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs +install-xsessionDATA: $(xsession_DATA) + @$(NORMAL_INSTALL) + test -z "$(xsessiondir)" || $(MKDIR_P) "$(DESTDIR)$(xsessiondir)" + @list='$(xsession_DATA)'; test -n "$(xsessiondir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xsessiondir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(xsessiondir)" || exit $$?; \ + done + +uninstall-xsessionDATA: + @$(NORMAL_UNINSTALL) + @list='$(xsession_DATA)'; test -n "$(xsessiondir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(xsessiondir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(xsessiondir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ @@ -450,9 +496,9 @@ distdir: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(PROGRAMS) +all-am: Makefile $(PROGRAMS) $(DATA) installdirs: - for dir in "$(DESTDIR)$(libexecdir)"; do \ + for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(xsessiondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am @@ -503,7 +549,7 @@ info: info-am info-am: -install-data-am: +install-data-am: install-xsessionDATA install-dvi: install-dvi-am @@ -549,7 +595,7 @@ ps: ps-am ps-am: -uninstall-am: uninstall-libexecPROGRAMS +uninstall-am: uninstall-libexecPROGRAMS uninstall-xsessionDATA .MAKE: install-am install-strip @@ -561,11 +607,12 @@ uninstall-am: uninstall-libexecPROGRAMS install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libexecPROGRAMS install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ + install-ps install-ps-am install-strip install-xsessionDATA \ + installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-libexecPROGRAMS + tags uninstall uninstall-am uninstall-libexecPROGRAMS \ + uninstall-xsessionDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. -- cgit v1.2.3 From d6160f5deba95d4b915a53382e15610d39e81bbe Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 14:54:32 -0500 Subject: debian/control: Adding package libindicator-debugenv --- debian/changelog | 3 ++- debian/control | 11 +++++++++++ debian/libindicator-debugenv.install | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 debian/libindicator-debugenv.install diff --git a/debian/changelog b/debian/changelog index ad3b567..19253bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,9 @@ libindicator (0.3.14-0ubuntu2~ppa1) UNRELEASED; urgency=low * Upstream Merge * Adding a small file to set debugging environment variables * Autogen + * debian/control: Adding package libindicator-debugenv - -- Ted Gould Fri, 15 Oct 2010 14:51:55 -0500 + -- Ted Gould Fri, 15 Oct 2010 14:54:17 -0500 libindicator (0.3.14-0ubuntu1) maverick; urgency=low diff --git a/debian/control b/debian/control index d701099..5f33619 100644 --- a/debian/control +++ b/debian/control @@ -51,3 +51,14 @@ Description: Tools for libindicator Tools useful for developers of applications using indicators. . This package contains files that are needed to build applications. + +Package: libindicator-debugenv +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libindicator1 (= ${binary:Version}) +Description: Debug environment for libindicator + Sets debug values useful for developers of applications using indicators. + . + This package contains session configuration files diff --git a/debian/libindicator-debugenv.install b/debian/libindicator-debugenv.install new file mode 100644 index 0000000..da1327b --- /dev/null +++ b/debian/libindicator-debugenv.install @@ -0,0 +1 @@ +debian/tmp/etc/* -- cgit v1.2.3 From 273cfcaccdfd2dcffc76b74fc5fe4c355919b606 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 15 Oct 2010 14:56:17 -0500 Subject: releasing version 0.3.14-0ubuntu2~ppa1 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 19253bf..27231bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,11 @@ -libindicator (0.3.14-0ubuntu2~ppa1) UNRELEASED; urgency=low +libindicator (0.3.14-0ubuntu2~ppa1) maverick; urgency=low * Upstream Merge * Adding a small file to set debugging environment variables * Autogen * debian/control: Adding package libindicator-debugenv - -- Ted Gould Fri, 15 Oct 2010 14:54:17 -0500 + -- Ted Gould Fri, 15 Oct 2010 14:56:11 -0500 libindicator (0.3.14-0ubuntu1) maverick; urgency=low -- cgit v1.2.3 From 40d11e1691f0a91815c746899b79be8c8e50bf9a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 09:26:24 -0600 Subject: Updating ignore for the GTK3 stuff --- .bzrignore | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.bzrignore b/.bzrignore index c3c6afd..6599569 100644 --- a/.bzrignore +++ b/.bzrignore @@ -156,3 +156,16 @@ tests/service-version-multiwatch-manager tests/service-version-multiwatch-tester tests/service-version-multiwatch-service tests/service-version-multiwatch-manager-impolite +libindicator/indicator-object-enum-types.c +libindicator/indicator-object-enum-types.h +libindicator/indicator3.pc +libindicator/libindicator3.la +libindicator/libindicator3_la-indicator-desktop-shortcuts.lo +libindicator/libindicator3_la-indicator-image-helper.lo +libindicator/libindicator3_la-indicator-object-enum-types.lo +libindicator/libindicator3_la-indicator-object-marshal.lo +libindicator/libindicator3_la-indicator-object.lo +libindicator/libindicator3_la-indicator-service-manager.lo +libindicator/libindicator3_la-indicator-service.lo +libindicator/libindicator_la-indicator-object-enum-types.lo +libindicator/s-enum-types-h -- cgit v1.2.3 From 5c848a14979bf12357c88a7e90422d1deb045ed5 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 09:33:27 -0600 Subject: Putting the GTK3 indicators in a different directory. --- libindicator/indicator3.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libindicator/indicator3.pc.in b/libindicator/indicator3.pc.in index ba7098c..74b93c5 100644 --- a/libindicator/indicator3.pc.in +++ b/libindicator/indicator3.pc.in @@ -4,7 +4,7 @@ libdir=@libdir@ bindir=@bindir@ includedir=@includedir@ -indicatordir=${libdir}/indicators/3/ +indicatordir=${libdir}/indicators3/1/ iconsdir=@datarootdir@/@PACKAGE@/icons/ Cflags: -I${includedir}/libindicator3-0.3 -- cgit v1.2.3 From 75672d53ab18c2e057927e610ea22890fbb102a2 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 09:38:43 -0600 Subject: Checking for deprecations and making sure we check on distcheck --- Makefile.am | 2 ++ configure.ac | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Makefile.am b/Makefile.am index f290d63..c955c6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,8 @@ SUBDIRS = \ tests \ tools +DISTCHECK_CONFIGURE_FLAGS = --disable-deprecations + DISTCLEANFILES = \ libindicator-*.tar.gz diff --git a/configure.ac b/configure.ac index 86eec72..8b4a709 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,15 @@ AC_CONFIG_MACRO_DIR([m4]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) +AC_ARG_ENABLE([deprecations], + [AS_HELP_STRING([--enable-deprecations], + [allow deprecated API usage @<:@default=yes@:>@])], + [], + [enable_deprecations=yes]) +AS_IF([test "x$enable_deprecations" = xno], + [CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_SINGLE_INCLUDES"] +) + ############################## # Dependencies ############################## -- cgit v1.2.3 From 10d7e22266bf5591f1544d97db00ea631fbc57d5 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 09:38:56 -0600 Subject: Making sure to get both pc files in the tarball --- libindicator/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 94cf3e0..39cb2b7 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -10,7 +10,8 @@ BUILT_SOURCES = indicator-object-enum-types.h indicator-object-enum-types.c CLEANFILES = DISTCLEANFILES = EXTRA_DIST = \ - indicator$(VER).pc.in + indicator3.pc.in \ + indicator.pc.in include $(top_srcdir)/Makefile.am.marshal -- cgit v1.2.3 From db16c1fe7624051fb92be1bf95549e6460d8eced Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 10:20:24 -0600 Subject: Fixing the ignore file tarball matching --- .bzrignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bzrignore b/.bzrignore index 6599569..1c213cf 100644 --- a/.bzrignore +++ b/.bzrignore @@ -115,8 +115,8 @@ tests/libdummy-indicator-simple.la tests/libdummy_indicator_simple_la-dummy-indicator-simple.lo tests/libdummy-indicator-blank.la tests/libdummy_indicator_blank_la-dummy-indicator-blank.lo -libindicator-[0-9].[0-9].[0-9].tar.gz -libindicator-[0-9].[0-9].[0-9].tar.gz.asc +libindicator-[0-9]*.[0-9]*.[0-9]*.tar.gz +libindicator-[0-9]*.[0-9]*.[0-9]*.tar.gz.asc libindicator/libindicator_la-indicator-instance.lo tests/libdummy-indicator-signaler.la tests/libdummy_indicator_signaler_la-dummy-indicator-signaler.lo -- cgit v1.2.3 From 7d8375c7694f91fb05f72cf175a0a0219ba19bb1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 14:39:02 -0600 Subject: 0.3.15 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8b4a709..365ebea 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,10 @@ -AC_INIT(libindicator, 0.3.14, ted@canonical.com) +AC_INIT(libindicator, 0.3.15, ted@canonical.com) AC_PREREQ(2.53) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(libindicator, 0.3.14) +AM_INIT_AUTOMAKE(libindicator, 0.3.15) AM_MAINTAINER_MODE m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES]) -- cgit v1.2.3 From e87aa8f4e30f315a8ce8acece383c50e32290481 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Nov 2010 14:44:56 -0600 Subject: releasing version 0.3.15-0ubuntu1~ppa1 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index dcfae79..aafd6ce 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,11 @@ -libindicator (0.3.15-0ubuntu1~ppa1) UNRELEASED; urgency=low +libindicator (0.3.15-0ubuntu1~ppa1) maverick; urgency=low * New upstream release. * Adding a small file to set debugging environment variables * Allowing to build for GTK 2/3 and build parallel libraries * debian/control: Adding package libindicator-debugenv - -- Ted Gould Thu, 11 Nov 2010 14:40:34 -0600 + -- Ted Gould Thu, 11 Nov 2010 14:44:51 -0600 libindicator (0.3.14-0ubuntu1) maverick; urgency=low -- cgit v1.2.3