~gentoo90/synapse-project/remmina

« back to all changes in this revision

Viewing changes to src/ui/view-essential.vala

  • Committer: Rico Tzschichholz
  • Date: 2016-02-27 15:17:27 UTC
  • Revision ID: ricotz@ubuntu.com-20160227151727-3ml4cg62qnkksusc
src: Drop "using Cairo;"

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *
20
20
 */
21
21
 
22
 
using Cairo;
23
 
 
24
22
namespace Synapse.Gui
25
23
{
26
24
  public class ViewEssential : Synapse.Gui.View
207
205
          Gtk.Allocation results_container_allocation;
208
206
          results_container.get_allocation (out results_container_allocation);
209
207
          ctx.translate (0.5, 0.5);
210
 
          ctx.set_operator (Operator.OVER);
 
208
          ctx.set_operator (Cairo.Operator.OVER);
211
209
          Utils.cairo_make_shadow_for_rect (ctx, results_container_allocation.x,
212
210
                                                 results_container_allocation.y,
213
211
                                                 results_container_allocation.width - 1,
215
213
                                                 0, r, g, b, SHADOW_SIZE);
216
214
          ctx.translate (-0.5, -0.5);
217
215
        }
218
 
        ctx.set_operator (Operator.SOURCE);
 
216
        ctx.set_operator (Cairo.Operator.SOURCE);
219
217
        ch.set_source_rgba (ctx, 1.0, StyleType.BASE, Gtk.StateFlags.NORMAL);
220
218
        ctx.rectangle (spacer_allocation.x, spacer_allocation.y + BORDER_RADIUS, spacer_allocation.width, SHADOW_SIZE);
221
219
        ctx.fill ();
233
231
      height -= SHADOW_SIZE + delta;
234
232
      // shadow
235
233
      ctx.translate (0.5, 0.5);
236
 
      ctx.set_operator (Operator.OVER);
 
234
      ctx.set_operator (Cairo.Operator.OVER);
237
235
      Utils.cairo_make_shadow_for_rect (ctx, 0, 0, width - 1, height - 1, BORDER_RADIUS, r, g, b, SHADOW_SIZE);
238
236
      ctx.translate (-0.5, -0.5);
239
237
 
240
238
      ctx.save ();
241
239
      // pattern
242
 
      Pattern pat = new Pattern.linear(0, 0, 0, height);
 
240
      Cairo.Pattern pat = new Cairo.Pattern.linear(0, 0, 0, height);
243
241
      if (this.bg_state == Gtk.StateFlags.SELECTED)
244
242
      {
245
243
        r = g = b = 0.5;
256
254
      }
257
255
      Utils.cairo_rounded_rect (ctx, 0, 0, width, height, BORDER_RADIUS);
258
256
      ctx.set_source (pat);
259
 
      ctx.set_operator (Operator.SOURCE);
 
257
      ctx.set_operator (Cairo.Operator.SOURCE);
260
258
      ctx.clip ();
261
259
      ctx.paint ();
262
260
      ctx.restore ();