[Xfce4-commits] <xfdesktop:master> Drop the XfdesktopFileIconPrivate struct as it is empty anyway.
Jannis Pohlmann
noreply at xfce.org
Tue Jan 18 20:48:01 CET 2011
Updating branch refs/heads/master
to d26b1fd7f503d009fbcbb6fb3c7df1e84783b785 (commit)
from 350e75f31683426ac0cac440ddc1d8fd46eda85b (commit)
commit d26b1fd7f503d009fbcbb6fb3c7df1e84783b785
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Tue Jan 18 20:40:40 2011 +0100
Drop the XfdesktopFileIconPrivate struct as it is empty anyway.
src/xfdesktop-file-icon.c | 12 ++----------
src/xfdesktop-file-icon.h | 8 ++------
2 files changed, 4 insertions(+), 16 deletions(-)
diff --git a/src/xfdesktop-file-icon.c b/src/xfdesktop-file-icon.c
index 835af6a..1088e99 100644
--- a/src/xfdesktop-file-icon.c
+++ b/src/xfdesktop-file-icon.c
@@ -1,8 +1,8 @@
/*
* xfdesktop - xfce4's desktop manager
*
- * Copyright (c) 2006 Brian Tarricone, <bjt23 at cornell.edu>
- * Copyright (c) 2010 Jannis Pohlmann, <jannis at xfce.org>
+ * Copyright (c) 2006 Brian Tarricone, <bjt23 at cornell.edu>
+ * Copyright (c) 2010-2011 Jannis Pohlmann, <jannis at xfce.org>
*
* 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
@@ -30,10 +30,6 @@
#include "xfdesktop-file-utils.h"
#include "xfdesktop-file-icon.h"
-struct _XfdesktopFileIconPrivate
-{
-};
-
static void xfdesktop_file_icon_finalize(GObject *obj);
static gboolean xfdesktop_file_icon_activated(XfdesktopIcon *icon);
@@ -49,8 +45,6 @@ xfdesktop_file_icon_class_init(XfdesktopFileIconClass *klass)
GObjectClass *gobject_class = (GObjectClass *)klass;
XfdesktopIconClass *icon_class = (XfdesktopIconClass *)klass;
- g_type_class_add_private(klass, sizeof(XfdesktopFileIconPrivate));
-
gobject_class->finalize = xfdesktop_file_icon_finalize;
icon_class->activated = xfdesktop_file_icon_activated;
@@ -59,8 +53,6 @@ xfdesktop_file_icon_class_init(XfdesktopFileIconClass *klass)
static void
xfdesktop_file_icon_init(XfdesktopFileIcon *icon)
{
- icon->priv = G_TYPE_INSTANCE_GET_PRIVATE(icon, XFDESKTOP_TYPE_FILE_ICON,
- XfdesktopFileIconPrivate);
}
static void
diff --git a/src/xfdesktop-file-icon.h b/src/xfdesktop-file-icon.h
index a8e431c..4ca703f 100644
--- a/src/xfdesktop-file-icon.h
+++ b/src/xfdesktop-file-icon.h
@@ -1,8 +1,8 @@
/*
* xfdesktop - xfce4's desktop manager
*
- * Copyright (c) 2006 Brian Tarricone, <bjt23 at cornell.edu>
- * Copyright (c) 2010 Jannis Pohlmann, <jannis at xfce.org>
+ * Copyright (c) 2006 Brian Tarricone, <bjt23 at cornell.edu>
+ * Copyright (c) 2010-2011 Jannis Pohlmann, <jannis at xfce.org>
*
* 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
@@ -36,14 +36,10 @@ G_BEGIN_DECLS
typedef struct _XfdesktopFileIcon XfdesktopFileIcon;
typedef struct _XfdesktopFileIconClass XfdesktopFileIconClass;
-typedef struct _XfdesktopFileIconPrivate XfdesktopFileIconPrivate;
struct _XfdesktopFileIcon
{
XfdesktopIcon parent;
-
- /*< private >*/
- XfdesktopFileIconPrivate *priv;
};
struct _XfdesktopFileIconClass
More information about the Xfce4-commits
mailing list