~ubuntu-branches/ubuntu/raring/software-center/raring-proposed

« back to all changes in this revision

Viewing changes to tests/gtk3/test_lp1048912.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-06 17:30:50 UTC
  • Revision ID: package-import@ubuntu.com-20121206173050-n7mxi5fzlsvtdh9l
Tags: 5.5.2
* lp:~mvo/software-center/fix-pygobject-deprecation-warnings:
  - fix deprecation warninings with the latest python-gi
* lp:~mvo/software-center/minor-logging-fixes:
  - drop some LOG.info() messages to LOG.debug() to spam the user
    less
* lp:~mvo/software-center/trivial-close-ui-tweak:
  - hide the main window immediately when closing down
* lp:~mvo/software-center/5.4-fix-save-person-to-config:
  - This branch ensures that the "username" is saved everytime
    that the ubuntu sso whoami call is done
* lp:~mvo/software-center/use-dpkg-builddeps:
  - use dpkg-checkbuilddeps to find test-dependencies
* lp:~mvo/software-center/update-sc-cmdline-flexibility:
  - update-software-center-agent: 
    + add --target-db-path commandline
  - update-software-center: 
    + add --app-install-desktop-dir and --target-db-path commandline
* lp:~mvo/software-center/raring-pep8:
  - fixes for new pep8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import unittest
2
2
 
3
3
from gi.repository import (
4
 
    GObject,
 
4
    GLib,
5
5
    Gtk,
6
6
    )
7
7
 
67
67
        # described in #1048912 on the top of the bottom frame the line
68
68
        # will not be drawn correctly - any subsequent redraw of the
69
69
        # window will fix it
70
 
        GObject.timeout_add(1000, add_tiles, apptiles2)
 
70
        GLib.timeout_add(1000, add_tiles, apptiles2)
71
71
 
72
72
        # this "viewport.queue_draw()" will fix the glitch
73
 
        #GObject.timeout_add_seconds(2, lambda: viewport.queue_draw())
 
73
        #GLib.timeout_add_seconds(2, lambda: viewport.queue_draw())
74
74
 
75
75
        # stop the test
76
 
        GObject.timeout_add_seconds(3, Gtk.main_quit)
 
76
        GLib.timeout_add_seconds(3, Gtk.main_quit)
77
77
 
78
78
        win.connect("destroy", Gtk.main_quit)
79
79
        win.show_all()