Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-11-06 17:34:28 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-11-20 16:11:42 (GMT)
commit7dd7998c86a43707a5c0855195efb57ffa47510f (patch)
tree307b1f6820ef39fd7cede6cd04a558b74ba95fc6
parent3a4d412c4f5d8a5d29d5f9a17bd30a962da3e89b (diff)
Do not use 'set_size_request' to avoid screen overflow SL #4107
Properly use of 'set_border_width' to keep the border just on the Gtk.Entry's and remove 'set_border_width' from the Gtk.VBox and added it to the Gtk.Table that contains the Gtk.Entry's. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
-rw-r--r--wordsactivity.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/wordsactivity.py b/wordsactivity.py
index 7abc51a..9aa321a 100644
--- a/wordsactivity.py
+++ b/wordsactivity.py
@@ -61,8 +61,7 @@ class WordsActivity(activity.Activity):
# Main layout | disposicion general
hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, homogeneous=True, spacing=8)
- vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=20)
- vbox.set_border_width(20)
+ vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
toolbar_box = ToolbarBox()
activity_button = ActivityButton(self)
@@ -105,6 +104,7 @@ class WordsActivity(activity.Activity):
transbox.resize(2, 3)
transbox.set_row_spacings(8)
transbox.set_col_spacings(12)
+ transbox.set_border_width(20)
# Labels | Etiquetas
label1 = Gtk.Label(label=_("Word") + ':')
@@ -156,9 +156,6 @@ class WordsActivity(activity.Activity):
self.lang2combo.connect("changed", self.lang2combo_cb)
self.lang2combo.set_active(4)
- self.lang1combo.set_size_request(600, 50)
- self.lang2combo.set_size_request(600, 50)
-
# The "lang1" treeview box
self.lang1model = Gtk.ListStore(str)
lang1view = Gtk.TreeView(self.lang1model)