2006-12-07 William Jon McCann <mccann@jhu.edu> * gnome-settings-daemon/Makefile.am: * gnome-settings-daemon/actions/Makefile.am: * gnome-settings-daemon/actions/acme.glade: * gnome-settings-daemon/actions/gnome-speakernotes-muted.png: * gnome-settings-daemon/actions/gnome-speakernotes.png: * gnome-settings-daemon/gnome-settings-multimedia-keys.c: (execute), (dialog_init), (unhookup_keysym), (update_kbd_cb), (init_kbd), (dialog_show), (do_eject_action), (do_sound_action), (gnome_settings_multimedia_keys_load): * gnome-settings-daemon/gsd-media-keys-window.c: (hide_timeout), (remove_hide_timeout), (add_hide_timeout), (update_window), (volume_controls_set_visible), (window_set_icon_name), (window_set_icon_file), (action_changed), (volume_level_changed), (volume_muted_changed), (gsd_media_keys_window_set_action), (gsd_media_keys_window_set_volume_muted), (gsd_media_keys_window_set_volume_level), (curved_rectangle), (draw_action_eject), (draw_waves), (draw_speaker), (draw_volume_boxes), (draw_action_volume), (draw_action), (on_expose_event), (gsd_media_keys_window_real_show), (gsd_media_keys_window_real_hide), (gsd_media_keys_window_class_init), (initialize_alpha_mode), (gsd_media_keys_window_init), (gsd_media_keys_window_finalize), (gsd_media_keys_window_new): * gnome-settings-daemon/gsd-media-keys-window.h: Add a new media keys window that takes advantage of compositing when available. Fixes #383066
67 lines
2.6 KiB
C
67 lines
2.6 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
|
|
*
|
|
* Copyright (C) 2006 William Jon McCann <mccann@jhu.edu>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public
|
|
* License along with this program; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef GSD_MEDIA_KEYS_WINDOW_H
|
|
#define GSD_MEDIA_KEYS_WINDOW_H
|
|
|
|
#include <glib-object.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSD_TYPE_MEDIA_KEYS_WINDOW (gsd_media_keys_window_get_type ())
|
|
#define GSD_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindow))
|
|
#define GSD_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW, GsdMediaKeysWindowClass))
|
|
#define GSD_IS_MEDIA_KEYS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_TYPE_MEDIA_KEYS_WINDOW))
|
|
#define GSD_IS_MEDIA_KEYS_WINDOW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS ((klass), GSD_TYPE_MEDIA_KEYS_WINDOW))
|
|
|
|
typedef struct GsdMediaKeysWindow GsdMediaKeysWindow;
|
|
typedef struct GsdMediaKeysWindowClass GsdMediaKeysWindowClass;
|
|
typedef struct GsdMediaKeysWindowPrivate GsdMediaKeysWindowPrivate;
|
|
|
|
struct GsdMediaKeysWindow {
|
|
GtkWindow parent;
|
|
|
|
GsdMediaKeysWindowPrivate *priv;
|
|
};
|
|
|
|
struct GsdMediaKeysWindowClass {
|
|
GtkWindowClass parent_class;
|
|
};
|
|
|
|
typedef enum {
|
|
GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME,
|
|
GSD_MEDIA_KEYS_WINDOW_ACTION_EJECT
|
|
} GsdMediaKeysWindowAction;
|
|
|
|
GType gsd_media_keys_window_get_type (void);
|
|
|
|
GtkWidget * gsd_media_keys_window_new (void);
|
|
void gsd_media_keys_window_set_action (GsdMediaKeysWindow *window,
|
|
GsdMediaKeysWindowAction action);
|
|
void gsd_media_keys_window_set_volume_muted (GsdMediaKeysWindow *window,
|
|
gboolean muted);
|
|
void gsd_media_keys_window_set_volume_level (GsdMediaKeysWindow *window,
|
|
int level);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|