[anjuta/git-shell] libanjuta: Make AnjutaDropEntry inherit from AnjutaEntry
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/git-shell] libanjuta: Make AnjutaDropEntry inherit from AnjutaEntry
- Date: Sun, 24 Oct 2010 07:25:54 +0000 (UTC)
commit be83da762e1be162c9f73ba18fc1dc0eceb0a492
Author: James Liggett <jrliggett cox net>
Date: Sun Oct 24 00:24:58 2010 -0700
libanjuta: Make AnjutaDropEntry inherit from AnjutaEntry
libanjuta/anjuta-drop-entry.c | 4 ++--
libanjuta/anjuta-drop-entry.h | 6 +++---
libanjuta/anjuta-file-drop-entry.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libanjuta/anjuta-drop-entry.c b/libanjuta/anjuta-drop-entry.c
index bf87873..bae0804 100644
--- a/libanjuta/anjuta-drop-entry.c
+++ b/libanjuta/anjuta-drop-entry.c
@@ -39,7 +39,7 @@ static GtkTargetEntry dnd_target_entries[] =
}
};
-G_DEFINE_TYPE (AnjutaDropEntry, anjuta_drop_entry, GTK_TYPE_ENTRY);
+G_DEFINE_TYPE (AnjutaDropEntry, anjuta_drop_entry, ANJUTA_TYPE_ENTRY);
static void
anjuta_drop_entry_init (AnjutaDropEntry *self)
@@ -78,7 +78,7 @@ anjuta_drop_entry_drag_data_received (GtkWidget *widget,
if (target_type == DND_TYPE_STRING)
{
- gtk_entry_set_text (GTK_ENTRY (widget), (const gchar *) data->data);
+ anjuta_entry_set_text (ANJUTA_ENTRY (widget), (const gchar *) data->data);
success = TRUE;
}
}
diff --git a/libanjuta/anjuta-drop-entry.h b/libanjuta/anjuta-drop-entry.h
index fadd67e..9908300 100644
--- a/libanjuta/anjuta-drop-entry.h
+++ b/libanjuta/anjuta-drop-entry.h
@@ -21,7 +21,7 @@
#define _ANJUTA_DROP_ENTRY_H_
#include <glib-object.h>
-#include <gtk/gtk.h>
+#include "anjuta-entry.h"
G_BEGIN_DECLS
@@ -37,12 +37,12 @@ typedef struct _AnjutaDropEntry AnjutaDropEntry;
struct _AnjutaDropEntryClass
{
- GtkEntryClass parent_class;
+ AnjutaEntryClass parent_class;
};
struct _AnjutaDropEntry
{
- GtkEntry parent_instance;
+ AnjutaEntry parent_instance;
};
GType anjuta_drop_entry_get_type (void) G_GNUC_CONST;
diff --git a/libanjuta/anjuta-file-drop-entry.c b/libanjuta/anjuta-file-drop-entry.c
index 8625e52..7a93459 100644
--- a/libanjuta/anjuta-file-drop-entry.c
+++ b/libanjuta/anjuta-file-drop-entry.c
@@ -152,7 +152,7 @@ anjuta_file_drop_entry_drag_data_received (GtkWidget *widget,
if (path)
{
- gtk_entry_set_text (GTK_ENTRY (self), path);
+ anjuta_entry_set_text (ANJUTA_ENTRY (self), path);
g_free (path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]