[network-manager-applet/aleksander/mm1-applet] fixup! applet: simplify launching the PIN/PUK code request dialog



commit 56b0c6b798c8cfc9c78a640523f383b701431de5
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Dec 18 12:01:45 2012 +0100

    fixup! applet: simplify launching the PIN/PUK code request dialog

 src/applet-dialogs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c
index 37660bc..665b3c7 100644
--- a/src/applet-dialogs.c
+++ b/src/applet-dialogs.c
@@ -1398,8 +1398,9 @@ applet_mobile_pin_dialog_new (const char *unlock_required,
 	}
 
 	/* code3_entry */
+	label = GTK_WIDGET (gtk_builder_get_object (builder, "code3_label"));
+	widget = GTK_WIDGET (gtk_builder_get_object (builder, "code3_entry"));
 	if (label3) {
-		widget = GTK_WIDGET (gtk_builder_get_object (builder, "code3_label"));
 		gtk_label_set_text (GTK_LABEL (widget), label3);
 		widget = GTK_WIDGET (gtk_builder_get_object (builder, "code3_entry"));
 		g_signal_connect (widget, "changed", G_CALLBACK (mpd_entry_changed), dialog);



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