[gitg] GitgRevisionPanel: Use G_DEFINE_INTERFACE
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] GitgRevisionPanel: Use G_DEFINE_INTERFACE
- Date: Wed, 29 Dec 2010 14:56:13 +0000 (UTC)
commit 2e4f25bac3d8c99265159c2ce8854fc26d417031
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Dec 29 15:56:01 2010 +0100
GitgRevisionPanel: Use G_DEFINE_INTERFACE
gitg/gitg-revision-panel.c | 53 +++++++++++++++++++------------------------
gitg/gitg-revision-panel.h | 22 ++++++++++++++++++
2 files changed, 45 insertions(+), 30 deletions(-)
---
diff --git a/gitg/gitg-revision-panel.c b/gitg/gitg-revision-panel.c
index 565e186..979969e 100644
--- a/gitg/gitg-revision-panel.c
+++ b/gitg/gitg-revision-panel.c
@@ -1,35 +1,28 @@
-#include "gitg-revision-panel.h"
-
-static void gitg_revision_panel_default_init (GitgRevisionPanelInterface *iface);
+/*
+ * gitg-revision-panel.c
+ * This file is part of gitg - git repository viewer
+ *
+ * Copyright (C) 2009 - Jesse van den Kieboom
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
-GType
-gitg_revision_panel_get_type ()
-{
- static GType gitg_revision_panel_type_id = 0;
-
- if (!gitg_revision_panel_type_id)
- {
- static const GTypeInfo g_define_type_info =
- {
- sizeof (GitgRevisionPanelInterface),
- (GBaseInitFunc) gitg_revision_panel_default_init,
- NULL,
- NULL,
- NULL,
- NULL,
- 0,
- 0,
- NULL
- };
-
- gitg_revision_panel_type_id = g_type_register_static (G_TYPE_INTERFACE,
- "GitgRevisionPanel",
- &g_define_type_info,
- 0);
- }
+#include "gitg-revision-panel.h"
- return gitg_revision_panel_type_id;
-}
+G_DEFINE_INTERFACE(GitgRevisionPanel, gitg_revision_panel, G_TYPE_OBJECT)
/* Default implementation */
static void
diff --git a/gitg/gitg-revision-panel.h b/gitg/gitg-revision-panel.h
index 2bab4a0..29cd604 100644
--- a/gitg/gitg-revision-panel.h
+++ b/gitg/gitg-revision-panel.h
@@ -1,3 +1,25 @@
+/*
+ * gitg-revision-panel.h
+ * This file is part of gitg - git repository viewer
+ *
+ * Copyright (C) 2009 - Jesse van den Kieboom
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
#ifndef __GITG_REVISION_PANEL_H__
#define __GITG_REVISION_PANEL_H__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]