summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-entry.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-01-24 17:19:00 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2011-01-25 09:21:07 -0500
commitd4230de8667764e02dbb966b5d806ff78ced2fd5 (patch)
tree994b16b22b063203536cb4aa7cfc85f2e24f9904 /libnautilus-private/nautilus-entry.c
parent155cc03271fd7db1da4af7d60dcedfe8acdc2900 (diff)
downloadnautilus-d4230de8667764e02dbb966b5d806ff78ced2fd5.tar.gz
all: silence new warnings from GCC 4.6
GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly.
Diffstat (limited to 'libnautilus-private/nautilus-entry.c')
-rw-r--r--libnautilus-private/nautilus-entry.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libnautilus-private/nautilus-entry.c b/libnautilus-private/nautilus-entry.c
index 80fe4c8f3..489967190 100644
--- a/libnautilus-private/nautilus-entry.c
+++ b/libnautilus-private/nautilus-entry.c
@@ -61,9 +61,6 @@ static GtkEditableInterface *parent_editable_interface = NULL;
static void
nautilus_entry_init (NautilusEntry *entry)
{
- GtkWidget *widget;
-
- widget = GTK_WIDGET (entry);
entry->details = g_new0 (NautilusEntryDetails, 1);
entry->details->user_edit = TRUE;
@@ -163,10 +160,8 @@ nautilus_entry_motion_notify (GtkWidget *widget, GdkEventMotion *event)
int result;
gboolean old_had, new_had;
int old_start, old_end, new_start, new_end;
- NautilusEntry *entry;
GtkEditable *editable;
- entry = NAUTILUS_ENTRY (widget);
editable = GTK_EDITABLE (widget);
old_had = gtk_editable_get_selection_bounds (editable, &old_start, &old_end);