~ubuntu-branches/debian/squeeze/muine/squeeze

« back to all changes in this revision

Viewing changes to libmuine/egg/eggtraymanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2007-02-13 00:07:32 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070213000732-te83ms9n1ou7ek12
Tags: 0.8.7-1
* New upstream release
  - Require Gtk# 2.6 or newer
  - Build-depend on mono-gmcs, gtk# 2.6
  - Build-depend on libmono-cairo2.0-cil
* muine.install
   - Drop debian/tmp/usr/lib/mono/gac/*
   - Drop debian/tmp/usr/lib/mono/muine/*
   - Add debian/tmp/usr/lib/muine/*dll*
* Build-depend on mono-gmcs, gtk# 2.6
* Urgency high to get rid of gstreamer 0.8 at
  the request of the security team (Closes: #410442)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
 
/* eggtraymanager.h
3
 
 * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
4
 
 *
5
 
 * This library is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU Lesser General Public
7
 
 * License as published by the Free Software Foundation; either
8
 
 * version 2 of the License, or (at your option) any later version.
9
 
 *
10
 
 * This library is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
 * Lesser General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU Lesser General Public
16
 
 * License along with this library; if not, write to the
17
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
 
 * Boston, MA 02111-1307, USA.
19
 
 */
20
 
 
21
 
#ifndef __EGG_TRAY_MANAGER_H__
22
 
#define __EGG_TRAY_MANAGER_H__
23
 
 
24
 
#include <gtk/gtkwidget.h>
25
 
#include <gdk/gdkx.h>
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
#define EGG_TYPE_TRAY_MANAGER                   (egg_tray_manager_get_type ())
30
 
#define EGG_TRAY_MANAGER(obj)                   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_MANAGER, EggTrayManager))
31
 
#define EGG_TRAY_MANAGER_CLASS(klass)           (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_MANAGER, EggTrayManagerClass))
32
 
#define EGG_IS_TRAY_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_MANAGER))
33
 
#define EGG_IS_TRAY_MANAGER_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_MANAGER))
34
 
#define EGG_TRAY_MANAGER_GET_CLASS(obj)         (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_MANAGER, EggTrayManagerClass))
35
 
        
36
 
typedef struct _EggTrayManager       EggTrayManager;
37
 
typedef struct _EggTrayManagerClass  EggTrayManagerClass;
38
 
typedef struct _EggTrayManagerChild  EggTrayManagerChild;
39
 
 
40
 
struct _EggTrayManager
41
 
{
42
 
  GObject parent_instance;
43
 
 
44
 
  Atom opcode_atom;
45
 
  Atom selection_atom;
46
 
  Atom message_data_atom;
47
 
  Atom orientation_atom;
48
 
  
49
 
  GtkWidget *invisible;
50
 
  GdkScreen *screen;
51
 
  GtkOrientation orientation;
52
 
 
53
 
  GList *messages;
54
 
  GHashTable *socket_table;
55
 
};
56
 
 
57
 
struct _EggTrayManagerClass
58
 
{
59
 
  GObjectClass parent_class;
60
 
 
61
 
  void (* tray_icon_added)   (EggTrayManager      *manager,
62
 
                              EggTrayManagerChild *child);
63
 
  void (* tray_icon_removed) (EggTrayManager      *manager,
64
 
                              EggTrayManagerChild *child);
65
 
 
66
 
  void (* message_sent)      (EggTrayManager      *manager,
67
 
                              EggTrayManagerChild *child,
68
 
                              const gchar         *message,
69
 
                              glong                id,
70
 
                              glong                timeout);
71
 
  
72
 
  void (* message_cancelled) (EggTrayManager      *manager,
73
 
                              EggTrayManagerChild *child,
74
 
                              glong                id);
75
 
 
76
 
  void (* lost_selection)    (EggTrayManager      *manager);
77
 
};
78
 
 
79
 
GType           egg_tray_manager_get_type        (void);
80
 
 
81
 
gboolean        egg_tray_manager_check_running   (GdkScreen           *screen);
82
 
EggTrayManager *egg_tray_manager_new             (void);
83
 
gboolean        egg_tray_manager_manage_screen   (EggTrayManager      *manager,
84
 
                                                  GdkScreen           *screen);
85
 
char           *egg_tray_manager_get_child_title (EggTrayManager      *manager,
86
 
                                                  EggTrayManagerChild *child);
87
 
void            egg_tray_manager_set_orientation (EggTrayManager      *manager,
88
 
                                                  GtkOrientation       orientation);
89
 
GtkOrientation  egg_tray_manager_get_orientation (EggTrayManager      *manager);
90
 
 
91
 
G_END_DECLS
92
 
 
93
 
#endif /* __EGG_TRAY_MANAGER_H__ */