View | Details | Raw Unified | Return to bug 225124
Collapse All | Expand All

(-)x11/gnome-pie/files/patch-src__utilities__color.vala (+47 lines)
Line 0 Link Here
1
--- src/utilities/color.vala.orig	2018-01-12 22:06:16.414101000 +0100
2
+++ src/utilities/color.vala	2018-01-12 22:12:55.215652000 +0100
3
@@ -41,7 +41,7 @@
4
     /////////////////////////////////////////////////////////////////////
5
 
6
     public Color() {
7
-        Color.from_rgb(1.0f, 1.0f, 1.0f);
8
+        this.from_rgb(1.0f, 1.0f, 1.0f);
9
     }
10
 
11
     /////////////////////////////////////////////////////////////////////
12
@@ -49,7 +49,7 @@
13
     /////////////////////////////////////////////////////////////////////
14
 
15
     public Color.from_rgb(float red, float green, float blue) {
16
-        Color.from_rgba(red, green, blue, 1.0f);
17
+        this.from_rgba(red, green, blue, 1.0f);
18
     }
19
 
20
     /////////////////////////////////////////////////////////////////////
21
@@ -68,7 +68,7 @@
22
     /////////////////////////////////////////////////////////////////////
23
 
24
     public Color.from_gdk(Gdk.RGBA color) {
25
-        Color.from_rgba(
26
+        this.from_rgba(
27
             (float)color.red,
28
             (float)color.green,
29
             (float)color.blue,
30
@@ -83,7 +83,7 @@
31
     public Color.from_string(string hex_string) {
32
         var color = Gdk.RGBA();
33
         color.parse(hex_string);
34
-        Color.from_gdk(color);
35
+        this.from_gdk(color);
36
     }
37
 
38
     /////////////////////////////////////////////////////////////////////
39
@@ -121,7 +121,7 @@
40
             }
41
         }
42
 
43
-        Color.from_rgb((float)(rtotal/total), (float)(gtotal/total), (float)(btotal/total));
44
+        this.from_rgb((float)(rtotal/total), (float)(gtotal/total), (float)(btotal/total));
45
 
46
         if (s > 0.15f) s = 0.65f;
47
 

Return to bug 225124