~aleksandr-rakov/pantheon-dock/pantheon-dock

« back to all changes in this revision

Viewing changes to lib/Widgets/PoofWindow.vala

  • Committer: Rico Tzschichholz
  • Date: 2012-06-07 09:39:50 UTC
  • Revision ID: ricotz@ubuntu.com-20120607093950-5x669vnzsef3dqj4
build: Drop support for GTK+2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                        return double.max (0, double.min (1, (double) new DateTime.now_utc ().difference (start_time) / RUN_LENGTH));
87
87
                }
88
88
                
89
 
#if USE_GTK2
90
 
                public override bool expose_event (EventExpose event)
91
 
                {
92
 
                        var cr = cairo_create (event.window);
93
 
#else
94
89
                public override bool draw (Cairo.Context cr)
95
90
                {
96
 
#endif
97
91
                        cr.set_operator (Operator.SOURCE);
98
92
                        cr.set_source_rgba (0, 0, 0, 0);
99
93
                        cr.paint ();