~walkerlee/totem/pre-interview

« back to all changes in this revision

Viewing changes to src/gsd-osd-window.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-26 00:07:51 UTC
  • mfrom: (1.6.1) (24.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130526000751-kv8ap3x1di4qq8j2
Tags: 3.8.2-0ubuntu1
* Sync with Debian. Remaining changes: 
* debian/control.in:
  - Drop build-depends on libepc-ui-dev and libgrilo-0.2-dev (in universe)
  - Drop libxtst-dev build-depends so that the (redundant) fake key presses
    for inhibiting the screensaver are disabled (LP: #1007438)
  - Build-depend on libzeitgeist-dev
  - Suggest rather than recommend gstreamer components in universe
  - Add totem-plugins-extra
  - Add XB-Npp-Description and XB-Npp-Filename header to the 
    totem-mozilla package to improve ubufox/ubuntu plugin db integration 
  - Refer to Firefox in totem-mozilla description instead of Iceweasel
  - Don't have totem-mozilla recommend any particular browser
  - Drop obsolete python library dependencies since iplayer is no longer
    included
* debian/totem-common.install, debian/source_totem.py:
  - Install Ubuntu apport debugging hook
* debian/totem-plugins-extra.install:
  - Universe plugins split out of totem-plugins (currently only gromit)
* debian/totem-plugins.install:    
  - Skip the plugins split to -extra and add the zeitgeist plugin
* debian/rules:
  - Build with --fail-missing, to ensure we install everything. 
    + Ignore libtotem.{,l}a since we delibrately don't install these.
  - Re-enable hardening, make sure both PIE and BINDNOW are used
    by setting hardening=+all. (LP: #1039604)
* debian/patches/91_quicklist_entries.patch:
  - Add static quicklist
* debian/patches/92_gst-plugins-good.patch:
  - Build without unnecessary gstreamer1.0-bad dependency
* debian/patches/93_grilo_optional.patch:
  - Allow building without grilo while grilo MIR is still pending
* debian/patches/correct_desktop_mimetypes.patch:
  - Don't list the mimetypes after the unity lists
* debian/patches/revert_shell_menu.patch: 
  - revert the use of a shell menu until indicator-appmenu can handle
    the mixed shell/traditional menus itself
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8; tab-width: 8 -*-
2
 
 *
3
 
 * On-screen-display (OSD) window for gnome-settings-daemon's plugins
4
 
 *
5
 
 * Copyright (C) 2006 William Jon McCann <mccann@jhu.edu> 
6
 
 * Copyright (C) 2009 Novell, Inc
7
 
 *
8
 
 * Authors:
9
 
 *   William Jon McCann <mccann@jhu.edu>
10
 
 *   Federico Mena-Quintero <federico@novell.com>
11
 
 *
12
 
 * This program is free software; you can redistribute it and/or
13
 
 * modify it under the terms of the GNU Lesser General Public
14
 
 * License as published by the Free Software Foundation; either
15
 
 * version 2, or (at your option) any later version.
16
 
 *
17
 
 * This program is distributed in the hope that it will be
18
 
 * useful, but WITHOUT ANY WARRANTY; without even the implied
19
 
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20
 
 * PURPOSE.  See the GNU Lesser General Public License for more
21
 
 * details.
22
 
 *
23
 
 * You should have received a copy of the GNU Lesser General
24
 
 * Public License along with this program; if not, write to the
25
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26
 
 * Boston, MA 02111-1307, USA.
27
 
 *
28
 
 */
29
 
 
30
 
/* GsdOsdWindow is an "on-screen-display" window (OSD).  It is the cute,
31
 
 * semi-transparent, curved popup that appears when you press a hotkey global to
32
 
 * the desktop, such as to change the volume, switch your monitor's parameters,
33
 
 * etc.
34
 
 *
35
 
 * You can create a GsdOsdWindow and use it as a normal GtkWindow.  It will
36
 
 * automatically center itself, figure out if it needs to be composited, etc.
37
 
 * Just pack your widgets in it, sit back, and enjoy the ride.
38
 
 */
39
 
 
40
 
#ifndef GSD_OSD_WINDOW_H
41
 
#define GSD_OSD_WINDOW_H
42
 
 
43
 
#include <glib-object.h>
44
 
#include <gtk/gtk.h>
45
 
 
46
 
G_BEGIN_DECLS
47
 
 
48
 
/* Alpha value to be used for foreground objects drawn in an OSD window */
49
 
#define GSD_OSD_WINDOW_FG_ALPHA 1.0
50
 
 
51
 
#define GSD_TYPE_OSD_WINDOW            (gsd_osd_window_get_type ())
52
 
#define GSD_OSD_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj),  GSD_TYPE_OSD_WINDOW, GsdOsdWindow))
53
 
#define GSD_OSD_WINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),   GSD_TYPE_OSD_WINDOW, GsdOsdWindowClass))
54
 
#define GSD_IS_OSD_WINDOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj),  GSD_TYPE_OSD_WINDOW))
55
 
#define GSD_IS_OSD_WINDOW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS ((klass), GSD_TYPE_OSD_WINDOW))
56
 
#define GSD_OSD_WINDOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GSD_TYPE_OSD_WINDOW, GsdOsdWindowClass))
57
 
 
58
 
typedef struct GsdOsdWindow                   GsdOsdWindow;
59
 
typedef struct GsdOsdWindowClass              GsdOsdWindowClass;
60
 
typedef struct GsdOsdWindowPrivate            GsdOsdWindowPrivate;
61
 
 
62
 
struct GsdOsdWindow {
63
 
        GtkWindow                   parent;
64
 
 
65
 
        GsdOsdWindowPrivate  *priv;
66
 
};
67
 
 
68
 
struct GsdOsdWindowClass {
69
 
        GtkWindowClass parent_class;
70
 
 
71
 
        void (* draw_when_composited) (GsdOsdWindow *window, cairo_t *cr);
72
 
};
73
 
 
74
 
GType                 gsd_osd_window_get_type          (void);
75
 
 
76
 
GtkWidget *           gsd_osd_window_new               (void);
77
 
gboolean              gsd_osd_window_is_composited     (GsdOsdWindow      *window);
78
 
gboolean              gsd_osd_window_is_valid          (GsdOsdWindow      *window);
79
 
void                  gsd_osd_window_update_and_hide   (GsdOsdWindow      *window);
80
 
 
81
 
void                  gsd_osd_window_draw_rounded_rectangle (cairo_t *cr,
82
 
                                                             gdouble  aspect,
83
 
                                                             gdouble  x,
84
 
                                                             gdouble  y,
85
 
                                                             gdouble  corner_radius,
86
 
                                                             gdouble  width,
87
 
                                                             gdouble  height);
88
 
 
89
 
void                  gsd_osd_window_color_reverse          (GdkRGBA *a);
90
 
void                  gsd_osd_window_color_shade            (GdkRGBA *a,
91
 
                                                             gdouble  k);
92
 
 
93
 
G_END_DECLS
94
 
 
95
 
#endif