aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-02-10 13:06:05 +0100
committerRobert Tari <robert@tari.in>2021-05-11 11:00:41 +0200
commitb8b206c6e84757c6d4d36cec619a1e7c37d1eb5f (patch)
tree2463a2275c43f0427c72bae8ef41d28f2644578a
parent13c1c80b1e0cedea938960baf2229e29ab350830 (diff)
downloadlibayatana-indicator-b8b206c6e84757c6d4d36cec619a1e7c37d1eb5f.tar.gz
libayatana-indicator-b8b206c6e84757c6d4d36cec619a1e7c37d1eb5f.tar.bz2
libayatana-indicator-b8b206c6e84757c6d4d36cec619a1e7c37d1eb5f.zip
Move source files to src
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac34
-rw-r--r--src/Makefile.am (renamed from libayatana-indicator/Makefile.am)0
-rw-r--r--src/ayatana-indicator-0.4.pc.in.in (renamed from libayatana-indicator/ayatana-indicator-0.4.pc.in.in)0
-rw-r--r--src/ayatana-indicator3-0.4.pc.in.in (renamed from libayatana-indicator/ayatana-indicator3-0.4.pc.in.in)0
-rw-r--r--src/dbus-shared.h (renamed from libayatana-indicator/dbus-shared.h)0
-rw-r--r--src/indicator-desktop-shortcuts.c (renamed from libayatana-indicator/indicator-desktop-shortcuts.c)0
-rw-r--r--src/indicator-desktop-shortcuts.h (renamed from libayatana-indicator/indicator-desktop-shortcuts.h)0
-rw-r--r--src/indicator-image-helper.c (renamed from libayatana-indicator/indicator-image-helper.c)0
-rw-r--r--src/indicator-image-helper.h (renamed from libayatana-indicator/indicator-image-helper.h)0
-rw-r--r--src/indicator-ng.c (renamed from libayatana-indicator/indicator-ng.c)0
-rw-r--r--src/indicator-ng.h (renamed from libayatana-indicator/indicator-ng.h)0
-rw-r--r--src/indicator-object-enum-types.c.template (renamed from libayatana-indicator/indicator-object-enum-types.c.template)0
-rw-r--r--src/indicator-object-enum-types.h.template (renamed from libayatana-indicator/indicator-object-enum-types.h.template)0
-rw-r--r--src/indicator-object-marshal.list (renamed from libayatana-indicator/indicator-object-marshal.list)0
-rw-r--r--src/indicator-object.c (renamed from libayatana-indicator/indicator-object.c)0
-rw-r--r--src/indicator-object.h (renamed from libayatana-indicator/indicator-object.h)0
-rw-r--r--src/indicator-service-manager.c (renamed from libayatana-indicator/indicator-service-manager.c)0
-rw-r--r--src/indicator-service-manager.h (renamed from libayatana-indicator/indicator-service-manager.h)0
-rw-r--r--src/indicator-service.c (renamed from libayatana-indicator/indicator-service.c)0
-rw-r--r--src/indicator-service.h (renamed from libayatana-indicator/indicator-service.h)0
-rw-r--r--src/indicator-service.xml (renamed from libayatana-indicator/indicator-service.xml)0
-rw-r--r--src/indicator.h (renamed from libayatana-indicator/indicator.h)0
-rw-r--r--tests/Makefile.am42
-rw-r--r--tests/dummy-indicator-blank.c2
-rw-r--r--tests/dummy-indicator-entry-func.h14
-rw-r--r--tests/dummy-indicator-null.c44
-rw-r--r--tests/dummy-indicator-signaler.c90
-rw-r--r--tests/dummy-indicator-simple.c52
-rw-r--r--tests/dummy-indicator-visible.c68
-rw-r--r--tests/service-manager-connect-service.c2
-rw-r--r--tests/service-manager-connect.c2
-rw-r--r--tests/service-manager-no-connect.c2
-rw-r--r--tests/service-manager-nostart-connect.c2
-rw-r--r--tests/service-shutdown-timeout.c2
-rw-r--r--tests/service-version-bad-service.c2
-rw-r--r--tests/service-version-good-service.c2
-rw-r--r--tests/service-version-manager.c2
-rw-r--r--tests/service-version-multiwatch-manager-impolite.c2
-rw-r--r--tests/service-version-multiwatch-manager.c2
-rw-r--r--tests/service-version-multiwatch-service.c2
-rw-r--r--tests/test-desktop-shortcuts.c2
-rw-r--r--tests/test-indicator-ng.c2
-rw-r--r--tests/test-loader.c380
-rw-r--r--tools/Makefile.am2
-rw-r--r--tools/indicator-loader.c8
46 files changed, 382 insertions, 382 deletions
diff --git a/Makefile.am b/Makefile.am
index 0a03376..bd052fd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = \
data \
- libayatana-indicator \
+ src \
tools
tools: libayatana-indicator
diff --git a/configure.ac b/configure.ac
index 95398ec..9ba72ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,17 +146,17 @@ PKG_CHECK_MODULES(SYSTEMD, systemd,
[]
)
if test "x$has_systemd" = "xyes"; then
- SYSTEMD_USERDIR=`$PKG_CONFIG --variable=systemduserunitdir systemd`
- AC_SUBST(SYSTEMD_USERDIR)
- AC_DEFINE(HAVE_SYSTEMD, 1, [create ayatana-indicators-pre.target for systemd])
+ SYSTEMD_USERDIR=`$PKG_CONFIG --variable=systemduserunitdir systemd`
+ AC_SUBST(SYSTEMD_USERDIR)
+ AC_DEFINE(HAVE_SYSTEMD, 1, [create ayatana-indicators-pre.target for systemd])
fi
#########################
# Check if build tests
#########################
AC_ARG_ENABLE([tests],
- AC_HELP_STRING([--disable-tests], [disable tests]),,
- [enable_tests=yes])
+ AC_HELP_STRING([--disable-tests], [disable tests]),,
+ [enable_tests=yes])
AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
#########################
@@ -167,8 +167,8 @@ AC_ARG_ENABLE([debug],
[enable_debug=no])
if test "x$enable_debug" = "xyes"; then
- CFLAGS="-g $CFLAGS"
- AC_DEFINE(ENABLE_DEBUG, 1, [build with extra debug information])
+ CFLAGS="-g $CFLAGS"
+ AC_DEFINE(ENABLE_DEBUG, 1, [build with extra debug information])
fi
AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes")
@@ -192,9 +192,9 @@ AC_SUBST(COVERAGE_LDFLAGS)
AC_CONFIG_FILES([
Makefile
data/Makefile
-libayatana-indicator/Makefile
-libayatana-indicator/ayatana-indicator-0.4.pc.in
-libayatana-indicator/ayatana-indicator3-0.4.pc.in
+src/Makefile
+src/ayatana-indicator-0.4.pc.in
+src/ayatana-indicator3-0.4.pc.in
tests/Makefile
tools/Makefile
])
@@ -208,11 +208,11 @@ AC_MSG_NOTICE([
Libindicator Configuration:
- Prefix: $prefix
- GTK+ Version: $with_gtk
-
- Enable IDO loader: $enable_ido
- Enable tests: $enable_tests
- Enable debugging: $enable_debug
- Coverage reporting: $use_gcov
+ Prefix: $prefix
+ GTK+ Version: $with_gtk
+
+ Enable IDO loader: $enable_ido
+ Enable tests: $enable_tests
+ Enable debugging: $enable_debug
+ Coverage reporting: $use_gcov
])
diff --git a/libayatana-indicator/Makefile.am b/src/Makefile.am
index 4933c71..4933c71 100644
--- a/libayatana-indicator/Makefile.am
+++ b/src/Makefile.am
diff --git a/libayatana-indicator/ayatana-indicator-0.4.pc.in.in b/src/ayatana-indicator-0.4.pc.in.in
index 02ff40d..02ff40d 100644
--- a/libayatana-indicator/ayatana-indicator-0.4.pc.in.in
+++ b/src/ayatana-indicator-0.4.pc.in.in
diff --git a/libayatana-indicator/ayatana-indicator3-0.4.pc.in.in b/src/ayatana-indicator3-0.4.pc.in.in
index ff0862e..ff0862e 100644
--- a/libayatana-indicator/ayatana-indicator3-0.4.pc.in.in
+++ b/src/ayatana-indicator3-0.4.pc.in.in
diff --git a/libayatana-indicator/dbus-shared.h b/src/dbus-shared.h
index b55acef..b55acef 100644
--- a/libayatana-indicator/dbus-shared.h
+++ b/src/dbus-shared.h
diff --git a/libayatana-indicator/indicator-desktop-shortcuts.c b/src/indicator-desktop-shortcuts.c
index be1d632..be1d632 100644
--- a/libayatana-indicator/indicator-desktop-shortcuts.c
+++ b/src/indicator-desktop-shortcuts.c
diff --git a/libayatana-indicator/indicator-desktop-shortcuts.h b/src/indicator-desktop-shortcuts.h
index fb997ea..fb997ea 100644
--- a/libayatana-indicator/indicator-desktop-shortcuts.h
+++ b/src/indicator-desktop-shortcuts.h
diff --git a/libayatana-indicator/indicator-image-helper.c b/src/indicator-image-helper.c
index 2c0e244..2c0e244 100644
--- a/libayatana-indicator/indicator-image-helper.c
+++ b/src/indicator-image-helper.c
diff --git a/libayatana-indicator/indicator-image-helper.h b/src/indicator-image-helper.h
index 290f4e2..290f4e2 100644
--- a/libayatana-indicator/indicator-image-helper.h
+++ b/src/indicator-image-helper.h
diff --git a/libayatana-indicator/indicator-ng.c b/src/indicator-ng.c
index f057600..f057600 100644
--- a/libayatana-indicator/indicator-ng.c
+++ b/src/indicator-ng.c
diff --git a/libayatana-indicator/indicator-ng.h b/src/indicator-ng.h
index f074a47..f074a47 100644
--- a/libayatana-indicator/indicator-ng.h
+++ b/src/indicator-ng.h
diff --git a/libayatana-indicator/indicator-object-enum-types.c.template b/src/indicator-object-enum-types.c.template
index e5b3352..e5b3352 100644
--- a/libayatana-indicator/indicator-object-enum-types.c.template
+++ b/src/indicator-object-enum-types.c.template
diff --git a/libayatana-indicator/indicator-object-enum-types.h.template b/src/indicator-object-enum-types.h.template
index 2ac8ef8..2ac8ef8 100644
--- a/libayatana-indicator/indicator-object-enum-types.h.template
+++ b/src/indicator-object-enum-types.h.template
diff --git a/libayatana-indicator/indicator-object-marshal.list b/src/indicator-object-marshal.list
index 4896ac4..4896ac4 100644
--- a/libayatana-indicator/indicator-object-marshal.list
+++ b/src/indicator-object-marshal.list
diff --git a/libayatana-indicator/indicator-object.c b/src/indicator-object.c
index 50b3078..50b3078 100644
--- a/libayatana-indicator/indicator-object.c
+++ b/src/indicator-object.c
diff --git a/libayatana-indicator/indicator-object.h b/src/indicator-object.h
index e542c0d..e542c0d 100644
--- a/libayatana-indicator/indicator-object.h
+++ b/src/indicator-object.h
diff --git a/libayatana-indicator/indicator-service-manager.c b/src/indicator-service-manager.c
index 33bcba9..33bcba9 100644
--- a/libayatana-indicator/indicator-service-manager.c
+++ b/src/indicator-service-manager.c
diff --git a/libayatana-indicator/indicator-service-manager.h b/src/indicator-service-manager.h
index 7d444c6..7d444c6 100644
--- a/libayatana-indicator/indicator-service-manager.h
+++ b/src/indicator-service-manager.h
diff --git a/libayatana-indicator/indicator-service.c b/src/indicator-service.c
index de3a0cf..de3a0cf 100644
--- a/libayatana-indicator/indicator-service.c
+++ b/src/indicator-service.c
diff --git a/libayatana-indicator/indicator-service.h b/src/indicator-service.h
index bda9cb7..bda9cb7 100644
--- a/libayatana-indicator/indicator-service.h
+++ b/src/indicator-service.h
diff --git a/libayatana-indicator/indicator-service.xml b/src/indicator-service.xml
index 71ef4df..71ef4df 100644
--- a/libayatana-indicator/indicator-service.xml
+++ b/src/indicator-service.xml
diff --git a/libayatana-indicator/indicator.h b/src/indicator.h
index 8bff270..8bff270 100644
--- a/libayatana-indicator/indicator.h
+++ b/src/indicator.h
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 100eb16..476de28 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -9,7 +9,7 @@ TESTS =
DISTCLEANFILES =
XFAIL_TESTS =
-check_PROGRAMS =
+check_PROGRAMS =
lib_LTLIBRARIES = \
libdummy-indicator-blank.la \
@@ -46,7 +46,7 @@ test_loader_CFLAGS = \
test_loader_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
#############################
@@ -66,7 +66,7 @@ test_desktop_shortcuts_CFLAGS = \
test_desktop_shortcuts_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
DS_XML_REPORT = desktop-shortcuts-check-results.xml
@@ -99,7 +99,7 @@ libdummy_indicator_blank_la_CFLAGS = \
libdummy_indicator_blank_la_LIBADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
libdummy_indicator_blank_la_LDFLAGS = \
@@ -120,7 +120,7 @@ libdummy_indicator_null_la_CFLAGS = \
libdummy_indicator_null_la_LIBADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
libdummy_indicator_null_la_LDFLAGS = \
@@ -141,7 +141,7 @@ libdummy_indicator_signaler_la_CFLAGS = \
libdummy_indicator_signaler_la_LIBADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
libdummy_indicator_signaler_la_LDFLAGS = \
@@ -162,7 +162,7 @@ libdummy_indicator_simple_la_CFLAGS = \
libdummy_indicator_simple_la_LIBADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
libdummy_indicator_simple_la_LDFLAGS = \
@@ -184,7 +184,7 @@ libdummy_indicator_entry_func_la_CFLAGS = \
libdummy_indicator_entry_func_la_LIBADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
libdummy_indicator_entry_func_la_LDFLAGS = \
@@ -205,7 +205,7 @@ libdummy_indicator_visible_la_CFLAGS = \
libdummy_indicator_visible_la_LIBADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
libdummy_indicator_visible_la_LDFLAGS = \
@@ -227,7 +227,7 @@ service_shutdown_timeout_CFLAGS = \
service_shutdown_timeout_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
service-shutdown-timeout-tester: service-shutdown-timeout Makefile
@@ -253,7 +253,7 @@ service_manager_no_connect_CFLAGS = \
service_manager_no_connect_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
service-manager-no-connect-tester: service-manager-no-connect Makefile.am
@@ -285,7 +285,7 @@ service_manager_connect_CFLAGS = \
service_manager_connect_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
check_PROGRAMS += service-manager-connect-service
@@ -299,7 +299,7 @@ service_manager_connect_service_CFLAGS = \
service_manager_connect_service_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
service-manager-connect-tester: service-manager-connect service-manager-connect-service session.conf service-manager-connect.service Makefile.am
@@ -332,7 +332,7 @@ service_version_manager_CFLAGS = \
service_version_manager_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
check_PROGRAMS += service-version-bad-service
@@ -347,7 +347,7 @@ service_version_bad_service_CFLAGS = \
service_version_bad_service_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
check_PROGRAMS += service-version-good-service
@@ -362,7 +362,7 @@ service_version_good_service_CFLAGS = \
service_version_good_service_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
service-version-tester: service-version-manager service-version-bad-service service-version-good-service session.conf service-version-bad.service service-version-good.service Makefile.am
@@ -389,7 +389,7 @@ service_version_multiwatch_manager_CFLAGS = \
service_version_multiwatch_manager_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
check_PROGRAMS += service-version-multiwatch-manager-impolite
@@ -404,7 +404,7 @@ service_version_multiwatch_manager_impolite_CFLAGS = \
service_version_multiwatch_manager_impolite_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
check_PROGRAMS += service-version-multiwatch-service
@@ -419,7 +419,7 @@ service_version_multiwatch_service_CFLAGS = \
service_version_multiwatch_service_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
service-version-multiwatch-tester: service-version-multiwatch-manager service-version-multiwatch-service service-version-multiwatch-manager-impolite Makefile.am
@@ -445,7 +445,7 @@ service_manager_nostart_connect_CFLAGS = \
service_manager_nostart_connect_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
service-manager-connect-nostart-tester: service-manager-nostart-connect service-manager-connect-service Makefile.am
@@ -496,7 +496,7 @@ test_indicator_ng_CFLAGS = \
test_indicator_ng_LDADD = \
$(LIBINDICATOR_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
diff --git a/tests/dummy-indicator-blank.c b/tests/dummy-indicator-blank.c
index dcbb99f..b085c52 100644
--- a/tests/dummy-indicator-blank.c
+++ b/tests/dummy-indicator-blank.c
@@ -21,7 +21,7 @@ License along with this library. If not, see
*/
-#include "libayatana-indicator/indicator.h"
+#include "src/indicator.h"
INDICATOR_SET_VERSION
diff --git a/tests/dummy-indicator-entry-func.h b/tests/dummy-indicator-entry-func.h
index c1fa8d3..b5653c7 100644
--- a/tests/dummy-indicator-entry-func.h
+++ b/tests/dummy-indicator-entry-func.h
@@ -26,8 +26,8 @@ License along with this library. If not, see
#include <glib.h>
#include <glib-object.h>
-#include "libayatana-indicator/indicator.h"
-#include "libayatana-indicator/indicator-object.h"
+#include "src/indicator.h"
+#include "src/indicator-object.h"
G_BEGIN_DECLS
@@ -42,15 +42,15 @@ typedef struct _DummyIndicatorEntryFunc DummyIndicatorEntryFunc;
typedef struct _DummyIndicatorEntryFuncClass DummyIndicatorEntryFuncClass;
struct _DummyIndicatorEntryFuncClass {
- IndicatorObjectClass parent_class;
+ IndicatorObjectClass parent_class;
};
struct _DummyIndicatorEntryFunc {
- IndicatorObject parent;
+ IndicatorObject parent;
- gboolean entry_activate_called;
- gboolean entry_activate_window_called;
- gboolean entry_close_called;
+ gboolean entry_activate_called;
+ gboolean entry_activate_window_called;
+ gboolean entry_close_called;
};
#endif /* __DUMMY_INDICATOR_ENTRY_FUNC__ */
diff --git a/tests/dummy-indicator-null.c b/tests/dummy-indicator-null.c
index 5eb8716..ee424d4 100644
--- a/tests/dummy-indicator-null.c
+++ b/tests/dummy-indicator-null.c
@@ -24,8 +24,8 @@ License along with this library. If not, see
#include <glib.h>
#include <glib-object.h>
-#include "libayatana-indicator/indicator.h"
-#include "libayatana-indicator/indicator-object.h"
+#include "src/indicator.h"
+#include "src/indicator-object.h"
#define DUMMY_INDICATOR_NULL_TYPE (dummy_indicator_null_get_type ())
#define DUMMY_INDICATOR_NULL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DUMMY_INDICATOR_NULL_TYPE, DummyIndicatorNull))
@@ -38,11 +38,11 @@ typedef struct _DummyIndicatorNull DummyIndicatorNull;
typedef struct _DummyIndicatorNullClass DummyIndicatorNullClass;
struct _DummyIndicatorNullClass {
- IndicatorObjectClass parent_class;
+ IndicatorObjectClass parent_class;
};
struct _DummyIndicatorNull {
- IndicatorObject parent;
+ IndicatorObject parent;
};
GType dummy_indicator_null_get_type (void);
@@ -54,24 +54,24 @@ INDICATOR_SET_TYPE(DUMMY_INDICATOR_NULL_TYPE)
GtkLabel *
get_label (IndicatorObject * io)
{
- return NULL;
+ return NULL;
}
GtkImage *
get_icon (IndicatorObject * io)
{
- return NULL;
+ return NULL;
}
GtkMenu *
get_menu (IndicatorObject * io)
{
- return NULL;
+ return NULL;
}
const gchar *
get_accessible_desc (IndicatorObject * io)
{
- return NULL;
+ return NULL;
}
static void dummy_indicator_null_class_init (DummyIndicatorNullClass *klass);
@@ -84,40 +84,40 @@ G_DEFINE_TYPE (DummyIndicatorNull, dummy_indicator_null, INDICATOR_OBJECT_TYPE);
static void
dummy_indicator_null_class_init (DummyIndicatorNullClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->dispose = dummy_indicator_null_dispose;
- object_class->finalize = dummy_indicator_null_finalize;
+ object_class->dispose = dummy_indicator_null_dispose;
+ object_class->finalize = dummy_indicator_null_finalize;
- IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
+ IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
- io_class->get_label = get_label;
- io_class->get_image = get_icon;
- io_class->get_menu = get_menu;
- io_class->get_accessible_desc = get_accessible_desc;
+ io_class->get_label = get_label;
+ io_class->get_image = get_icon;
+ io_class->get_menu = get_menu;
+ io_class->get_accessible_desc = get_accessible_desc;
- return;
+ return;
}
static void
dummy_indicator_null_init (DummyIndicatorNull *self)
{
- return;
+ return;
}
static void
dummy_indicator_null_dispose (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_null_parent_class)->dispose (object);
- return;
+ G_OBJECT_CLASS (dummy_indicator_null_parent_class)->dispose (object);
+ return;
}
static void
dummy_indicator_null_finalize (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_null_parent_class)->finalize (object);
- return;
+ G_OBJECT_CLASS (dummy_indicator_null_parent_class)->finalize (object);
+ return;
}
diff --git a/tests/dummy-indicator-signaler.c b/tests/dummy-indicator-signaler.c
index f73f35e..c963c6d 100644
--- a/tests/dummy-indicator-signaler.c
+++ b/tests/dummy-indicator-signaler.c
@@ -23,8 +23,8 @@ License along with this library. If not, see
#include <glib.h>
#include <glib-object.h>
-#include "libayatana-indicator/indicator.h"
-#include "libayatana-indicator/indicator-object.h"
+#include "src/indicator.h"
+#include "src/indicator-object.h"
#define DUMMY_INDICATOR_SIGNALER_TYPE (dummy_indicator_signaler_get_type ())
#define DUMMY_INDICATOR_SIGNALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DUMMY_INDICATOR_SIGNALER_TYPE, DummyIndicatorSignaler))
@@ -37,12 +37,12 @@ typedef struct _DummyIndicatorSignaler DummyIndicatorSignaler;
typedef struct _DummyIndicatorSignalerClass DummyIndicatorSignalerClass;
struct _DummyIndicatorSignalerClass {
- IndicatorObjectClass parent_class;
+ IndicatorObjectClass parent_class;
};
struct _DummyIndicatorSignaler {
- IndicatorObject parent;
- IndicatorObjectEntry *entries;
+ IndicatorObject parent;
+ IndicatorObjectEntry *entries;
};
GType dummy_indicator_signaler_get_type (void);
@@ -53,30 +53,30 @@ INDICATOR_SET_TYPE(DUMMY_INDICATOR_SIGNALER_TYPE)
GtkLabel *
get_label (IndicatorObject * io)
{
- return GTK_LABEL(gtk_label_new("Signaler Item"));
+ return GTK_LABEL(gtk_label_new("Signaler Item"));
}
GtkImage *
get_icon (IndicatorObject * io)
{
- return GTK_IMAGE(gtk_image_new());
+ return GTK_IMAGE(gtk_image_new());
}
GtkMenu *
get_menu (IndicatorObject * io)
{
- GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
- GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
- gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
- gtk_widget_show(GTK_WIDGET(loading_item));
+ GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
+ GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
+ gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
+ gtk_widget_show(GTK_WIDGET(loading_item));
- return main_menu;
+ return main_menu;
}
const gchar *
get_accessible_desc (IndicatorObject * io)
{
- return "Signaler Item";
+ return "Signaler Item";
}
static void dummy_indicator_signaler_class_init (DummyIndicatorSignalerClass *klass);
@@ -89,66 +89,66 @@ G_DEFINE_TYPE (DummyIndicatorSignaler, dummy_indicator_signaler, INDICATOR_OBJEC
static void
dummy_indicator_signaler_class_init (DummyIndicatorSignalerClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->dispose = dummy_indicator_signaler_dispose;
- object_class->finalize = dummy_indicator_signaler_finalize;
+ object_class->dispose = dummy_indicator_signaler_dispose;
+ object_class->finalize = dummy_indicator_signaler_finalize;
- IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
+ IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
- io_class->get_label = get_label;
- io_class->get_image = get_icon;
- io_class->get_menu = get_menu;
- io_class->get_accessible_desc = get_accessible_desc;
- io_class->entry_being_removed = NULL;
- io_class->entry_was_added = NULL;
+ io_class->get_label = get_label;
+ io_class->get_image = get_icon;
+ io_class->get_menu = get_menu;
+ io_class->get_accessible_desc = get_accessible_desc;
+ io_class->entry_being_removed = NULL;
+ io_class->entry_was_added = NULL;
- return;
+ return;
}
static gboolean
idle_signal (gpointer data)
{
- DummyIndicatorSignaler * self = DUMMY_INDICATOR_SIGNALER(data);
+ DummyIndicatorSignaler * self = DUMMY_INDICATOR_SIGNALER(data);
- IndicatorObjectEntry *added_entry, *removed_entry, *moved_entry;
+ IndicatorObjectEntry *added_entry, *removed_entry, *moved_entry;
- added_entry = &self->entries[0];
- moved_entry = &self->entries[1];
- removed_entry = &self->entries[2];
+ added_entry = &self->entries[0];
+ moved_entry = &self->entries[1];
+ removed_entry = &self->entries[2];
- added_entry->name_hint = "added";
- moved_entry->name_hint = "moved";
- removed_entry->name_hint = "removed";
+ added_entry->name_hint = "added";
+ moved_entry->name_hint = "moved";
+ removed_entry->name_hint = "removed";
- g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED_ID, 0, added_entry);
- g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED_ID, 0, moved_entry, 0, 1);
- g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED_ID, 0, removed_entry);
+ g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED_ID, 0, added_entry);
+ g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED_ID, 0, moved_entry, 0, 1);
+ g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED_ID, 0, removed_entry);
- return FALSE; /* Don't queue again */
+ return FALSE; /* Don't queue again */
}
static void
dummy_indicator_signaler_init (DummyIndicatorSignaler *self)
{
- self->entries = g_new0(IndicatorObjectEntry, 3);
- g_idle_add(idle_signal, self);
- return;
+ self->entries = g_new0(IndicatorObjectEntry, 3);
+ g_idle_add(idle_signal, self);
+ return;
}
static void
dummy_indicator_signaler_dispose (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_signaler_parent_class)->dispose (object);
- return;
+ G_OBJECT_CLASS (dummy_indicator_signaler_parent_class)->dispose (object);
+ return;
}
static void
dummy_indicator_signaler_finalize (GObject *object)
{
- DummyIndicatorSignaler * self = DUMMY_INDICATOR_SIGNALER(object);
- g_free (self->entries);
- G_OBJECT_CLASS (dummy_indicator_signaler_parent_class)->finalize (object);
- return;
+ DummyIndicatorSignaler * self = DUMMY_INDICATOR_SIGNALER(object);
+ g_free (self->entries);
+ G_OBJECT_CLASS (dummy_indicator_signaler_parent_class)->finalize (object);
+ return;
}
diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c
index 69a9c1d..d62c991 100644
--- a/tests/dummy-indicator-simple.c
+++ b/tests/dummy-indicator-simple.c
@@ -23,8 +23,8 @@ License along with this library. If not, see
#include <glib.h>
#include <glib-object.h>
-#include "libayatana-indicator/indicator.h"
-#include "libayatana-indicator/indicator-object.h"
+#include "src/indicator.h"
+#include "src/indicator-object.h"
#define DUMMY_INDICATOR_SIMPLE_TYPE (dummy_indicator_simple_get_type ())
#define DUMMY_INDICATOR_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DUMMY_INDICATOR_SIMPLE_TYPE, DummyIndicatorSimple))
@@ -37,11 +37,11 @@ typedef struct _DummyIndicatorSimple DummyIndicatorSimple;
typedef struct _DummyIndicatorSimpleClass DummyIndicatorSimpleClass;
struct _DummyIndicatorSimpleClass {
- IndicatorObjectClass parent_class;
+ IndicatorObjectClass parent_class;
};
struct _DummyIndicatorSimple {
- IndicatorObject parent;
+ IndicatorObject parent;
};
GType dummy_indicator_simple_get_type (void);
@@ -52,30 +52,30 @@ INDICATOR_SET_TYPE(DUMMY_INDICATOR_SIMPLE_TYPE)
GtkLabel *
get_label (IndicatorObject * io)
{
- return GTK_LABEL(gtk_label_new("Simple Item"));
+ return GTK_LABEL(gtk_label_new("Simple Item"));
}
GtkImage *
get_icon (IndicatorObject * io)
{
- return GTK_IMAGE(gtk_image_new());
+ return GTK_IMAGE(gtk_image_new());
}
GtkMenu *
get_menu (IndicatorObject * io)
{
- GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
- GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
- gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
- gtk_widget_show(GTK_WIDGET(loading_item));
+ GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
+ GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
+ gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
+ gtk_widget_show(GTK_WIDGET(loading_item));
- return main_menu;
+ return main_menu;
}
const gchar *
get_accessible_desc (IndicatorObject * io)
{
- return "Simple Item";
+ return "Simple Item";
}
static void dummy_indicator_simple_class_init (DummyIndicatorSimpleClass *klass);
@@ -88,40 +88,40 @@ G_DEFINE_TYPE (DummyIndicatorSimple, dummy_indicator_simple, INDICATOR_OBJECT_TY
static void
dummy_indicator_simple_class_init (DummyIndicatorSimpleClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->dispose = dummy_indicator_simple_dispose;
- object_class->finalize = dummy_indicator_simple_finalize;
+ object_class->dispose = dummy_indicator_simple_dispose;
+ object_class->finalize = dummy_indicator_simple_finalize;
- IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
+ IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
- io_class->get_label = get_label;
- io_class->get_image = get_icon;
- io_class->get_menu = get_menu;
- io_class->get_accessible_desc = get_accessible_desc;
+ io_class->get_label = get_label;
+ io_class->get_image = get_icon;
+ io_class->get_menu = get_menu;
+ io_class->get_accessible_desc = get_accessible_desc;
- return;
+ return;
}
static void
dummy_indicator_simple_init (DummyIndicatorSimple *self)
{
- return;
+ return;
}
static void
dummy_indicator_simple_dispose (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_simple_parent_class)->dispose (object);
- return;
+ G_OBJECT_CLASS (dummy_indicator_simple_parent_class)->dispose (object);
+ return;
}
static void
dummy_indicator_simple_finalize (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_simple_parent_class)->finalize (object);
- return;
+ G_OBJECT_CLASS (dummy_indicator_simple_parent_class)->finalize (object);
+ return;
}
diff --git a/tests/dummy-indicator-visible.c b/tests/dummy-indicator-visible.c
index 05bc9ad..a9dbaf7 100644
--- a/tests/dummy-indicator-visible.c
+++ b/tests/dummy-indicator-visible.c
@@ -23,8 +23,8 @@ License along with this library. If not, see
#include <glib.h>
#include <glib-object.h>
-#include "libayatana-indicator/indicator.h"
-#include "libayatana-indicator/indicator-object.h"
+#include "src/indicator.h"
+#include "src/indicator-object.h"
#define DUMMY_INDICATOR_VISIBLE_TYPE (dummy_indicator_visible_get_type ())
#define DUMMY_INDICATOR_VISIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DUMMY_INDICATOR_VISIBLE_TYPE, DummyIndicatorVisible))
@@ -37,11 +37,11 @@ typedef struct _DummyIndicatorVisible DummyIndicatorVisible;
typedef struct _DummyIndicatorVisibleClass DummyIndicatorVisibleClass;
struct _DummyIndicatorVisibleClass {
- IndicatorObjectClass parent_class;
+ IndicatorObjectClass parent_class;
};
struct _DummyIndicatorVisible {
- IndicatorObject parent;
+ IndicatorObject parent;
};
GType dummy_indicator_visible_get_type (void);
@@ -52,30 +52,30 @@ INDICATOR_SET_TYPE(DUMMY_INDICATOR_VISIBLE_TYPE)
GtkLabel *
get_label (IndicatorObject * io)
{
- return GTK_LABEL(gtk_label_new("Visible Item"));
+ return GTK_LABEL(gtk_label_new("Visible Item"));
}
GtkImage *
get_icon (IndicatorObject * io)
{
- return GTK_IMAGE(gtk_image_new());
+ return GTK_IMAGE(gtk_image_new());
}
GtkMenu *
get_menu (IndicatorObject * io)
{
- GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
- GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
- gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
- gtk_widget_show(GTK_WIDGET(loading_item));
+ GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
+ GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
+ gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
+ gtk_widget_show(GTK_WIDGET(loading_item));
- return main_menu;
+ return main_menu;
}
const gchar *
get_accessible_desc (IndicatorObject * io)
{
- return "Visible Item";
+ return "Visible Item";
}
static void dummy_indicator_visible_class_init (DummyIndicatorVisibleClass *klass);
@@ -88,43 +88,43 @@ G_DEFINE_TYPE (DummyIndicatorVisible, dummy_indicator_visible, INDICATOR_OBJECT_
static void
dummy_indicator_entry_being_removed (IndicatorObject * io, IndicatorObjectEntry * entry)
{
- IndicatorObjectClass * indicator_object_class = INDICATOR_OBJECT_CLASS (dummy_indicator_visible_parent_class);
+ IndicatorObjectClass * indicator_object_class = INDICATOR_OBJECT_CLASS (dummy_indicator_visible_parent_class);
- g_object_set_data(G_OBJECT(entry->label), "is-hidden", GINT_TO_POINTER(1));
+ g_object_set_data(G_OBJECT(entry->label), "is-hidden", GINT_TO_POINTER(1));
- if (indicator_object_class->entry_being_removed != NULL) {
- indicator_object_class->entry_being_removed (io, entry);
- }
+ if (indicator_object_class->entry_being_removed != NULL) {
+ indicator_object_class->entry_being_removed (io, entry);
+ }
}
static void
dummy_indicator_entry_was_added (IndicatorObject * io, IndicatorObjectEntry * entry)
{
- IndicatorObjectClass * indicator_object_class = INDICATOR_OBJECT_CLASS (dummy_indicator_visible_parent_class);
+ IndicatorObjectClass * indicator_object_class = INDICATOR_OBJECT_CLASS (dummy_indicator_visible_parent_class);
- g_object_steal_data(G_OBJECT(entry->label), "is-hidden");
+ g_object_steal_data(G_OBJECT(entry->label), "is-hidden");
- if (indicator_object_class->entry_was_added != NULL) {
- indicator_object_class->entry_was_added (io, entry);
- }
+ if (indicator_object_class->entry_was_added != NULL) {
+ indicator_object_class->entry_was_added (io, entry);
+ }
}
static void
dummy_indicator_visible_class_init (DummyIndicatorVisibleClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->dispose = dummy_indicator_visible_dispose;
- object_class->finalize = dummy_indicator_visible_finalize;
+ object_class->dispose = dummy_indicator_visible_dispose;
+ object_class->finalize = dummy_indicator_visible_finalize;
- IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
+ IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
- io_class->get_label = get_label;
- io_class->get_image = get_icon;
- io_class->get_menu = get_menu;
- io_class->get_accessible_desc = get_accessible_desc;
- io_class->entry_being_removed = dummy_indicator_entry_being_removed;
- io_class->entry_was_added = dummy_indicator_entry_was_added;
+ io_class->get_label = get_label;
+ io_class->get_image = get_icon;
+ io_class->get_menu = get_menu;
+ io_class->get_accessible_desc = get_accessible_desc;
+ io_class->entry_being_removed = dummy_indicator_entry_being_removed;
+ io_class->entry_was_added = dummy_indicator_entry_was_added;
}
static void
@@ -136,12 +136,12 @@ static void
dummy_indicator_visible_dispose (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_visible_parent_class)->dispose (object);
+ G_OBJECT_CLASS (dummy_indicator_visible_parent_class)->dispose (object);
}
static void
dummy_indicator_visible_finalize (GObject *object)
{
- G_OBJECT_CLASS (dummy_indicator_visible_parent_class)->finalize (object);
+ G_OBJECT_CLASS (dummy_indicator_visible_parent_class)->finalize (object);
}
diff --git a/tests/service-manager-connect-service.c b/tests/service-manager-connect-service.c
index fb00712..85c353e 100644
--- a/tests/service-manager-connect-service.c
+++ b/tests/service-manager-connect-service.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service.h"
+#include "src/indicator-service.h"
static GMainLoop * mainloop = NULL;
static gboolean passed = FALSE;
diff --git a/tests/service-manager-connect.c b/tests/service-manager-connect.c
index d4774f7..902efaa 100644
--- a/tests/service-manager-connect.c
+++ b/tests/service-manager-connect.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service-manager.h"
+#include "src/indicator-service-manager.h"
static GMainLoop * mainloop = NULL;
static gboolean passed = FALSE;
diff --git a/tests/service-manager-no-connect.c b/tests/service-manager-no-connect.c
index 7aeffc2..5f81118 100644
--- a/tests/service-manager-no-connect.c
+++ b/tests/service-manager-no-connect.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service-manager.h"
+#include "src/indicator-service-manager.h"
static GMainLoop * mainloop = NULL;
static gboolean passed = FALSE;
diff --git a/tests/service-manager-nostart-connect.c b/tests/service-manager-nostart-connect.c
index 36d1bdd..a0b09c3 100644
--- a/tests/service-manager-nostart-connect.c
+++ b/tests/service-manager-nostart-connect.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service-manager.h"
+#include "src/indicator-service-manager.h"
static GMainLoop * mainloop = NULL;
static gboolean passed = FALSE;
diff --git a/tests/service-shutdown-timeout.c b/tests/service-shutdown-timeout.c
index e044216..5407c27 100644
--- a/tests/service-shutdown-timeout.c
+++ b/tests/service-shutdown-timeout.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service.h"
+#include "src/indicator-service.h"
static GMainLoop * mainloop = NULL;
static gboolean passed = FALSE;
diff --git a/tests/service-version-bad-service.c b/tests/service-version-bad-service.c
index f78f6e1..e5e3287 100644
--- a/tests/service-version-bad-service.c
+++ b/tests/service-version-bad-service.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service.h"
+#include "src/indicator-service.h"
#include "service-version-values.h"
static GMainLoop * mainloop = NULL;
diff --git a/tests/service-version-good-service.c b/tests/service-version-good-service.c
index a811d96..7a4abbb 100644
--- a/tests/service-version-good-service.c
+++ b/tests/service-version-good-service.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service.h"
+#include "src/indicator-service.h"
#include "service-version-values.h"
static GMainLoop * mainloop = NULL;
diff --git a/tests/service-version-manager.c b/tests/service-version-manager.c
index 370dbd0..85e1b37 100644
--- a/tests/service-version-manager.c
+++ b/tests/service-version-manager.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service-manager.h"
+#include "src/indicator-service-manager.h"
#include "service-version-values.h"
static GMainLoop * mainloop = NULL;
diff --git a/tests/service-version-multiwatch-manager-impolite.c b/tests/service-version-multiwatch-manager-impolite.c
index 4e3a5a9..c22736e 100644
--- a/tests/service-version-multiwatch-manager-impolite.c
+++ b/tests/service-version-multiwatch-manager-impolite.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service-manager.h"
+#include "src/indicator-service-manager.h"
#include "service-version-values.h"
static GMainLoop * mainloop = NULL;
diff --git a/tests/service-version-multiwatch-manager.c b/tests/service-version-multiwatch-manager.c
index c24b41d..32a0079 100644
--- a/tests/service-version-multiwatch-manager.c
+++ b/tests/service-version-multiwatch-manager.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service-manager.h"
+#include "src/indicator-service-manager.h"
#include "service-version-values.h"
static GMainLoop * mainloop = NULL;
diff --git a/tests/service-version-multiwatch-service.c b/tests/service-version-multiwatch-service.c
index 1a43414..ffad013 100644
--- a/tests/service-version-multiwatch-service.c
+++ b/tests/service-version-multiwatch-service.c
@@ -22,7 +22,7 @@ License along with this library. If not, see
#include <glib.h>
-#include "libayatana-indicator/indicator-service.h"
+#include "src/indicator-service.h"
#include "service-version-values.h"
static GMainLoop * mainloop = NULL;
diff --git a/tests/test-desktop-shortcuts.c b/tests/test-desktop-shortcuts.c
index 59084dd..02e313a 100644
--- a/tests/test-desktop-shortcuts.c
+++ b/tests/test-desktop-shortcuts.c
@@ -21,7 +21,7 @@ License along with this library. If not, see
*/
#include <gtk/gtk.h>
-#include "libayatana-indicator/indicator-desktop-shortcuts.h"
+#include "src/indicator-desktop-shortcuts.h"
/* Basic object creation and destruction. Stop big
f*** ups here. */
diff --git a/tests/test-indicator-ng.c b/tests/test-indicator-ng.c
index 0844334..dd0592f 100644
--- a/tests/test-indicator-ng.c
+++ b/tests/test-indicator-ng.c
@@ -1,5 +1,5 @@
-#include <libayatana-indicator/indicator-ng.h>
+#include "src/indicator-ng.h"
static void
indicator_ng_test_func (gconstpointer user_data)
diff --git a/tests/test-loader.c b/tests/test-loader.c
index 5f9b8d3..c1e4b6d 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -21,78 +21,78 @@ License along with this library. If not, see
*/
#include <gtk/gtk.h>
-#include "libayatana-indicator/indicator-object.h"
+#include "src/indicator-object.h"
#include "dummy-indicator-entry-func.h"
void
entry_func_swap (IndicatorObject * io)
{
- static void (*saved_func) (IndicatorObject * io, IndicatorObjectEntry * entry, guint windowid, guint timestamp) = NULL;
- IndicatorObjectClass * klass = INDICATOR_OBJECT_GET_CLASS(io);
+ static void (*saved_func) (IndicatorObject * io, IndicatorObjectEntry * entry, guint windowid, guint timestamp) = NULL;
+ IndicatorObjectClass * klass = INDICATOR_OBJECT_GET_CLASS(io);
- if (saved_func == NULL) {
- saved_func = klass->entry_activate_window;
- }
+ if (saved_func == NULL) {
+ saved_func = klass->entry_activate_window;
+ }
- if (klass->entry_activate_window == NULL) {
- klass->entry_activate_window = saved_func;
- } else {
- klass->entry_activate_window = NULL;
- }
+ if (klass->entry_activate_window == NULL) {
+ klass->entry_activate_window = saved_func;
+ } else {
+ klass->entry_activate_window = NULL;
+ }
- return;
+ return;
}
void
test_loader_entry_func_window (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-entry-func.so");
- g_assert(object != NULL);
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-entry-func.so");
+ g_assert(object != NULL);
- DummyIndicatorEntryFunc * entryfunc = (DummyIndicatorEntryFunc *)(object);
+ DummyIndicatorEntryFunc * entryfunc = (DummyIndicatorEntryFunc *)(object);
- entryfunc->entry_activate_called = FALSE;
- entryfunc->entry_activate_window_called = FALSE;
- entryfunc->entry_close_called = FALSE;
+ entryfunc->entry_activate_called = FALSE;
+ entryfunc->entry_activate_window_called = FALSE;
+ entryfunc->entry_close_called = FALSE;
- entry_func_swap(object);
- indicator_object_entry_activate_window(object, NULL, 0, 0);
- g_assert(entryfunc->entry_activate_called);
+ entry_func_swap(object);
+ indicator_object_entry_activate_window(object, NULL, 0, 0);
+ g_assert(entryfunc->entry_activate_called);
- entry_func_swap(object);
- indicator_object_entry_activate_window(object, NULL, 0, 0);
- g_assert(entryfunc->entry_activate_window_called);
+ entry_func_swap(object);
+ indicator_object_entry_activate_window(object, NULL, 0, 0);
+ g_assert(entryfunc->entry_activate_window_called);
- g_object_unref(object);
+ g_object_unref(object);
- return;
+ return;
}
void
test_loader_entry_funcs (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-entry-func.so");
- g_assert(object != NULL);
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-entry-func.so");
+ g_assert(object != NULL);
- DummyIndicatorEntryFunc * entryfunc = (DummyIndicatorEntryFunc *)(object);
+ DummyIndicatorEntryFunc * entryfunc = (DummyIndicatorEntryFunc *)(object);
- entryfunc->entry_activate_called = FALSE;
- entryfunc->entry_activate_window_called = FALSE;
- entryfunc->entry_close_called = FALSE;
+ entryfunc->entry_activate_called = FALSE;
+ entryfunc->entry_activate_window_called = FALSE;
+ entryfunc->entry_close_called = FALSE;
- indicator_object_entry_activate(object, NULL, 0);
- g_assert(entryfunc->entry_activate_called);
+ indicator_object_entry_activate(object, NULL, 0);
+ g_assert(entryfunc->entry_activate_called);
- indicator_object_entry_activate_window(object, NULL, 0, 0);
- g_assert(entryfunc->entry_activate_window_called);
+ indicator_object_entry_activate_window(object, NULL, 0, 0);
+ g_assert(entryfunc->entry_activate_window_called);
- indicator_object_entry_close(object, NULL, 0);
- g_assert(entryfunc->entry_close_called);
+ indicator_object_entry_close(object, NULL, 0);
+ g_assert(entryfunc->entry_close_called);
- g_object_unref(object);
+ g_object_unref(object);
- return;
+ return;
}
void destroy_cb (gpointer data, GObject * object);
@@ -100,53 +100,53 @@ void destroy_cb (gpointer data, GObject * object);
void
entry_change_cb (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer data)
{
- IndicatorObjectEntry *other_entry = data;
- other_entry->name_hint = entry->name_hint;
- other_entry->parent_object = entry->parent_object;
- return;
+ IndicatorObjectEntry *other_entry = data;
+ other_entry->name_hint = entry->name_hint;
+ other_entry->parent_object = entry->parent_object;
+ return;
}
void
entry_move_cb (IndicatorObject * io, IndicatorObjectEntry * entry, gint old, gint new, gpointer data)
{
- return entry_change_cb(io, entry, data);
+ return entry_change_cb(io, entry, data);
}
void
test_loader_filename_dummy_signaler (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-signaler.so");
- g_assert(object != NULL);
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-signaler.so");
+ g_assert(object != NULL);
- IndicatorObjectEntry *added_entry, *moved_entry, *removed_entry;
- IndicatorObjectEntry entries[3];
+ IndicatorObjectEntry *added_entry, *moved_entry, *removed_entry;
+ IndicatorObjectEntry entries[3];
- added_entry = &entries[0];
- moved_entry = &entries[1];
- removed_entry = &entries[2];
+ added_entry = &entries[0];
+ moved_entry = &entries[1];
+ removed_entry = &entries[2];
- g_signal_connect_after(G_OBJECT(object), INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED, G_CALLBACK(entry_change_cb), added_entry);
- g_signal_connect_after(G_OBJECT(object), INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED, G_CALLBACK(entry_move_cb), moved_entry);
- g_signal_connect_after(G_OBJECT(object), INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED, G_CALLBACK(entry_change_cb), removed_entry);
+ g_signal_connect_after(G_OBJECT(object), INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED, G_CALLBACK(entry_change_cb), added_entry);
+ g_signal_connect_after(G_OBJECT(object), INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED, G_CALLBACK(entry_move_cb), moved_entry);
+ g_signal_connect_after(G_OBJECT(object), INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED, G_CALLBACK(entry_change_cb), removed_entry);
- GList * list = indicator_object_get_entries(object);
- g_assert(list != NULL);
- g_list_free(list);
+ GList * list = indicator_object_get_entries(object);
+ g_assert(list != NULL);
+ g_list_free(list);
- while (g_main_context_pending(NULL)) {
- g_main_context_iteration(NULL, TRUE);
- }
+ while (g_main_context_pending(NULL)) {
+ g_main_context_iteration(NULL, TRUE);
+ }
- g_assert(g_strcmp0(added_entry->name_hint, "added") == 0);
- g_assert(g_strcmp0(removed_entry->name_hint, "removed") == 0);
- g_assert(g_strcmp0(moved_entry->name_hint, "moved") == 0);
+ g_assert(g_strcmp0(added_entry->name_hint, "added") == 0);
+ g_assert(g_strcmp0(removed_entry->name_hint, "removed") == 0);
+ g_assert(g_strcmp0(moved_entry->name_hint, "moved") == 0);
- g_assert(added_entry->parent_object == object);
- g_assert(removed_entry->parent_object == NULL);
+ g_assert(added_entry->parent_object == object);
+ g_assert(removed_entry->parent_object == NULL);
- g_object_unref(object);
+ g_object_unref(object);
- return;
+ return;
}
/***
@@ -156,86 +156,86 @@ test_loader_filename_dummy_signaler (void)
static void
visible_entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer box)
{
- GtkWidget * child = GTK_WIDGET (entry->label);
- g_assert (child != NULL);
-
- if (g_object_get_data (G_OBJECT(child), "frame-parent") == NULL)
- {
- GtkWidget * frame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER(frame), child);
- gtk_box_pack_start (GTK_BOX(box), frame, FALSE, FALSE, 0);
- g_object_set_data (G_OBJECT(child), "frame-parent", frame);
- }
+ GtkWidget * child = GTK_WIDGET (entry->label);
+ g_assert (child != NULL);
+
+ if (g_object_get_data (G_OBJECT(child), "frame-parent") == NULL)
+ {
+ GtkWidget * frame = gtk_frame_new (NULL);
+ gtk_container_add (GTK_CONTAINER(frame), child);
+ gtk_box_pack_start (GTK_BOX(box), frame, FALSE, FALSE, 0);
+ g_object_set_data (G_OBJECT(child), "frame-parent", frame);
+ }
}
static void
visible_entry_removed (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer box)
{
- GtkWidget * child = GTK_WIDGET (entry->label);
- g_assert (child != NULL);
- g_assert (g_object_get_data (G_OBJECT(child), "frame-parent") != NULL);
+ GtkWidget * child = GTK_WIDGET (entry->label);
+ g_assert (child != NULL);
+ g_assert (g_object_get_data (G_OBJECT(child), "frame-parent") != NULL);
}
void
test_loader_filename_dummy_visible (void)
{
- const GQuark is_hidden_quark = g_quark_from_static_string ("is-hidden");
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-visible.so");
- g_assert(object != NULL);
+ const GQuark is_hidden_quark = g_quark_from_static_string ("is-hidden");
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-visible.so");
+ g_assert(object != NULL);
- // create our local parent widgetry
+ // create our local parent widgetry
#if GTK_CHECK_VERSION(3,0,0)
- GtkWidget * box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ GtkWidget * box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
#else
- GtkWidget * box = gtk_hbox_new (TRUE, 0);
+ GtkWidget * box = gtk_hbox_new (TRUE, 0);
#endif
- g_signal_connect(object, INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED,
- G_CALLBACK(visible_entry_added), box);
- g_signal_connect(object, INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED,
- G_CALLBACK(visible_entry_removed), box);
-
- // on startup, DummyVisible has one entry and it has a label
- GList * list = indicator_object_get_entries(object);
- g_assert(g_list_length(list) == 1);
- IndicatorObjectEntry * entry = list->data;
- g_assert(entry != NULL);
- g_list_free(list);
- g_assert(GTK_IS_LABEL(entry->label));
- g_assert(entry->parent_object == object);
- g_assert(INDICATOR_IS_OBJECT(entry->parent_object));
- GtkWidget * label = GTK_WIDGET(entry->label);
+ g_signal_connect(object, INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED,
+ G_CALLBACK(visible_entry_added), box);
+ g_signal_connect(object, INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED,
+ G_CALLBACK(visible_entry_removed), box);
+
+ // on startup, DummyVisible has one entry and it has a label
+ GList * list = indicator_object_get_entries(object);
+ g_assert(g_list_length(list) == 1);
+ IndicatorObjectEntry * entry = list->data;
+ g_assert(entry != NULL);
+ g_list_free(list);
+ g_assert(GTK_IS_LABEL(entry->label));
+ g_assert(entry->parent_object == object);
+ g_assert(INDICATOR_IS_OBJECT(entry->parent_object));
+ GtkWidget * label = GTK_WIDGET(entry->label);
g_assert(g_object_get_qdata(G_OBJECT(label), is_hidden_quark) == NULL);
- // add the inital entry to our local parent widgetry
- visible_entry_added (object, entry, box);
- entry = NULL;
- list = gtk_container_get_children (GTK_CONTAINER(box));
- g_assert(g_list_length(list) == 1);
- g_list_free(list);
-
- // hide the entries and confirm that the label survived
- indicator_object_set_visible (object, FALSE);
- while (g_main_context_pending(NULL))
- g_main_context_iteration(NULL, TRUE);
- g_assert(GTK_IS_LABEL(label));
+ // add the inital entry to our local parent widgetry
+ visible_entry_added (object, entry, box);
+ entry = NULL;
+ list = gtk_container_get_children (GTK_CONTAINER(box));
+ g_assert(g_list_length(list) == 1);
+ g_list_free(list);
+
+ // hide the entries and confirm that the label survived
+ indicator_object_set_visible (object, FALSE);
+ while (g_main_context_pending(NULL))
+ g_main_context_iteration(NULL, TRUE);
+ g_assert(GTK_IS_LABEL(label));
g_assert(g_object_get_qdata(G_OBJECT(label), is_hidden_quark) != NULL);
- list = gtk_container_get_children (GTK_CONTAINER(box));
- g_assert(g_list_length(list) == 1);
- g_list_free(list);
-
- // restore the entries and confirm that the label survived
- indicator_object_set_visible (object, TRUE);
- while (g_main_context_pending(NULL))
- g_main_context_iteration(NULL, TRUE);
- g_assert(GTK_IS_LABEL(label));
+ list = gtk_container_get_children (GTK_CONTAINER(box));
+ g_assert(g_list_length(list) == 1);
+ g_list_free(list);
+
+ // restore the entries and confirm that the label survived
+ indicator_object_set_visible (object, TRUE);
+ while (g_main_context_pending(NULL))
+ g_main_context_iteration(NULL, TRUE);
+ g_assert(GTK_IS_LABEL(label));
g_assert(g_object_get_qdata(G_OBJECT(label), is_hidden_quark) == NULL);
- list = gtk_container_get_children (GTK_CONTAINER(box));
- g_assert(g_list_length(list) == 1);
- g_list_free(list);
+ list = gtk_container_get_children (GTK_CONTAINER(box));
+ g_assert(g_list_length(list) == 1);
+ g_list_free(list);
- // cleanup
- g_object_unref(object);
- gtk_widget_destroy(box);
+ // cleanup
+ g_object_unref(object);
+ gtk_widget_destroy(box);
}
/***
@@ -245,129 +245,129 @@ test_loader_filename_dummy_visible (void)
void
test_loader_filename_dummy_simple_location (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so");
- g_assert(object != NULL);
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so");
+ g_assert(object != NULL);
- GList * entries = indicator_object_get_entries(object);
- g_assert(entries != NULL);
- g_assert(g_list_length(entries) == 1);
+ GList * entries = indicator_object_get_entries(object);
+ g_assert(entries != NULL);
+ g_assert(g_list_length(entries) == 1);
- IndicatorObjectEntry *entry = entries->data;
+ IndicatorObjectEntry *entry = entries->data;
- g_assert(indicator_object_get_location(object, entry) == 0);
- g_assert(indicator_object_get_location(object, NULL) == 0);
- g_assert(entry->parent_object == object);
+ g_assert(indicator_object_get_location(object, entry) == 0);
+ g_assert(indicator_object_get_location(object, NULL) == 0);
+ g_assert(entry->parent_object == object);
- g_object_unref(object);
+ g_object_unref(object);
- return;
+ return;
}
void
test_loader_filename_dummy_simple_accessors (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so");
- g_assert(object != NULL);
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so");
+ g_assert(object != NULL);
- g_assert(indicator_object_get_entries(object) != NULL);
+ g_assert(indicator_object_get_entries(object) != NULL);
- g_object_unref(object);
+ g_object_unref(object);
- return;
+ return;
}
void
test_loader_filename_dummy_simple (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so");
- g_assert(object != NULL);
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so");
+ g_assert(object != NULL);
- gboolean unreffed = FALSE;
- g_object_weak_ref(G_OBJECT(object), destroy_cb, &unreffed);
+ gboolean unreffed = FALSE;
+ g_object_weak_ref(G_OBJECT(object), destroy_cb, &unreffed);
- g_object_unref(object);
- g_assert(unreffed == TRUE);
+ g_object_unref(object);
+ g_assert(unreffed == TRUE);
- return;
+ return;
}
void
test_loader_filename_dummy_blank (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-blank.so");
- g_assert(object == NULL);
- return;
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-blank.so");
+ g_assert(object == NULL);
+ return;
}
void
test_loader_filename_dummy_null (void)
{
- IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-null.so");
- g_assert(object != NULL);
- g_assert(indicator_object_get_entries(object) == NULL);
- g_object_unref(G_OBJECT(object));
- return;
+ IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-null.so");
+ g_assert(object != NULL);
+ g_assert(indicator_object_get_entries(object) == NULL);
+ g_object_unref(G_OBJECT(object));
+ return;
}
void
test_loader_filename_bad (void)
{
- IndicatorObject * object = indicator_object_new_from_file("/this/file/should/not/exist.so");
- g_assert(object == NULL);
- return;
+ IndicatorObject * object = indicator_object_new_from_file("/this/file/should/not/exist.so");
+ g_assert(object == NULL);
+ return;
}
void
destroy_cb (gpointer data, GObject * object)
{
- gboolean * bob = (gboolean *)data;
- *bob = TRUE;
- return;
+ gboolean * bob = (gboolean *)data;
+ *bob = TRUE;
+ return;
}
void
test_loader_refunref (void)
{
- GObject * object = g_object_new(INDICATOR_OBJECT_TYPE, NULL);
+ GObject * object = g_object_new(INDICATOR_OBJECT_TYPE, NULL);
- gboolean unreffed = FALSE;
- g_object_weak_ref(object, destroy_cb, &unreffed);
+ gboolean unreffed = FALSE;
+ g_object_weak_ref(object, destroy_cb, &unreffed);
- g_object_unref(object);
+ g_object_unref(object);
- g_assert(unreffed == TRUE);
+ g_assert(unreffed == TRUE);
- return;
+ return;
}
void
test_loader_creation_deletion_suite (void)
{
- g_test_add_func ("/libindicator/loader/ref_and_unref", test_loader_refunref);
- g_test_add_func ("/libindicator/loader/filename_bad", test_loader_filename_bad);
- g_test_add_func ("/libindicator/loader/dummy/null_load", test_loader_filename_dummy_null);
- g_test_add_func ("/libindicator/loader/dummy/blank_load", test_loader_filename_dummy_null);
- g_test_add_func ("/libindicator/loader/dummy/simple_load", test_loader_filename_dummy_simple);
- g_test_add_func ("/libindicator/loader/dummy/simple_accessors", test_loader_filename_dummy_simple_accessors);
- g_test_add_func ("/libindicator/loader/dummy/simple_location", test_loader_filename_dummy_simple_location);
- g_test_add_func ("/libindicator/loader/dummy/signaler", test_loader_filename_dummy_signaler);
- g_test_add_func ("/libindicator/loader/dummy/entry_funcs", test_loader_entry_funcs);
- g_test_add_func ("/libindicator/loader/dummy/entry_func_window", test_loader_entry_func_window);
- g_test_add_func ("/libindicator/loader/dummy/visible", test_loader_filename_dummy_visible);
-
- return;
+ g_test_add_func ("/libindicator/loader/ref_and_unref", test_loader_refunref);
+ g_test_add_func ("/libindicator/loader/filename_bad", test_loader_filename_bad);
+ g_test_add_func ("/libindicator/loader/dummy/null_load", test_loader_filename_dummy_null);
+ g_test_add_func ("/libindicator/loader/dummy/blank_load", test_loader_filename_dummy_null);
+ g_test_add_func ("/libindicator/loader/dummy/simple_load", test_loader_filename_dummy_simple);
+ g_test_add_func ("/libindicator/loader/dummy/simple_accessors", test_loader_filename_dummy_simple_accessors);
+ g_test_add_func ("/libindicator/loader/dummy/simple_location", test_loader_filename_dummy_simple_location);
+ g_test_add_func ("/libindicator/loader/dummy/signaler", test_loader_filename_dummy_signaler);
+ g_test_add_func ("/libindicator/loader/dummy/entry_funcs", test_loader_entry_funcs);
+ g_test_add_func ("/libindicator/loader/dummy/entry_func_window", test_loader_entry_func_window);
+ g_test_add_func ("/libindicator/loader/dummy/visible", test_loader_filename_dummy_visible);
+
+ return;
}
int
main (int argc, char ** argv)
{
- g_test_init (&argc, &argv, NULL);
- gtk_init(&argc, &argv);
+ g_test_init (&argc, &argv, NULL);
+ gtk_init(&argc, &argv);
- test_loader_creation_deletion_suite();
+ test_loader_creation_deletion_suite();
- g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
+ g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
- return g_test_run();
+ return g_test_run();
}
diff --git a/tools/Makefile.am b/tools/Makefile.am
index e871921..7d25b5c 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -23,7 +23,7 @@ ayatana_indicator_loader_CFLAGS = \
ayatana_indicator_loader_LDADD = \
$(LIBINDICATOR_LIBS) \
$(LIBINDICATOR_IDO_LIBS) \
- -L$(top_builddir)/libayatana-indicator/.libs \
+ -L$(top_builddir)/src/.libs \
$(INDICATOR_LIB)
# We duplicate these here because Automake won't let us use $(VER) on the left hand side.
diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c
index 5b236db..a0db1b4 100644
--- a/tools/indicator-loader.c
+++ b/tools/indicator-loader.c
@@ -17,7 +17,7 @@
* 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
* <http://www.gnu.org/licenses/>.
@@ -25,9 +25,9 @@
#include <gtk/gtk.h>
#include <libayatana-ido/libayatana-ido.h>
-#include <libayatana-indicator/indicator-object.h>
+#include "src//indicator-object.h"
#if GTK_CHECK_VERSION (3,0,0)
- #include <libayatana-indicator/indicator-ng.h>
+ #include "src/indicator-ng.h"
#endif
static GHashTable * entry_to_menu_item = NULL;
@@ -159,7 +159,7 @@ entry_added (IndicatorObject * io,
gtk_widget_show (menu_item);
}
-static void
+static void
entry_removed (__attribute__((unused)) IndicatorObject * io,
IndicatorObjectEntry * entry,
__attribute__((unused)) gpointer user_data)