From 144738a9bb1d1537d89709fc592bb663ab9f12e1 Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Mon, 1 May 2006 14:43:25 +0000 Subject: 2006-05-01 Benedikt Meurer * thunar/thunar-path-entry.c(thunar_path_entry_activate): Activate if only a single item matches. Bug #1747. (Old svn revision: 21423) --- thunar/thunar-path-entry.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'thunar/thunar-path-entry.c') diff --git a/thunar/thunar-path-entry.c b/thunar/thunar-path-entry.c index 79437d2d..5db41c55 100644 --- a/thunar/thunar-path-entry.c +++ b/thunar/thunar-path-entry.c @@ -766,11 +766,9 @@ thunar_path_entry_activate (GtkEntry *entry) /* place cursor at the end of the text if we have completion set */ gtk_editable_set_position (GTK_EDITABLE (path_entry), -1); } - else - { - /* emit the "activate" signal */ - (*GTK_ENTRY_CLASS (thunar_path_entry_parent_class)->activate) (entry); - } + + /* emit the "activate" signal */ + (*GTK_ENTRY_CLASS (thunar_path_entry_parent_class)->activate) (entry); } -- cgit v1.2.1