[nautilus] [ln-p] GSEAL nautilus-entry.



commit 0ea1e03d74713bcac0ad90a03092d8ed6d7d2528
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 11 13:14:56 2010 +0200

    [ln-p] GSEAL nautilus-entry.

 libnautilus-private/nautilus-entry.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-entry.c b/libnautilus-private/nautilus-entry.c
index 737044e..9c484f9 100644
--- a/libnautilus-private/nautilus-entry.c
+++ b/libnautilus-private/nautilus-entry.c
@@ -83,7 +83,7 @@ nautilus_entry_new_with_max_length (guint16 max)
 	GtkWidget *widget;
 
 	widget = gtk_widget_new (NAUTILUS_TYPE_ENTRY, NULL);
-	GTK_ENTRY (widget)->text_max_length = max;
+	gtk_entry_set_max_length (GTK_ENTRY (widget), max);
 
 	return widget;
 }
@@ -352,7 +352,7 @@ nautilus_entry_selection_clear (GtkWidget *widget,
 {
 	g_assert (NAUTILUS_IS_ENTRY (widget));
 	
-	if (gdk_selection_owner_get (event->selection) == widget->window) {
+	if (gdk_selection_owner_get (event->selection) == gtk_widget_get_window (widget)) {
 		return FALSE;
 	}
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]