2
* Copyright (c) 2015 Wingpanel Developers (http://launchpad.net/wingpanel)
2
* Copyright (c) 2011-2015 Wingpanel Developers (http://launchpad.net/wingpanel)
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.
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.
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.
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 ();
23
public BackgroundAlpha get_alpha (int monitor) {
24
return AlphaManager.get_default ().get_alpha_mode (monitor);
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);
31
public void remember_focused_window () {
32
FocusManager.get_default ().remember_focused_window ();
35
public void restore_focused_window () {
36
FocusManager.get_default ().restore_focused_window ();
22
public signal void alpha_changed (uint animation_duration);
23
public signal void wallpaper_changed ();
25
public BackgroundAlpha get_alpha (int monitor) {
26
return AlphaManager.get_default ().get_alpha_mode (monitor);
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);
33
public void remember_focused_window () {
34
FocusManager.get_default ().remember_focused_window ();
37
public void restore_focused_window () {
38
FocusManager.get_default ().restore_focused_window ();
b'\\ No newline at end of file'