~noskcaj/ubuntu/trusty/xfce4-power-manager/systemd

« back to all changes in this revision

Viewing changes to src/gsd-media-keys-window.h

  • Committer: Jackson Doak
  • Date: 2014-01-19 20:07:41 UTC
  • Revision ID: noskcaj@ubuntu.com-20140119200741-1wja2aktv5zyz8d2
Add patches from debian svn branch to fix systemd. LP: 1222021

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
 * Copyright (C) 2006 William Jon McCann <mccann@jhu.edu>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef GSD_MEDIA_KEYS_WINDOW_H
 
23
#define GSD_MEDIA_KEYS_WINDOW_H
 
24
 
 
25
#include <glib-object.h>
 
26
#include <gtk/gtk.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
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))
 
35
 
 
36
typedef struct GsdMediaKeysWindow                   GsdMediaKeysWindow;
 
37
typedef struct GsdMediaKeysWindowClass              GsdMediaKeysWindowClass;
 
38
typedef struct GsdMediaKeysWindowPrivate            GsdMediaKeysWindowPrivate;
 
39
 
 
40
struct GsdMediaKeysWindow {
 
41
        GtkWindow                   parent;
 
42
 
 
43
        GsdMediaKeysWindowPrivate  *priv;
 
44
};
 
45
 
 
46
struct GsdMediaKeysWindowClass {
 
47
        GtkWindowClass parent_class;
 
48
};
 
49
 
 
50
typedef enum {
 
51
        GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME,
 
52
        GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM
 
53
} GsdMediaKeysWindowAction;
 
54
 
 
55
GType                 gsd_media_keys_window_get_type          (void);
 
56
 
 
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,
 
62
                                                               gboolean                 show_level);
 
63
void                  gsd_media_keys_window_set_volume_muted  (GsdMediaKeysWindow      *window,
 
64
                                                               gboolean                 muted);
 
65
void                  gsd_media_keys_window_set_volume_level  (GsdMediaKeysWindow      *window,
 
66
                                                               int                      level);
 
67
gboolean              gsd_media_keys_window_is_valid          (GsdMediaKeysWindow      *window);
 
68
 
 
69
G_END_DECLS
 
70
 
 
71
#endif