pnmixer
Volume mixer for the system tray
Typedefs | Functions
ui-hotkey-dialog.h File Reference

Header for ui-hotkey-dialog.c. More...

#include <gtk/gtk.h>
Include dependency graph for ui-hotkey-dialog.h:

Go to the source code of this file.

Typedefs

typedef struct hotkey_dialog HotkeyDialog
 

Functions

HotkeyDialoghotkey_dialog_create (GtkWindow *parent, const gchar *hotkey)
 
void hotkey_dialog_destroy (HotkeyDialog *dialog)
 
gchar * hotkey_dialog_run (HotkeyDialog *dialog)
 

Detailed Description

Header for ui-hotkey-dialog.c.

Header for ui-hotkey-dialog.c.

Definition in file ui-hotkey-dialog.h.

Typedef Documentation

◆ HotkeyDialog

typedef struct hotkey_dialog HotkeyDialog

Definition at line 22 of file ui-hotkey-dialog.h.

Function Documentation

◆ hotkey_dialog_create()

HotkeyDialog* hotkey_dialog_create ( GtkWindow *  parent,
const gchar *  hotkey 
)

Creates a new hotkey dialog.

Parameters
parenta GtkWindow to be used as the parent.
hotkeythe hotkey concerned.
Returns
the newly created HotkeyDialog instance.

Definition at line 222 of file ui-hotkey-dialog.c.

◆ hotkey_dialog_destroy()

void hotkey_dialog_destroy ( HotkeyDialog dialog)

Destroys a hotkey dialog, freeing any resources.

Parameters
dialoga HotkeyDialog instance.

Definition at line 206 of file ui-hotkey-dialog.c.

◆ hotkey_dialog_run()

gchar* hotkey_dialog_run ( HotkeyDialog dialog)

Runs the hotkey dialog, and returns a string representing the hotkey that has been pressed. String must be freed.

Parameters
dialoga HotkeyDialog instance.
Returns
the hotkey pressed, must be freed.

Definition at line 130 of file ui-hotkey-dialog.c.