[nautilus-sendto/gnome-2-28] Make the last selected medium's widget grab focus



commit 01ae89d43e5e27c316aab70648c7efa2c8b7192c
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]