Skip to content

Commit

Permalink
nemo-list-view.c: Don't clear the editable on focus-out, this will get
Browse files Browse the repository at this point in the history
done properly when we chain up.  We need to propagate the focus-out-event
signal, which the callback wasn't doing.

Fixes #1689

Note this partially reverts 4252c3e though I cannot reproduce
that original bug at this time post-fix.
  • Loading branch information
mtwebster committed Feb 9, 2018
1 parent 7873d57 commit f2eecb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/nemo-list-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,16 +1540,17 @@ sort_column_changed_callback (GtkTreeSortable *sortable,
view->details->last_sort_attr = sort_attr;
}

static void
static gboolean
editable_focus_out_cb (GtkWidget *widget,
GdkEvent *event,
gpointer user_data)
{
NemoListView *view = user_data;
g_clear_object (&view->details->editable_widget);

nemo_view_set_is_renaming (NEMO_VIEW (view), FALSE);
nemo_view_unfreeze_updates (NEMO_VIEW (view));

return GDK_EVENT_PROPAGATE;
}

static void
Expand Down

0 comments on commit f2eecb2

Please sign in to comment.