[gtranslator] Get rid of private struct in GtrNotebook
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Get rid of private struct in GtrNotebook
- Date: Mon, 16 Aug 2010 13:21:19 +0000 (UTC)
commit 78e670dd34aae4049a476ef8e68c24f0e1e355a8
Author: Jonh Wendell <jwendell gnome org>
Date: Sat Aug 14 12:28:45 2010 -0300
Get rid of private struct in GtrNotebook
src/gtr-notebook.c | 12 ------------
src/gtr-notebook.h | 5 -----
2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/gtr-notebook.c b/src/gtr-notebook.c
index f07272d..a17883c 100644
--- a/src/gtr-notebook.c
+++ b/src/gtr-notebook.c
@@ -29,17 +29,8 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#define GTR_NOTEBOOK_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ( \
- (object), \
- GTR_TYPE_NOTEBOOK, \
- GtrNotebookPrivate))
-
G_DEFINE_TYPE (GtrNotebook, gtr_notebook, GTK_TYPE_NOTEBOOK)
-struct _GtrNotebookPrivate
-{
-};
-
/* Signals */
enum
{
@@ -107,7 +98,6 @@ update_tabs_visibility (GtrNotebook *nb)
static void
gtr_notebook_init (GtrNotebook * notebook)
{
- notebook->priv = GTR_NOTEBOOK_GET_PRIVATE (notebook);
}
static void
@@ -121,8 +111,6 @@ gtr_notebook_class_init (GtrNotebookClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- //g_type_class_add_private (klass, sizeof (GtrNotebookPrivate));
-
object_class->finalize = gtr_notebook_finalize;
signals[TAB_CLOSE_REQUEST] =
diff --git a/src/gtr-notebook.h b/src/gtr-notebook.h
index a5d78c6..9e9d511 100644
--- a/src/gtr-notebook.h
+++ b/src/gtr-notebook.h
@@ -35,8 +35,6 @@ G_BEGIN_DECLS
#define GTR_IS_NOTEBOOK(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_NOTEBOOK))
#define GTR_IS_NOTEBOOK_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_NOTEBOOK))
#define GTR_NOTEBOOK_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_NOTEBOOK, GtrNotebookClass))
-/* Private structure type */
-typedef struct _GtrNotebookPrivate GtrNotebookPrivate;
/*
* Main object structure
@@ -46,9 +44,6 @@ typedef struct _GtrNotebook GtrNotebook;
struct _GtrNotebook
{
GtkNotebook parent_instance;
-
- /*< private > */
- GtrNotebookPrivate *priv;
};
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]