~wingpanel-devs/wingpanel/simplify-background-management

« back to all changes in this revision

Viewing changes to wingpanel-interface/DBusServer.vala

  • Committer: RabbitBot
  • Author(s): Marcus Wichelmann
  • Date: 2015-10-20 17:31:28 UTC
  • mfrom: (94.1.28 automatic-cleanup-branch)
  • Revision ID: rabbitbot-20151020173128-d8m9e9mofmfd0igk
Automatic code cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*-
2
 
 * Copyright (c) 2015 Wingpanel Developers (http://launchpad.net/wingpanel)
 
1
/*
 
2
 * Copyright (c) 2011-2015 Wingpanel Developers (http://launchpad.net/wingpanel)
3
3
 *
4
 
 * This program is free software: you can redistribute it and/or modify
5
 
 * it under the terms of the GNU Library General Public License as published by
6
 
 * the Free Software Foundation, either version 2.1 of the License, or
7
 
 * (at your option) any later version.
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
8
8
 *
9
9
 * This program is distributed in the hope that it will be useful,
10
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 * GNU Library General Public License for more details.
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * General Public License for more details.
13
13
 *
14
 
 * You should have received a copy of the GNU Library General Public License
15
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
 * You should have received a copy of the GNU General Public
 
15
 * License along with this program; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
16
18
 */
17
19
 
18
20
[DBus (name = "org.pantheon.gala.WingpanelInterface")]
19
21
public class WingpanelInterface.DBusServer : Object {
20
 
        public signal void alpha_changed (uint animation_duration);
21
 
        public signal void wallpaper_changed ();
22
 
 
23
 
        public BackgroundAlpha get_alpha (int monitor) {
24
 
                return AlphaManager.get_default ().get_alpha_mode (monitor);
25
 
        }
26
 
 
27
 
        public async double get_background_alpha (int monitor, int panel_height) {
28
 
                return yield AlphaManager.get_default ().calculate_alpha_for_background (monitor, panel_height);
29
 
        }
30
 
 
31
 
        public void remember_focused_window () {
32
 
                FocusManager.get_default ().remember_focused_window ();
33
 
        }
34
 
 
35
 
        public void restore_focused_window () {
36
 
                FocusManager.get_default ().restore_focused_window ();
37
 
        }
38
 
}
 
22
    public signal void alpha_changed (uint animation_duration);
 
23
    public signal void wallpaper_changed ();
 
24
 
 
25
    public BackgroundAlpha get_alpha (int monitor) {
 
26
        return AlphaManager.get_default ().get_alpha_mode (monitor);
 
27
    }
 
28
 
 
29
    public async double get_background_alpha (int monitor, int panel_height) {
 
30
        return yield AlphaManager.get_default ().calculate_alpha_for_background (monitor, panel_height);
 
31
    }
 
32
 
 
33
    public void remember_focused_window () {
 
34
        FocusManager.get_default ().remember_focused_window ();
 
35
    }
 
36
 
 
37
    public void restore_focused_window () {
 
38
        FocusManager.get_default ().restore_focused_window ();
 
39
    }
 
40
}
 
 
b'\\ No newline at end of file'