From 805ee8e8596de036022d3bfcee039222bdcc9b1e Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Fri, 9 Jul 2010 18:28:43 +0200 Subject: [PATCH] IMDb plugin: add user name and password entry fields --- src/plugins/imdb-plugin.vala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/plugins/imdb-plugin.vala b/src/plugins/imdb-plugin.vala index 7bac4b9..5c5e31b 100644 --- a/src/plugins/imdb-plugin.vala +++ b/src/plugins/imdb-plugin.vala @@ -155,6 +155,28 @@ class IMDbPlugin : Plugin { content.pack_start (plots, true, true, 0); content.pack_start (download, true, true, 0); + var sizegroup = new Gtk.SizeGroup (SizeGroupMode.HORIZONTAL); + + // User name + var hbox = new Gtk.HBox (false, MARGIN_DOUBLE); + var label = new Gtk.Label (_("User name")); + sizegroup.add_widget (label); + var entry = new Hildon.Entry (SizeType.FINGER_HEIGHT); + hbox.pack_start (label, false, false, 0); + hbox.pack_start (entry, true, true, 0); + content.pack_start (hbox, true, true, 0); + + // Password + hbox = new Gtk.HBox (false, MARGIN_DOUBLE); + label = new Gtk.Label ("Password"); + sizegroup.add_widget (label); + entry = new Hildon.Entry (SizeType.FINGER_HEIGHT); + hbox.pack_start (label, false, false, 0); + hbox.pack_start (entry, true, true, 0); + content.pack_start (hbox, true, true, 0); + + dialog.add_button (_("Save"), ResponseType.ACCEPT); + // Connect signals plots.toggled.connect (() => { if (download_plots != plots.get_active ()) -- 1.7.9.5