~ubuntu-branches/debian/experimental/xfce4-panel/experimental

« back to all changes in this revision

Viewing changes to plugins/systray/xfce-tray-marshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Lionel Le Folgoc, Yves-Alexis Perez
  • Date: 2011-02-06 18:10:07 UTC
  • mfrom: (1.3.13 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110206181007-vpw5z3xnm3hdvybx
Tags: 4.8.1-1
[ Lionel Le Folgoc ]
* New upstream bugfix release.
* debian/control:
  - refreshed (b-)deps for this new major release
  - add myself to Uploaders
  - bump Standards-Version to 3.9.1.
* debian/NEWS: dropped, unneeded.
* debian/xfce4-panel.shlibs: refreshed, bump to (>= 4.7.2).
* debian/xfce4-panel.lintian-overrides: refreshed, new lib name.
* debian/xfce4-panel.preinst: added, handles removal of old conffiles.
* debian/xfce4-panel.postinst: explicitly set -e.
* debian/*.install: refreshed.
* debian/rules:
  - call dpkg-buildflags
  - dropped rc files mangling as they don't exist anymore
  - updated removal of *.{l,}a files.
  - drop overrides for dh_auto_{configure,clean}, obsolete.
* debian/xfce4-panel.{preinst,postinst,prerm}: use dpkg-maintscript-helper
  to remove pre-xfconf config files.
* Bugs fixed by 4.7.x/4.8.x series:
  - rgba support                                                  lp: #586012
  - disappearing menus                                             lp: #53897
  - xrandr support                               lp: #176174, Closes: #432914
  - Fails to reap children, creating zombies                      lp: #420187
  - DND of desktop-files on the panel to create new launchers Closes: #480380
* Bumped shlibs to >= 4.7.7, abi break for external plugins.

[ Yves-Alexis Perez ]
* New upstream development release
* debian/xfce4-panel.install:
  - install wrapper and migrate tools in xfce4-panel package
  - update plugins paths
* debian/rules:
  - update path when removing .a/.la files for plugins.
  - add hardening flags to {C,LD}FLAGS
* debian/control:
  - add build-dep on hardening-includes
  - update build-dep on garcon to 0.1.4.
* debian/copyright updated for new release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "xfce-tray-marshal.h"
2
 
 
3
 
#include        <glib-object.h>
4
 
 
5
 
 
6
 
#ifdef G_ENABLE_DEBUG
7
 
#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
8
 
#define g_marshal_value_peek_char(v)     g_value_get_char (v)
9
 
#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
10
 
#define g_marshal_value_peek_int(v)      g_value_get_int (v)
11
 
#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
12
 
#define g_marshal_value_peek_long(v)     g_value_get_long (v)
13
 
#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
14
 
#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
15
 
#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
16
 
#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
17
 
#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
18
 
#define g_marshal_value_peek_float(v)    g_value_get_float (v)
19
 
#define g_marshal_value_peek_double(v)   g_value_get_double (v)
20
 
#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
21
 
#define g_marshal_value_peek_param(v)    g_value_get_param (v)
22
 
#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
23
 
#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
24
 
#define g_marshal_value_peek_object(v)   g_value_get_object (v)
25
 
#else /* !G_ENABLE_DEBUG */
26
 
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
27
 
 *          Do not access GValues directly in your code. Instead, use the
28
 
 *          g_value_get_*() functions
29
 
 */
30
 
#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
31
 
#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
32
 
#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
33
 
#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
34
 
#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
35
 
#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
36
 
#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
37
 
#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
38
 
#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
39
 
#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
40
 
#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
41
 
#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
42
 
#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
43
 
#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
44
 
#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
45
 
#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
46
 
#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
47
 
#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
48
 
#endif /* !G_ENABLE_DEBUG */
49
 
 
50
 
 
51
 
/* VOID:OBJECT,STRING,LONG,LONG (xfce-tray-marshal.list:1) */
52
 
void
53
 
_xfce_tray_marshal_VOID__OBJECT_STRING_LONG_LONG (GClosure     *closure,
54
 
                                                  GValue       *return_value G_GNUC_UNUSED,
55
 
                                                  guint         n_param_values,
56
 
                                                  const GValue *param_values,
57
 
                                                  gpointer      invocation_hint G_GNUC_UNUSED,
58
 
                                                  gpointer      marshal_data)
59
 
{
60
 
  typedef void (*GMarshalFunc_VOID__OBJECT_STRING_LONG_LONG) (gpointer     data1,
61
 
                                                              gpointer     arg_1,
62
 
                                                              gpointer     arg_2,
63
 
                                                              glong        arg_3,
64
 
                                                              glong        arg_4,
65
 
                                                              gpointer     data2);
66
 
  register GMarshalFunc_VOID__OBJECT_STRING_LONG_LONG callback;
67
 
  register GCClosure *cc = (GCClosure*) closure;
68
 
  register gpointer data1, data2;
69
 
 
70
 
  g_return_if_fail (n_param_values == 5);
71
 
 
72
 
  if (G_CCLOSURE_SWAP_DATA (closure))
73
 
    {
74
 
      data1 = closure->data;
75
 
      data2 = g_value_peek_pointer (param_values + 0);
76
 
    }
77
 
  else
78
 
    {
79
 
      data1 = g_value_peek_pointer (param_values + 0);
80
 
      data2 = closure->data;
81
 
    }
82
 
  callback = (GMarshalFunc_VOID__OBJECT_STRING_LONG_LONG) (marshal_data ? marshal_data : cc->callback);
83
 
 
84
 
  callback (data1,
85
 
            g_marshal_value_peek_object (param_values + 1),
86
 
            g_marshal_value_peek_string (param_values + 2),
87
 
            g_marshal_value_peek_long (param_values + 3),
88
 
            g_marshal_value_peek_long (param_values + 4),
89
 
            data2);
90
 
}
91
 
 
92
 
/* VOID:OBJECT,LONG (xfce-tray-marshal.list:2) */
93
 
void
94
 
_xfce_tray_marshal_VOID__OBJECT_LONG (GClosure     *closure,
95
 
                                      GValue       *return_value G_GNUC_UNUSED,
96
 
                                      guint         n_param_values,
97
 
                                      const GValue *param_values,
98
 
                                      gpointer      invocation_hint G_GNUC_UNUSED,
99
 
                                      gpointer      marshal_data)
100
 
{
101
 
  typedef void (*GMarshalFunc_VOID__OBJECT_LONG) (gpointer     data1,
102
 
                                                  gpointer     arg_1,
103
 
                                                  glong        arg_2,
104
 
                                                  gpointer     data2);
105
 
  register GMarshalFunc_VOID__OBJECT_LONG callback;
106
 
  register GCClosure *cc = (GCClosure*) closure;
107
 
  register gpointer data1, data2;
108
 
 
109
 
  g_return_if_fail (n_param_values == 3);
110
 
 
111
 
  if (G_CCLOSURE_SWAP_DATA (closure))
112
 
    {
113
 
      data1 = closure->data;
114
 
      data2 = g_value_peek_pointer (param_values + 0);
115
 
    }
116
 
  else
117
 
    {
118
 
      data1 = g_value_peek_pointer (param_values + 0);
119
 
      data2 = closure->data;
120
 
    }
121
 
  callback = (GMarshalFunc_VOID__OBJECT_LONG) (marshal_data ? marshal_data : cc->callback);
122
 
 
123
 
  callback (data1,
124
 
            g_marshal_value_peek_object (param_values + 1),
125
 
            g_marshal_value_peek_long (param_values + 2),
126
 
            data2);
127
 
}
128