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 General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* General Public License for more details.
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
22
#ifndef GSD_MEDIA_KEYS_WINDOW_H
23
#define GSD_MEDIA_KEYS_WINDOW_H
25
#include <glib-object.h>
30
#define GSD_TYPE_MEDIA_KEYS_WINDOW (gsd_media_keys_window_get_type ())
31
#define GSD_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindow))
32
#define GSD_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindowClass))
33
#define GSD_IS_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW))
34
#define GSD_IS_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW))
36
typedef struct GsdMediaKeysWindow GsdMediaKeysWindow;
37
typedef struct GsdMediaKeysWindowClass GsdMediaKeysWindowClass;
38
typedef struct GsdMediaKeysWindowPrivate GsdMediaKeysWindowPrivate;
40
struct GsdMediaKeysWindow {
43
GsdMediaKeysWindowPrivate *priv;
46
struct GsdMediaKeysWindowClass {
47
GtkWindowClass parent_class;
51
GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME,
52
GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM
53
} GsdMediaKeysWindowAction;
55
GType gsd_media_keys_window_get_type (void);
57
GtkWidget * gsd_media_keys_window_new (void);
58
void gsd_media_keys_window_set_action (GsdMediaKeysWindow *window,
59
GsdMediaKeysWindowAction action);
60
void gsd_media_keys_window_set_action_custom (GsdMediaKeysWindow *window,
61
const char *icon_name,
63
void gsd_media_keys_window_set_volume_muted (GsdMediaKeysWindow *window,
65
void gsd_media_keys_window_set_volume_level (GsdMediaKeysWindow *window,
67
gboolean gsd_media_keys_window_is_valid (GsdMediaKeysWindow *window);