add copyright header to ShadowEffect, add window property to WindowIcon class for easier handling

This commit is contained in:
Tom Beckmann 2014-07-17 19:05:40 +02:00
parent 66b3b1b4df
commit 3cb9dc60b2
2 changed files with 19 additions and 1 deletions

View File

@ -80,6 +80,7 @@ namespace Gala
{
public uint32 xid { get; construct; }
public int icon_size { get; construct; }
public Meta.Window window { get; construct; }
static Bamf.Matcher? matcher = null;
@ -88,7 +89,7 @@ namespace Gala
public WindowIcon (Meta.Window window, int icon_size)
{
var xid = (uint32)window.get_xwindow ();
Object (xid: xid, icon_size: icon_size);
Object (window: window, xid: xid, icon_size: icon_size);
width = icon_size;
height = icon_size;

View File

@ -1,3 +1,20 @@
//
// Copyright (C) 2014 Tom Beckmann
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
using Clutter;
namespace Gala