~ubuntu-branches/ubuntu/maverick/awn-extras-applets/maverick

« back to all changes in this revision

Viewing changes to applets/maintained/related/awn-desktop-lookup.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-08-29 14:29:52 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100829142952-rhvuetyms9bv5uu7
Tags: upstream-0.4.0+bzr1372
ImportĀ upstreamĀ versionĀ 0.4.0+bzr1372

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Rodney Cryderman <rcryderman@gmail.com>
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 * 
 
9
 * This program 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
 
12
 * GNU Library General Public License for more details.
 
13
 * 
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 
17
 *
 
18
 * Authored by Rodney Cryderman <rcryderman@gmail.com>
 
19
 */
 
20
/* awn-desktop-lookup.h */
 
21
 
 
22
#ifndef _AWN_DESKTOP_LOOKUP
 
23
#define _AWN_DESKTOP_LOOKUP
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define AWN_TYPE_DESKTOP_LOOKUP awn_desktop_lookup_get_type()
 
30
 
 
31
#define AWN_DESKTOP_LOOKUP(obj) \
 
32
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_DESKTOP_LOOKUP, AwnDesktopLookup))
 
33
 
 
34
#define AWN_DESKTOP_LOOKUP_CLASS(klass) \
 
35
  (G_TYPE_CHECK_CLASS_CAST ((klass), AWN_TYPE_DESKTOP_LOOKUP, AwnDesktopLookupClass))
 
36
 
 
37
#define AWN_IS_DESKTOP_LOOKUP(obj) \
 
38
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_DESKTOP_LOOKUP))
 
39
 
 
40
#define AWN_IS_DESKTOP_LOOKUP_CLASS(klass) \
 
41
  (G_TYPE_CHECK_CLASS_TYPE ((klass), AWN_TYPE_DESKTOP_LOOKUP))
 
42
 
 
43
#define AWN_DESKTOP_LOOKUP_GET_CLASS(obj) \
 
44
  (G_TYPE_INSTANCE_GET_CLASS ((obj), AWN_TYPE_DESKTOP_LOOKUP, AwnDesktopLookupClass))
 
45
 
 
46
typedef struct {
 
47
  GObject parent;
 
48
} AwnDesktopLookup;
 
49
 
 
50
typedef struct {
 
51
  GObjectClass parent_class;
 
52
} AwnDesktopLookupClass;
 
53
 
 
54
GType awn_desktop_lookup_get_type (void);
 
55
 
 
56
AwnDesktopLookup* awn_desktop_lookup_new (void);
 
57
gchar *awn_desktop_lookup_search_for_desktop (gulong xid);
 
58
gchar *awn_desktop_lookup_search_cache (AwnDesktopLookup* * self,
 
59
                                 gchar * class_name,
 
60
                                 gchar * res_name,
 
61
                                 gchar * cmd, 
 
62
                                 gchar *id);
 
63
gchar *awn_desktop_lookup_special_case (gchar * cmd,
 
64
                                 gchar *res_name, 
 
65
                                 gchar * class_name,
 
66
                                 gchar * wm_icon_name,
 
67
                                 gchar * wm_name,
 
68
                                 gchar * window_role);
 
69
 
 
70
 
 
71
 
 
72
G_END_DECLS
 
73
 
 
74
#endif /* _AWN_DESKTOP_LOOKUP */