~golfish/netbook-remix-launcher/desktop

« back to all changes in this revision

Viewing changes to src/launcher-wm.h

  • Committer: Neil J. Patel
  • Date: 2008-04-16 11:31:15 UTC
  • Revision ID: njpatel@gmail.com-20080416113115-ztljg0qms79anijd
* Inital import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2008 Canonical Ltd
 
3
 *
 
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
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * Authored by Neil Jagdish Patel <neil.patel@canonical.com>
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef _LAUNCHER_WM_H_
 
24
#define _LAUNCHER_WM_H_
 
25
 
 
26
#include <glib-object.h>
 
27
#include <gtk/gtk.h>
 
28
#include <libwnck/libwnck.h>
 
29
 
 
30
#define LAUNCHER_TYPE_WM (launcher_wm_get_type ())
 
31
 
 
32
#define LAUNCHER_WM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
 
33
        LAUNCHER_TYPE_WM, LauncherWm))
 
34
 
 
35
#define LAUNCHER_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
 
36
        LAUNCHER_TYPE_WM, LauncherWmClass))
 
37
 
 
38
#define LAUNCHER_IS_WM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
 
39
        LAUNCHER_TYPE_WM))
 
40
 
 
41
#define LAUNCHER_IS_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
 
42
        LAUNCHER_TYPE_WM))
 
43
 
 
44
#define LAUNCHER_WM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
 
45
        LAUNCHER_TYPE_WM, LauncherWmClass))
 
46
 
 
47
typedef struct _LauncherWm        LauncherWm;
 
48
typedef struct _LauncherWmClass   LauncherWmClass;
 
49
typedef struct _LauncherWmPrivate LauncherWmPrivate;
 
50
 
 
51
struct _LauncherWm
 
52
{
 
53
  GObject        parent;        
 
54
 
 
55
  LauncherWmPrivate *priv;
 
56
};
 
57
 
 
58
struct _LauncherWmClass
 
59
{
 
60
  GObjectClass   parent_class;
 
61
 
 
62
  /*< signals />*/
 
63
  void (*show_windec) (LauncherWm *wm, WnckWindow *window);
 
64
  void (*hide_windec) (LauncherWm *wm);
 
65
};
 
66
 
 
67
GType launcher_wm_get_type (void) G_GNUC_CONST;
 
68
 
 
69
LauncherWm * launcher_wm_get_default (void);
 
70
 
 
71
 
 
72
#endif /* _LAUNCHER_WM_H_ */
 
73