[anjuta/git-shell] libanjuta: Clean up anjuta_drop_entry_size_request
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/git-shell] libanjuta: Clean up anjuta_drop_entry_size_request
- Date: Tue, 10 Aug 2010 06:49:46 +0000 (UTC)
commit 9fc9eeb6ba1ff4b97266d6f0af3f56d8c776b1df
Author: James Liggett <jrliggett cox net>
Date: Mon Aug 9 22:51:26 2010 -0700
libanjuta: Clean up anjuta_drop_entry_size_request
Use the automatically provieded parent class pointer to chain up to the
GtkEntry implementation. Avoids crashes with AnjutaDropEntry
subclasses and simplifies the function immensely.
libanjuta/anjuta-drop-entry.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/libanjuta/anjuta-drop-entry.c b/libanjuta/anjuta-drop-entry.c
index f48c9a4..bf87873 100644
--- a/libanjuta/anjuta-drop-entry.c
+++ b/libanjuta/anjuta-drop-entry.c
@@ -103,18 +103,10 @@ anjuta_drop_entry_drag_drop (GtkWidget *widget, GdkDragContext *context,
}
static void
-anjuta_drop_entry_size_request (GtkWidget *widget,
- GtkRequisition *requisition)
+anjuta_drop_entry_size_request (GtkWidget *widget, GtkRequisition *requisition)
{
- AnjutaDropEntry *self;
- AnjutaDropEntryClass *klass;
- GtkEntryClass *parent_class;
-
- self = ANJUTA_DROP_ENTRY (widget);
- klass = ANJUTA_DROP_ENTRY_GET_CLASS (self);
- parent_class = g_type_class_peek_parent (klass);
-
- GTK_WIDGET_CLASS (parent_class)->size_request (widget, requisition);
+ GTK_WIDGET_CLASS (anjuta_drop_entry_parent_class)->size_request (widget,
+ requisition);
/* Make the entry box 40 pixels tall so that it is easier to drag into. */
requisition->height = 40;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]