~dockbar-main/dockbar/dockbarx

« back to all changes in this revision

Viewing changes to dockbarx/cairowidgets.py

  • Committer: Matias Särs
  • Date: 2012-10-20 05:22:50 UTC
  • Revision ID: m7s@bastu.net-20121020052250-n8mv4pgl8ilxig7p
- Appindicator menus no longer pop up at mouse pointer location but next to the dock, more like they do in unity.
- Fixed a little visual glitch caused by the last bug fix.
- Removed some left over print statements from the code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1166
1166
        ctx.set_operator(cairo.OPERATOR_SOURCE)
1167
1167
        ctx.set_source_rgba(1,1,1,0)
1168
1168
        ctx.paint()
1169
 
        print "drawn"
1170
1169
 
1171
1170
    def do_expose_event(self, event, arg=None):
1172
 
        print "exposed"
1173
1171
        a = self.get_allocation()
1174
1172
        ctx = self.window.cairo_create()
1175
1173
        ctx.rectangle(event.area.x, event.area.y,
1180
1178
        ctx.paint()
1181
1179
 
1182
1180
    def do_visibility_notify_event(self, *args):
1183
 
        print "visibility"
1184
1181
        self.draw()
1185
1182
 
1186
1183
def make_path(ctx, x=0, y=0, w=0, h=0, r=6, b=0.5,