[nautilus-sendto] Make the last selected medium's widget grab focus



commit 90859ca39bb877b665bb99da73c47569dc6a55b0
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 9 17:13:01 2010 +0100

    Make the last selected medium's widget grab focus
    
    https://bugzilla.gnome.org/show_bug.cgi?id=615214

 src/nautilus-sendto-command.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-sendto-command.c b/src/nautilus-sendto-command.c
index 674d774..dd21620 100644
--- a/src/nautilus-sendto-command.c
+++ b/src/nautilus-sendto-command.c
@@ -429,6 +429,7 @@ set_model_for_options_combobox (NS_ui *ui)
         GtkListStore *model;
 	GtkIconTheme *it;
 	GtkCellRenderer *renderer;
+	GtkWidget *widget;
 	GList *aux;
 	NstPlugin *p;
 	char *last_used = NULL;
@@ -484,6 +485,10 @@ set_model_for_options_combobox (NS_ui *ui)
 
 	gtk_combo_box_set_active (GTK_COMBO_BOX (ui->options_combobox), option);
 
+	/* Grab the focus for the most recently used widget */
+	widget = g_list_nth_data (ui->contact_widgets, option);
+	gtk_widget_grab_focus (widget);
+
 	return last_used_support_dirs;
 }
 



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