[network-manager-fortisslvpn] properties: focus the OK button in the advanced dialog



commit 2983ceeda99e1dae1ecde61dc7c6f4f569511af8
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Sep 23 23:51:59 2015 +0200

    properties: focus the OK button in the advanced dialog
    
    So that the pre-filled hint appears.

 properties/nm-fortisslvpn.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/properties/nm-fortisslvpn.c b/properties/nm-fortisslvpn.c
index 3fcc281..4421be6 100644
--- a/properties/nm-fortisslvpn.c
+++ b/properties/nm-fortisslvpn.c
@@ -263,6 +263,7 @@ advanced_button_clicked_cb (GtkWidget *button, gpointer user_data)
                priv->window_added = TRUE;
        }
 
+       gtk_widget_grab_focus (GTK_WIDGET (gtk_builder_get_object (priv->builder, "ok_button")));
        gtk_widget_show_all (dialog);
 }
 


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