[Sugar-devel] [PATCH 1/3] Replacing GtkVBox and GtkHBox for GTK.Box due to deprecation on GTK3

Peter Robinson pbrobinson at gmail.com
Sun Jun 17 03:53:16 EDT 2012


On Sun, Jun 17, 2012 at 4:08 AM, Rafael Ortiz
<rafael at activitycentral.com> wrote:
> 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."""

I don't think this last change is correct.

Peter


More information about the Sugar-devel mailing list