projects
/
cinaest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
805ee8e
)
MoviePilot plugin: fix user name and password entry fields
author
Philipp Zabel
<philipp.zabel@gmail.com>
Fri, 9 Jul 2010 16:29:05 +0000
(18:29 +0200)
committer
Philipp Zabel
<philipp.zabel@gmail.com>
Wed, 14 Jul 2010 21:34:09 +0000
(23:34 +0200)
src/plugins/moviepilot-plugin.vala
patch
|
blob
|
history
diff --git
a/src/plugins/moviepilot-plugin.vala
b/src/plugins/moviepilot-plugin.vala
index
6bc198d
..
43cf94b
100644
(file)
--- a/
src/plugins/moviepilot-plugin.vala
+++ b/
src/plugins/moviepilot-plugin.vala
@@
-48,23
+48,25
@@
class MoviePilotPlugin : Plugin {
dialog.set_transient_for (window);
dialog.set_title (_("MoviePilot plugin settings"));
dialog.set_transient_for (window);
dialog.set_title (_("MoviePilot plugin settings"));
- // Username
+ var content = (VBox) dialog.get_content_area ();
+ 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
// Password
- var hbox = new Gtk.HBox (false, 0);
- var vbox = new Gtk.VBox (true, 0);
- var label = new Gtk.Label ("User name");
- vbox.pack_start (label, true, true, 0);
+ hbox = new Gtk.HBox (false, MARGIN_DOUBLE);
label = new Gtk.Label ("Password");
label = new Gtk.Label ("Password");
- vbox.pack_start (label, true, true, 0);
- hbox.pack_start (vbox, false, false, 0);
- vbox = new Gtk.VBox (true, 0);
- var entry = new Hildon.Entry (SizeType.FINGER_HEIGHT);
- vbox.pack_start (entry, true, true, 0);
+ sizegroup.add_widget (label);
entry = new Hildon.Entry (SizeType.FINGER_HEIGHT);
entry = new Hildon.Entry (SizeType.FINGER_HEIGHT);
- vbox.pack_start (entry, true, true, 0);
- hbox.pack_start (vbox, true, true, 0);
-
- var content = (VBox) dialog.get_content_area ();
+ 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);
content.pack_start (hbox, true, true, 0);
dialog.add_button (_("Save"), ResponseType.ACCEPT);