[gnome-panel] status-notifier: add SnItem and SnItemV0
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] status-notifier: add SnItem and SnItemV0
- Date: Wed, 2 Nov 2016 22:41:53 +0000 (UTC)
commit bed64c41a7eec7ed6a72444747b658990565dab8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Nov 3 00:39:17 2016 +0200
status-notifier: add SnItem and SnItemV0
applets/status-notifier/Makefile.am | 4 +++
applets/status-notifier/sn-item-v0.c | 37 ++++++++++++++++++++++++++++++++++
applets/status-notifier/sn-item-v0.h | 30 +++++++++++++++++++++++++++
applets/status-notifier/sn-item.c | 32 +++++++++++++++++++++++++++++
applets/status-notifier/sn-item.h | 35 ++++++++++++++++++++++++++++++++
5 files changed, 138 insertions(+), 0 deletions(-)
---
diff --git a/applets/status-notifier/Makefile.am b/applets/status-notifier/Makefile.am
index f8656f2..c4a7a21 100644
--- a/applets/status-notifier/Makefile.am
+++ b/applets/status-notifier/Makefile.am
@@ -25,6 +25,10 @@ status_notifier_la_SOURCES = \
sn-host.h \
sn-host-v0.c \
sn-host-v0.h \
+ sn-item.c \
+ sn-item.h \
+ sn-item-v0.c \
+ sn-item-v0.h \
sn-module.c \
$(BUILT_SOURCES) \
$(NULL)
diff --git a/applets/status-notifier/sn-item-v0.c b/applets/status-notifier/sn-item-v0.c
new file mode 100644
index 0000000..37cdccb
--- /dev/null
+++ b/applets/status-notifier/sn-item-v0.c
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2016 Alberts Muktupāvels
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+
+#include "sn-item-v0.h"
+
+struct _SnItemV0
+{
+ SnItem parent;
+};
+
+G_DEFINE_TYPE (SnItemV0, sn_item_v0, SN_TYPE_ITEM)
+
+static void
+sn_item_v0_class_init (SnItemV0Class *v0_class)
+{
+}
+
+static void
+sn_item_v0_init (SnItemV0 *v0)
+{
+}
diff --git a/applets/status-notifier/sn-item-v0.h b/applets/status-notifier/sn-item-v0.h
new file mode 100644
index 0000000..7da2033
--- /dev/null
+++ b/applets/status-notifier/sn-item-v0.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2016 Alberts Muktupāvels
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SN_ITEM_V0_H
+#define SN_ITEM_V0_H
+
+#include "sn-item.h"
+
+G_BEGIN_DECLS
+
+#define SN_TYPE_ITEM_V0 sn_item_v0_get_type ()
+G_DECLARE_FINAL_TYPE (SnItemV0, sn_item_v0, SN, ITEM_V0, SnItem)
+
+G_END_DECLS
+
+#endif
diff --git a/applets/status-notifier/sn-item.c b/applets/status-notifier/sn-item.c
new file mode 100644
index 0000000..10d1bff
--- /dev/null
+++ b/applets/status-notifier/sn-item.c
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2016 Alberts Muktupāvels
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+
+#include "sn-item.h"
+
+G_DEFINE_ABSTRACT_TYPE (SnItem, sn_item, GTK_TYPE_BUTTON)
+
+static void
+sn_item_class_init (SnItemClass *item_class)
+{
+}
+
+static void
+sn_item_init (SnItem *item)
+{
+}
diff --git a/applets/status-notifier/sn-item.h b/applets/status-notifier/sn-item.h
new file mode 100644
index 0000000..c3612ca
--- /dev/null
+++ b/applets/status-notifier/sn-item.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2016 Alberts Muktupāvels
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SN_ITEM_H
+#define SN_ITEM_H
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define SN_TYPE_ITEM sn_item_get_type ()
+G_DECLARE_DERIVABLE_TYPE (SnItem, sn_item, SN, ITEM, GtkButton)
+
+struct _SnItemClass
+{
+ GtkButtonClass parent_class;
+};
+
+G_END_DECLS
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]