~ubuntu-branches/ubuntu/precise/virt-manager/precise-proposed

« back to all changes in this revision

Viewing changes to src/virtManager/graphwidgets.py

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-02-03 10:35:22 UTC
  • mfrom: (2.3.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110203103522-j8and6dsy3taczbj
Tags: 0.8.6-1ubuntu1
* Merge from debian experimental. Remaining changes:
  - Depend on python-appindicator for appindicator support.
  - Add a /usr/share/pixmaps/virt-manager-icon.svg symlink to link icon to
    where the Application Indicator can find it.
  - Add patch da_l10n.patch since it is not integrated. (refreshed)
  - Add patch show_session_or_system_in_console to make the overview
    screen show which local qemu session you're connected to. (refreshed)
  - Add patch more_helpful_error_message to explain to the user why he
    can't connect to qemu:///system and what he can do fix it.
  - Add patch qemu-system-by-default to automatically add qemu:///system
    to the list of hypervisors if the user has write access to the UNIX
    socket.
  - Drop patchsys-quilt include since dpkg-source does the quilt dance for
    us.
  - debian/control: lower libvirt-bin from Recommends to Suggests; seems
    some users (like netbooks) want to manage VMs, but not host them; see
    meta packages (ubuntu-virt, ubuntu-virt-server, ubuntu-virt-mgmt) for
    group installation of virt package sets.
* Removed patches:
  - debian/patches/custom-icon-installation.patch: Upstream.
  - debian/patches/remove-appindicator-workarounds.patch: Upstream.
  - debian/patches/fix-nc-with-zsh.patch: Upstream
* Removed python-ipy dependency as it is in universe:
  - debian/control: remove python-ipy from Depends
  - debian/series: disable 0002-Use-IPy-from-python-ipy.patch patch so
    we use the one that's included in the virt-manager source.
  - debian/rules: don't delete the IPy file.
* debian/patches/fix-cpu-wrong-types.patch: fix "value is of wrong type
  for this column" error by making sure we are using strings in
  src/virtManager/details.py.
* debian/patches/dont-always-launch-consoles.patch: Don't always launch
  consoles for running domains in src/virtManager/manager.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#
17
17
 
18
18
import gobject
19
 
import gtk.glade
 
19
import gtk
20
20
import cairo
21
21
 
22
22
# For debugging
78
78
    if not len(points):
79
79
        return
80
80
 
81
 
    last_point = _line_helper(cairo_ct, cell_area, points, for_fill = True)
 
81
    last_point = _line_helper(cairo_ct, cell_area, points, for_fill=True)
82
82
    if not last_point:
83
83
        # Nothing to draw
84
84
        #return
134
134
        # flags             : flags that affect rendering
135
135
        # flags = gtk.CELL_RENDERER_SELECTED, gtk.CELL_RENDERER_PRELIT,
136
136
        #         gtk.CELL_RENDERER_INSENSITIVE or gtk.CELL_RENDERER_SORTED
 
137
        ignore = widget
 
138
        ignore = expose_area
 
139
        ignore = background_area
 
140
        ignore = flags
137
141
 
138
142
        # Indent of the gray border around the graph
139
143
        BORDER_PADDING = 2
235
239
        return
236
240
 
237
241
    def do_get_size(self, widget, cell_area=None):
 
242
        ignore = widget
 
243
 
238
244
        FIXED_WIDTH = len(self.data_array)
239
245
        FIXED_HEIGHT = 15
240
246
        xpad = self.get_property("xpad")
313
319
        # event     : GdkEvent
314
320
        # cell_area : GdkRectangle: area normally rendered by cell
315
321
        # window            : gtk.gdk.Window (not plain window)
 
322
        ignore = event
316
323
 
317
324
        # cell_area : GdkRectangle: area normally rendered by cell
318
325
        cell_area = widget.allocation