[Sugar-devel] [PATCH 1/3] Replacing GtkVBox and GtkHBox for GTK.Box due to deprecation on GTK3
Rafael Ortiz
rafael at activitycentral.com
Sat Jun 16 23:08:32 EDT 2012
Replacing h and v boxes due to deprecation,
also a minor typo on class TextChannelWrapper description
Signed-off-by: Rafael Ortiz <rafael at activitycentral.com>
---
activity.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/activity.py b/activity.py
index ecec32c..24cc7c0 100644
--- a/activity.py
+++ b/activity.py
@@ -273,10 +273,10 @@ class Chat(activity.Activity):
entry.connect('key-press-event', self.entry_key_press_cb)
self.entry = entry
- hbox = Gtk.HBox()
+ hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
hbox.add(entry)
- box = Gtk.VBox(homogeneous=False)
+ box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, homogeneous=False)
box.pack_start(self.chatbox, True, True, 0)
box.pack_start(hbox, False, True, 0)
@@ -354,7 +354,7 @@ class Chat(activity.Activity):
last_line_was_timestamp = False
class TextChannelWrapper(object):
- """Wrap a telepathy Text Channel to make usage simpler."""
+ """Wrap a telepathy Text Channfel to make usage simpler."""
def __init__(self, text_chan, conn):
"""Connect to the text channel"""
--
1.7.9.5
More information about the Sugar-devel
mailing list