~ubuntu-branches/ubuntu/oneiric/gnome-games/oneiric-updates

« back to all changes in this revision

Viewing changes to libgames-support/games-gtk-compat.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-07-21 04:22:50 UTC
  • mfrom: (1.1.93)
  • Revision ID: package-import@ubuntu.com-20110721042250-far722bxogjk1rhi
Tags: 1:3.1.3-0ubuntu1
* New upstream release
  - Aisleriot was split out of gnome-games into its own module.
  - Gnotravex was ported to GSettings.
  - Sudoku was ported to PyGObject/GTK3 by John Stowers.
* debian/aisleriot*: Dropped
* debian/control
  - Drop aisleriot package
  - Recommend aisleriot
  - Disable lightsoff & swell-foop as they're not ready yet
  - Re-enable gnome-sudoku
  - Use python-gobject instead of python-gtk2
  - Don't use python-launchpad-integration as it doesn't work with pygi yet
  - Switch to dh_python2 (LP: #788514)
  - Drop old pre-Lucid conflicts with gnome-cards-data & gnome-games-data
  - Drop obsolete build-depends: check, dpkg-dev, guile-1.8, lsb-release,
    rarian-compat, & scrollkeeper
  - Use ${gir:Depends}
* debian/copyright: Drop aisleriot & blackjack entries
* debian/glchess.install: Drop gnome-gnuchess
* debian/gnome-games-common.install: Drop aisleriot entries
* debian/gnome-sudoku.install: Install gconf schema
* debian/gnotravex.install: Install GSettings schema
* debian/rules
  - Clean up configure flags
  - Switch to dh_python2
* debian/watch: Watch for .bz2
* debian/patches/01_lpi.patch: Refreshed
* debian/patches/02_desktop-path.patch: Removed aisleriot references
* debian/patches/03_add-appinstall-keywords.patch
  - Add keywords to make searching for the games easier in Software Center

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright © 2009 Thomas H.P. Andersen <phomes@gmail.com>
3
 
 *
4
 
 *  This runtime is free software; you can redistribute it and/or modify
5
 
 *  it under the terms of the GNU Lesser General Public License as published by
6
 
 *  the Free Software Foundation; either version 2.1, or (at your option)
7
 
 *  any later version.
8
 
 *
9
 
 *  This runtime is distributed in the hope runtime 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 General Public License for more details.
13
 
 *
14
 
 *  You should have received a copy of the GNU Lesser General Public License
15
 
 *  along with this runtime; if not, write to the Free Software
16
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
 
 */
18
 
 
19
 
#ifndef GAMES_GTK_COMPAT_H
20
 
#define GAMES_GTK_COMPAT_H
21
 
 
22
 
G_BEGIN_DECLS
23
 
#if !GTK_CHECK_VERSION (2, 21, 1)
24
 
#define gdk_visual_get_depth(widget) ((widget)->depth)
25
 
#endif /* GTK < 2.21.1 */
26
 
 
27
 
#if !GTK_CHECK_VERSION (2, 20, 0)
28
 
#define gtk_widget_get_realized(widget)                 (GTK_WIDGET_REALIZED(widget))
29
 
#define gtk_widget_set_realized(w,realized)             ((realized) ? (GTK_WIDGET_SET_FLAGS (w, GTK_REALIZED)) : (GTK_WIDGET_UNSET_FLAGS (w, GTK_REALIZED)))
30
 
#define gtk_widget_get_mapped(widget)                   (GTK_WIDGET_MAPPED(widget))
31
 
#endif /* GTK < 2.20.0 */
32
 
 
33
 
#if !GTK_CHECK_VERSION (2, 18, 0)
34
 
#define gtk_widget_set_allocation(widget, alloc) ((widget)->allocation=*(alloc))
35
 
#define gtk_widget_get_allocation(widget, alloc) (*(alloc)=(widget)->allocation)
36
 
#define gtk_widget_set_window(widget, window_arg) ((widget)->window=window_arg)
37
 
#define gtk_widget_has_focus(widget) (GTK_WIDGET_HAS_FOCUS (widget))
38
 
#define gtk_widget_get_state(widget) ((widget)->state)
39
 
#define gtk_widget_get_visible(widget) (GTK_WIDGET_VISIBLE (widget))
40
 
#define gtk_widget_is_drawable(widget) (GTK_WIDGET_DRAWABLE (widget))
41
 
#define gtk_widget_set_can_focus(w,can_focus)           ((can_focus) ? (GTK_WIDGET_SET_FLAGS (w, GTK_CAN_FOCUS)) : (GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_FOCUS)))
42
 
#endif /* GTK < 2.18.0 */
43
 
 
44
 
#if !GTK_CHECK_VERSION (2, 14, 0)
45
 
#define gtk_dialog_get_content_area(dialog) ((dialog)->vbox)
46
 
#define gtk_widget_get_window(widget) ((widget)->window)
47
 
#endif /* GTK < 2.14.0 */
48
 
 
49
 
G_END_DECLS
50
 
 
51
 
#endif /* !GAMES_GTK_COMPAT_H */