~ubuntu-branches/ubuntu/precise/unity-2d/precise-proposed

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/gobjectcallback.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-03-05 09:52:30 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20120305095230-alpmktmmfnjs2t4b
Tags: 5.6.0-0ubuntu1
* New upstream release
  - [dash] [hud] If no active window, shell processes crashes (LP: #944724)
  - Long delay on session logout (LP: #812104)
  - apps/docs are not launched when performing a search on the home lens
    (LP: #932092)
  - [unity-2d] FF exception to add HUD to Unity2d (LP: #942045)
  - There's a gap between the launcher and the upper panel (LP: #942031)
  - Dash - Genre filter category in the Music Lens should use a 3 column
    layout (LP: #841902)
  - selected lens arrow should be on top instead of bottom (LP: #932291)
  - [launcher] pixel-perfection fixes, new assets, tile & pip position,
    border line & context menu position (LP: #936881)
  - Workspace switcher icon should not generate background from icon
    (LP: #939586)
  - No glow assets still needed X Y Z (LP: #934059)
* Revert an upstream commit to ensure that there is not regression with
  libunity-core 5.4 (change will be introduced again when unity 5.6 released)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2012 Canonical, Ltd.
 
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; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
// Handy macros to declare GObject callbacks. The 'n' in CALLBACKn refers to
 
18
// the number of dummy arguments the callback returns
 
19
#define GOBJECT_CALLBACK0(callbackName, slot) \
 
20
static void \
 
21
callbackName(GObject* src, QObject* dst) \
 
22
{ \
 
23
    QMetaObject::invokeMethod(dst, slot); \
 
24
}
 
25
 
 
26
#define GOBJECT_CALLBACK1(callbackName, slot) \
 
27
static void \
 
28
callbackName(GObject* src, void* dummy1, QObject* dst) \
 
29
{ \
 
30
    QMetaObject::invokeMethod(dst, slot); \
 
31
}
 
32
 
 
33
#define GOBJECT_CALLBACK2(callbackName, slot) \
 
34
static void \
 
35
callbackName(GObject* src, void* dummy1, void* dummy2, QObject* dst) \
 
36
{ \
 
37
    QMetaObject::invokeMethod(dst, slot); \
 
38
}