IMDb plugin: add user name and password entry fields
[cinaest] / src / plugins / imdb-plugin.vala
index 7bac4b9..5c5e31b 100644 (file)
@@ -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 ())