Skip to content

Commit

Permalink
👕 Lint lib directory with vala-lint (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrubb authored and donadigo committed Sep 5, 2019
1 parent 5069479 commit 49d1d8f
Show file tree
Hide file tree
Showing 6 changed files with 877 additions and 902 deletions.
59 changes: 28 additions & 31 deletions lib/ActivatableComponent.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,34 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

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

/**
* The component was requested to be closed.
*/
public abstract void close ();
/**
* The component was requested to be closed.
*/
public abstract void close ();

/**
* Should return whether the component is currently opened. Used mainly for
* toggling by the window manager.
*
* @return Return true if the component is opened.
*/
public abstract bool is_opened ();
}
/**
* Should return whether the component is currently opened. Used mainly for
* toggling by the window manager.
*
* @return Return true if the component is opened.
*/
public abstract bool is_opened ();
}
}

33 changes: 16 additions & 17 deletions lib/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

namespace Gala
{
[CCode (has_type_id = false)]
public enum AnimationDuration {
// Duration of the open animation
OPEN = 350,
// Duration of the close animation
CLOSE = 195,
// Duration of the minimize animation
MINIMIZE = 200,
// Duration of the menu mapping animation
MENU_MAP = 150,
// Duration of the snap animation as used by maximize/unmaximize
SNAP = 250,
// Duration of the workspace switch animation
WORKSPACE_SWITCH = 300,
}
namespace Gala {
[CCode (has_type_id = false)]
public enum AnimationDuration {
// Duration of the open animation
OPEN = 350,
// Duration of the close animation
CLOSE = 195,
// Duration of the minimize animation
MINIMIZE = 200,
// Duration of the menu mapping animation
MENU_MAP = 150,
// Duration of the snap animation as used by maximize/unmaximize
SNAP = 250,
// Duration of the workspace switch animation
WORKSPACE_SWITCH = 300,
}
}
Loading

0 comments on commit 49d1d8f

Please sign in to comment.