summarylogtreecommitdiffstats
path: root/minus-backgroundmanager.patch
blob: 25a150955e53ce3b6e4803993628ca5ab1bf983d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--- src/wingpanel/src/PanelWindow.vala	2016-10-21 23:51:49.434036000 +0900
+++ src/wingpanel/src/PanelWindow.vala.new	2016-10-22 00:21:00.991151961 +0900
@@ -86,7 +86,7 @@
     private void on_realize () {
         update_panel_dimensions ();
 
-        Services.BackgroundManager.get_default ().initialize (this.monitor_number, panel_height);
+        //Services.BackgroundManager.get_default ().initialize (this.monitor_number, panel_height);
 
         Timeout.add (300 / panel_height, animation_step);
     }
@@ -152,7 +152,7 @@
 
     public void set_expanded (bool expanded) {
         if (expand && !this.expanded) {
-            Services.BackgroundManager.get_default ().remember_window ();
+            //Services.BackgroundManager.get_default ().remember_window ();
 
             this.expanded = true;
 
@@ -163,7 +163,7 @@
 
             this.set_size_request (monitor_width, monitor_height);
         } else if (!expand) {
-            Services.BackgroundManager.get_default ().restore_window ();
+            //Services.BackgroundManager.get_default ().restore_window ();
 
             this.expanded = false;
 
--- src/wingpanel/src/Widgets/Panel.vala	2016-10-22 00:14:45.485792472 +0900
+++ src/wingpanel/src/Widgets/Panel.vala.new	2016-10-22 00:15:13.386112571 +0900
@@ -60,7 +60,7 @@
 
         style_context = this.get_style_context ();
 
-        Services.BackgroundManager.get_default ().background_state_changed.connect (update_background);
+        //Services.BackgroundManager.get_default ().background_state_changed.connect (update_background);
     }
 
     private void add_indicator (Indicator indicator) {
@@ -102,7 +102,7 @@
         }
     }
 
-    private void update_background (Services.BackgroundState state, uint animation_duration) {
+    /* private void update_background (Services.BackgroundState state, uint animation_duration) {
         if (style_provider == null) {
             style_provider = new Gtk.CssProvider ();
             style_context.add_provider (style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
@@ -146,5 +146,5 @@
                 style_context.remove_class ("maximized");
                 break;
         }
-    }
+    } */
 }
--- src/wingpanel/src/Services/BackgroundManager.vala	2016-10-21 23:51:49.434036000 +0900
+++ src/wingpanel/src/Services/BackgroundManager.vala.new	2016-10-22 00:05:37.809131283 +0900
@@ -17,7 +17,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
-namespace Wingpanel.Services {
+/* namespace Wingpanel.Services {
     public enum BackgroundState {
         LIGHT,
         DARK,
@@ -114,4 +114,4 @@
             return instance;
         }
     }
-}
+} */