Skip to content

Commit 49d1d8f

Browse files
kgrubbdonadigo
authored andcommitted
👕 Lint lib directory with vala-lint (#607)
1 parent 5069479 commit 49d1d8f

File tree

6 files changed

+877
-902
lines changed

6 files changed

+877
-902
lines changed

lib/ActivatableComponent.vala

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,34 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
//
1717

18-
namespace Gala
19-
{
20-
/**
21-
* Implement this interface on your {@link Plugin} class if you want to
22-
* replace a component like the window overview or the multitasking view.
23-
* It allows gala to hook up functionality like hotcorners and dbus
24-
* invocation of your component.
25-
*/
26-
public interface ActivatableComponent : Object
27-
{
28-
/**
29-
* The component was requested to be opened.
30-
*
31-
* @param hints The hashmap may contain special parameters that are useful
32-
* to the component. Currently, the only one implemented is the
33-
* 'all-windows' hint to the windowoverview.
34-
*/
35-
public abstract void open (HashTable<string,Variant>? hints = null);
18+
namespace Gala {
19+
/**
20+
* Implement this interface on your {@link Plugin} class if you want to
21+
* replace a component like the window overview or the multitasking view.
22+
* It allows gala to hook up functionality like hotcorners and dbus
23+
* invocation of your component.
24+
*/
25+
public interface ActivatableComponent : Object {
26+
/**
27+
* The component was requested to be opened.
28+
*
29+
* @param hints The hashmap may contain special parameters that are useful
30+
* to the component. Currently, the only one implemented is the
31+
* 'all-windows' hint to the windowoverview.
32+
*/
33+
public abstract void open (HashTable<string,Variant>? hints = null);
3634

37-
/**
38-
* The component was requested to be closed.
39-
*/
40-
public abstract void close ();
35+
/**
36+
* The component was requested to be closed.
37+
*/
38+
public abstract void close ();
4139

42-
/**
43-
* Should return whether the component is currently opened. Used mainly for
44-
* toggling by the window manager.
45-
*
46-
* @return Return true if the component is opened.
47-
*/
48-
public abstract bool is_opened ();
49-
}
40+
/**
41+
* Should return whether the component is currently opened. Used mainly for
42+
* toggling by the window manager.
43+
*
44+
* @return Return true if the component is opened.
45+
*/
46+
public abstract bool is_opened ();
47+
}
5048
}
51-

lib/Constants.vala

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,20 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
//
1717

18-
namespace Gala
19-
{
20-
[CCode (has_type_id = false)]
21-
public enum AnimationDuration {
22-
// Duration of the open animation
23-
OPEN = 350,
24-
// Duration of the close animation
25-
CLOSE = 195,
26-
// Duration of the minimize animation
27-
MINIMIZE = 200,
28-
// Duration of the menu mapping animation
29-
MENU_MAP = 150,
30-
// Duration of the snap animation as used by maximize/unmaximize
31-
SNAP = 250,
32-
// Duration of the workspace switch animation
33-
WORKSPACE_SWITCH = 300,
34-
}
18+
namespace Gala {
19+
[CCode (has_type_id = false)]
20+
public enum AnimationDuration {
21+
// Duration of the open animation
22+
OPEN = 350,
23+
// Duration of the close animation
24+
CLOSE = 195,
25+
// Duration of the minimize animation
26+
MINIMIZE = 200,
27+
// Duration of the menu mapping animation
28+
MENU_MAP = 150,
29+
// Duration of the snap animation as used by maximize/unmaximize
30+
SNAP = 250,
31+
// Duration of the workspace switch animation
32+
WORKSPACE_SWITCH = 300,
33+
}
3534
}

0 commit comments

Comments
 (0)