pnmixer
Volume mixer for the system tray
|
Hotkeys subsystem. More...
#include <gdk/gdkx.h>
#include <X11/XKBlib.h>
#include "audio.h"
#include "prefs.h"
#include "support-intl.h"
#include "support-log.h"
#include "hotkey.h"
#include "hotkeys.h"
#include "main.h"
Go to the source code of this file.
Data Structures | |
struct | hotkeys |
Functions | |
static void | hotkeys_remove_filter (GdkFilterFunc filter, gpointer data) |
static void | hotkeys_add_filter (GdkFilterFunc filter, gpointer data) |
static GdkFilterReturn | key_filter (GdkXEvent *gdk_xevent, G_GNUC_UNUSED GdkEvent *event, gpointer data) |
void | hotkeys_reload (Hotkeys *hotkeys) |
void | hotkeys_unbind (Hotkeys *hotkeys) |
void | hotkeys_bind (Hotkeys *hotkeys) |
void | hotkeys_free (Hotkeys *hotkeys) |
Hotkeys * | hotkeys_new (Audio *audio) |
Hotkeys subsystem.
This file handles the hotkeys subsystem, including communication with Xlib and intercepting key presses before they can be interpreted by Gtk/Gdk.
Definition in file hotkeys.c.
|
static |
void hotkeys_bind | ( | Hotkeys * | hotkeys | ) |
Bind hotkeys manually. Should be paired with a hotkeys_unbind() call.
hotkeys | a Hotkeys instance. |
void hotkeys_free | ( | Hotkeys * | hotkeys | ) |
void hotkeys_reload | ( | Hotkeys * | hotkeys | ) |
|
static |
void hotkeys_unbind | ( | Hotkeys * | hotkeys | ) |
Unbind hotkeys manually. Should be paired with a hotkeys_bind() call.
hotkeys | a Hotkeys instance. |
|
static |
This function is called before Gtk/Gdk can respond to any(!) window event and handles pressed hotkeys.
gdk_xevent | the native event to filter |
event | the GDK event to which the X event will be translated |
data | user data set when the filter was installed |