1
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8; tab-width: 8 -*-
3
* Copyright (C) 2006 William Jon McCann <mccann@jhu.edu>
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2, or (at your option) any later version.
10
* This program is distributed in the hope that it will be
11
* useful, but WITHOUT ANY WARRANTY; without even the implied
12
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
* PURPOSE. See the GNU Lesser General Public License for more
16
* You should have received a copy of the GNU Lesser General
17
* Public License along with this program; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
23
#ifndef GSD_MEDIA_KEYS_WINDOW_H
24
#define GSD_MEDIA_KEYS_WINDOW_H
26
#include <glib-object.h>
29
#include "gsd-osd-window.h"
33
#define GSD_TYPE_MEDIA_KEYS_WINDOW (gsd_media_keys_window_get_type ())
34
#define GSD_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindow))
35
#define GSD_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindowClass))
36
#define GSD_IS_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW))
37
#define GSD_IS_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW))
39
typedef struct GsdMediaKeysWindow GsdMediaKeysWindow;
40
typedef struct GsdMediaKeysWindowClass GsdMediaKeysWindowClass;
41
typedef struct GsdMediaKeysWindowPrivate GsdMediaKeysWindowPrivate;
43
struct GsdMediaKeysWindow {
46
GsdMediaKeysWindowPrivate *priv;
49
struct GsdMediaKeysWindowClass {
50
GsdOsdWindowClass parent_class;
54
GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME,
55
GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM
56
} GsdMediaKeysWindowAction;
58
GType gsd_media_keys_window_get_type (void);
60
GtkWidget * gsd_media_keys_window_new (void);
61
void gsd_media_keys_window_set_action (GsdMediaKeysWindow *window,
62
GsdMediaKeysWindowAction action);
63
void gsd_media_keys_window_set_action_custom (GsdMediaKeysWindow *window,
64
const char *icon_name,
66
void gsd_media_keys_window_set_volume_muted (GsdMediaKeysWindow *window,
68
void gsd_media_keys_window_set_volume_level (GsdMediaKeysWindow *window,
70
gboolean gsd_media_keys_window_is_valid (GsdMediaKeysWindow *window);