[Xfce4-commits] [apps/xfmpc] 01/01: Updates for release
noreply at xfce.org
noreply at xfce.org
Sat Jun 22 15:31:23 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfmpc.
commit adca707d7afa22b2192918d7d90608a0462f210a
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Jun 22 10:30:09 2019 -0300
Updates for release
---
NEWS | 6 ++++++
configure.ac.in | 6 +++---
src/mpdclient.c | 33 ++-------------------------------
3 files changed, 11 insertions(+), 34 deletions(-)
diff --git a/NEWS b/NEWS
index 896172c..890a98c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+ 0.3.0 (2019-06-22)
+
+- Stable release of 0.2.90
+- Fixed build issues
+- Translation updates
+
0.2.90 (2019-02-26)
- GTK3 Port! (Thanks Johannes)
diff --git a/configure.ac.in b/configure.ac.in
index b47d41c..6ebb505 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -8,10 +8,10 @@ dnl ***************************
dnl *** Version information ***
dnl ***************************
m4_define([xfmpc_version_major], [0])
-m4_define([xfmpc_version_minor], [2])
-m4_define([xfmpc_version_micro], [90])
+m4_define([xfmpc_version_minor], [3])
+m4_define([xfmpc_version_micro], [0])
m4_define([xfmpc_version_build], [@REVISION@])
-m4_define([xfmpc_version_tag], [git]) # leave empty for release
+m4_define([xfmpc_version_tag], []) # leave empty for release
m4_define([xfmpc_version], [xfmpc_version_major().xfmpc_version_minor().xfmpc_version_micro()ifelse(xfmpc_version_tag(), [git], [xfmpc_version_tag()-xfmpc_version_build()], [xfmpc_version_tag()])])
dnl ***************************
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 61ffcee..563a173 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -27,9 +27,6 @@
#include "mpdclient.h"
#include "xfmpc.h"
-#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), XFMPC_TYPE_MPDCLIENT, XfmpcMpdclientPrivate))
-
enum
@@ -115,31 +112,7 @@ static GObjectClass *parent_class = NULL;
-GType
-xfmpc_mpdclient_get_type (void)
-{
- static GType xfmpc_mpdclient_type = G_TYPE_INVALID;
-
- if (G_UNLIKELY (xfmpc_mpdclient_type == G_TYPE_INVALID))
- {
- static const GTypeInfo xfmpc_mpdclient_info =
- {
- sizeof (XfmpcMpdclientClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc) xfmpc_mpdclient_class_init,
- (GClassFinalizeFunc) NULL,
- NULL,
- sizeof (XfmpcMpdclient),
- 0,
- (GInstanceInitFunc) xfmpc_mpdclient_init,
- NULL
- };
- xfmpc_mpdclient_type = g_type_register_static (G_TYPE_OBJECT, "XfmpcMpdclient", &xfmpc_mpdclient_info, 0);
- }
-
- return xfmpc_mpdclient_type;
-}
+G_DEFINE_TYPE_WITH_PRIVATE(XfmpcMpdclient, xfmpc_mpdclient, G_TYPE_OBJECT)
@@ -148,8 +121,6 @@ xfmpc_mpdclient_class_init (XfmpcMpdclientClass *klass)
{
GObjectClass *gobject_class;
- g_type_class_add_private (klass, sizeof (XfmpcMpdclientPrivate));
-
parent_class = g_type_class_peek_parent (klass);
gobject_class = G_OBJECT_CLASS (klass);
@@ -271,7 +242,7 @@ xfmpc_mpdclient_class_init (XfmpcMpdclientClass *klass)
static void
xfmpc_mpdclient_init (XfmpcMpdclient *mpdclient)
{
- XfmpcMpdclientPrivate *priv = mpdclient->priv = GET_PRIVATE (mpdclient);
+ XfmpcMpdclientPrivate *priv = mpdclient->priv = xfmpc_mpdclient_get_instance_private (mpdclient);
priv->mi = mpd_new_default ();
g_mutex_init (&priv->mutex);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list