[anjuta/git-shell: 234/234] libanjuta: Get rid of the empty private struct in AnjutaDropEntry
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/git-shell: 234/234] libanjuta: Get rid of the empty private struct in AnjutaDropEntry
- Date: Tue, 11 May 2010 07:05:56 +0000 (UTC)
commit 8ab193e7db955526af7f2414ee456a3e77854216
Author: James Liggett <jrliggett cox net>
Date: Sun May 9 15:25:50 2010 -0700
libanjuta: Get rid of the empty private struct in AnjutaDropEntry
Avoid floating point execptions (divide by zero)
libanjuta/anjuta-drop-entry.c | 8 --------
libanjuta/anjuta-drop-entry.h | 3 ---
2 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/libanjuta/anjuta-drop-entry.c b/libanjuta/anjuta-drop-entry.c
index 8af1a52..f48c9a4 100644
--- a/libanjuta/anjuta-drop-entry.c
+++ b/libanjuta/anjuta-drop-entry.c
@@ -39,17 +39,11 @@ static GtkTargetEntry dnd_target_entries[] =
}
};
-struct _AnjutaDropEntryPriv
-{
-};
-
G_DEFINE_TYPE (AnjutaDropEntry, anjuta_drop_entry, GTK_TYPE_ENTRY);
static void
anjuta_drop_entry_init (AnjutaDropEntry *self)
{
- self->priv = g_new0 (AnjutaDropEntryPriv, 1);
-
gtk_drag_dest_set (GTK_WIDGET (self),
GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_HIGHLIGHT,
dnd_target_entries,
@@ -63,8 +57,6 @@ anjuta_drop_entry_finalize (GObject *object)
self = ANJUTA_DROP_ENTRY (object);
- g_free (self->priv);
-
G_OBJECT_CLASS (anjuta_drop_entry_parent_class)->finalize (object);
}
diff --git a/libanjuta/anjuta-drop-entry.h b/libanjuta/anjuta-drop-entry.h
index 8966536..fadd67e 100644
--- a/libanjuta/anjuta-drop-entry.h
+++ b/libanjuta/anjuta-drop-entry.h
@@ -34,7 +34,6 @@ G_BEGIN_DECLS
typedef struct _AnjutaDropEntryClass AnjutaDropEntryClass;
typedef struct _AnjutaDropEntry AnjutaDropEntry;
-typedef struct _AnjutaDropEntryPriv AnjutaDropEntryPriv;
struct _AnjutaDropEntryClass
{
@@ -44,8 +43,6 @@ struct _AnjutaDropEntryClass
struct _AnjutaDropEntry
{
GtkEntry parent_instance;
-
- AnjutaDropEntryPriv *priv;
};
GType anjuta_drop_entry_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]