aboutsummaryrefslogtreecommitdiff
path: root/tests/dummy-indicator-null.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-12 13:07:56 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-12 13:07:56 +0200
commit025c376068f63d8c2aa5899a3c0b1b827370da28 (patch)
tree99d5ce170fa25fd17f5d4569e8b3b3656c9fe44b /tests/dummy-indicator-null.c
parentaa6723b9cc3dcac5b9bdd87944a8c99b74f16ba2 (diff)
parentc277aa68455b232c37a4c52b39e948a6ab0b0e11 (diff)
downloadlibayatana-indicator-025c376068f63d8c2aa5899a3c0b1b827370da28.tar.gz
libayatana-indicator-025c376068f63d8c2aa5899a3c0b1b827370da28.tar.bz2
libayatana-indicator-025c376068f63d8c2aa5899a3c0b1b827370da28.zip
Merge branch 'tari01-pr/move-to-cmake'
Attributes GH PR #38: https://github.com/AyatanaIndicators/libayatana-indicator/pull/38
Diffstat (limited to 'tests/dummy-indicator-null.c')
-rw-r--r--tests/dummy-indicator-null.c46
1 files changed, 24 insertions, 22 deletions
diff --git a/tests/dummy-indicator-null.c b/tests/dummy-indicator-null.c
index 5eb8716..adb05d3 100644
--- a/tests/dummy-indicator-null.c
+++ b/tests/dummy-indicator-null.c
@@ -2,9 +2,11 @@
Test for libindicator
Copyright 2009 Canonical Ltd.
+Copyright 2021 AyatanaIndicators
Authors:
Ted Gould <ted@canonical.com>
+ Robert Tari <robert@tari.in>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -24,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 "indicator.h"
+#include "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 +40,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 +56,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 +86,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;
}