~muktupavels/metacity/adwaita-icon-theme-lp-1414613

« back to all changes in this revision

Viewing changes to src/themewidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-03 22:44:28 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051003224428-ft31gkmz12qpzohj
Tags: 1:2.12.1-0ubuntu1
* New upstream release:
  - Thanks to Ray Strode, Havoc Pennington, and Elijah Newren for
    improvements in this release.
  - Truncate ridiculously long titles to avoid crashing or letting the
    pager crash (Ray, Havoc, Elijah) [#315070] (Ubuntu: #15995)
  - Get the tabbing window outline to work with gtk+ 2.8.4 again
    (Elijah) [#317528] (Ubuntu: #16589)
  - Translations: Mahay Alam Khan (bn), Francisco Javier F. Serrador (es), 
    Ivar Smolin (et), I\uffffaki Larra\uffffaga Murgoitio (eu), Luca 
    Ferretti (it), Christian Rose (sv), Clytie Siddall (vi), Funda 
    Wang (zh_CN)
* debian/control.in:
  - Bumped Standards-Version.
* debian/patches/003_bordersdrawingfix.patch:
  - dropped, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Metacity theme widget (displays themed draw operations) */
 
2
 
 
3
/* 
 
4
 * Copyright (C) 2002 Havoc Pennington
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License as
 
8
 * published by the Free Software Foundation; either version 2 of the
 
9
 * License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#include "theme.h"
 
23
#include <gtk/gtkmisc.h>
 
24
 
 
25
#ifndef META_THEME_WIDGET_H
 
26
#define META_THEME_WIDGET_H
 
27
 
 
28
#define META_TYPE_AREA                   (meta_area_get_type ())
 
29
#define META_AREA(obj)                   (GTK_CHECK_CAST ((obj), META_TYPE_AREA, MetaArea))
 
30
#define META_AREA_CLASS(klass)           (GTK_CHECK_CLASS_CAST ((klass), META_TYPE_AREA, MetaAreaClass))
 
31
#define META_IS_AREA(obj)                (GTK_CHECK_TYPE ((obj), META_TYPE_AREA))
 
32
#define META_IS_AREA_CLASS(klass)        (GTK_CHECK_CLASS_TYPE ((klass), META_TYPE_AREA))
 
33
#define META_AREA_GET_CLASS(obj)         (GTK_CHECK_GET_CLASS ((obj), META_TYPE_AREA, MetaAreaClass))
 
34
 
 
35
typedef struct _MetaArea        MetaArea;
 
36
typedef struct _MetaAreaClass   MetaAreaClass;
 
37
 
 
38
 
 
39
typedef void (* MetaAreaSizeFunc)   (MetaArea *area,
 
40
                                     int      *width,
 
41
                                     int      *height,
 
42
                                     void     *user_data);
 
43
 
 
44
typedef void (* MetaAreaExposeFunc) (MetaArea       *area,
 
45
                                     GdkEventExpose *event,
 
46
                                     int             x_offset,
 
47
                                     int             y_offset,
 
48
                                     void           *user_data);
 
49
 
 
50
struct _MetaArea
 
51
{
 
52
  GtkMisc misc;
 
53
 
 
54
  MetaAreaSizeFunc size_func;
 
55
  MetaAreaExposeFunc expose_func;
 
56
  void *user_data;
 
57
  GDestroyNotify dnotify;
 
58
};
 
59
 
 
60
struct _MetaAreaClass
 
61
{
 
62
  GtkMiscClass parent_class;
 
63
};
 
64
 
 
65
 
 
66
GtkType    meta_area_get_type    (void) G_GNUC_CONST;
 
67
GtkWidget* meta_area_new         (void);
 
68
 
 
69
void meta_area_setup (MetaArea           *area,
 
70
                      MetaAreaSizeFunc    size_func,
 
71
                      MetaAreaExposeFunc  expose_func,
 
72
                      void               *user_data,
 
73
                      GDestroyNotify      dnotify);
 
74
 
 
75
 
 
76
#endif