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

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

#include "audio.h"
#include "hotkeys.h"
Include dependency graph for ui-prefs-dialog.h:

Go to the source code of this file.

Typedefs

typedef struct prefs_dialog PrefsDialog
 
typedef void(* PrefsDialogResponseCallback) (PrefsDialog *dialog, gint response_id)
 

Functions

PrefsDialogprefs_dialog_create (GtkWindow *parent, Audio *audio, Hotkeys *hotkeys, PrefsDialogResponseCallback cb)
 
void prefs_dialog_destroy (PrefsDialog *dialog)
 
void prefs_dialog_present (PrefsDialog *dialog)
 
void prefs_dialog_populate (PrefsDialog *dialog)
 
void prefs_dialog_retrieve (PrefsDialog *dialog)
 

Detailed Description

Header for ui-prefs-dialog.c.

Header for ui-prefs-dialog.c.

Definition in file ui-prefs-dialog.h.

Typedef Documentation

◆ PrefsDialog

typedef struct prefs_dialog PrefsDialog

Definition at line 23 of file ui-prefs-dialog.h.

◆ PrefsDialogResponseCallback

typedef void(* PrefsDialogResponseCallback) (PrefsDialog *dialog, gint response_id)

Definition at line 24 of file ui-prefs-dialog.h.

Function Documentation

◆ prefs_dialog_create()

PrefsDialog* prefs_dialog_create ( GtkWindow *  parent,
Audio audio,
Hotkeys hotkeys,
PrefsDialogResponseCallback  cb 
)

Creates the preferences dialog.

Parameters
parenta GtkWindow to be used as the parent.
audiopointer to this audio subsystem.
hotkeyspointer to this hotkey subsystem.
cbuser callback to handle responses from the dialog
Returns
the newly created PrefsDialog instance.

Definition at line 840 of file ui-prefs-dialog.c.

◆ prefs_dialog_destroy()

void prefs_dialog_destroy ( PrefsDialog dialog)

Destroys the preferences dialog, freeing any resources.

Parameters
dialoga PrefsDialog instance.

Definition at line 814 of file ui-prefs-dialog.c.

◆ prefs_dialog_populate()

void prefs_dialog_populate ( PrefsDialog dialog)

Set the preferences dialog values according to current preferences.

Parameters
dialogstruct holding the GtkWidgets of the preferences dialog.

Definition at line 617 of file ui-prefs-dialog.c.

◆ prefs_dialog_present()

void prefs_dialog_present ( PrefsDialog dialog)

Presents the preferences dialog.

Parameters
dialoga PrefsDialog instance.

Definition at line 800 of file ui-prefs-dialog.c.

◆ prefs_dialog_retrieve()

void prefs_dialog_retrieve ( PrefsDialog dialog)

Retrieve the preferences dialog values and assign then to preferences.

Parameters
dialogstruct holding the GtkWidgets of the preferences dialog.

Definition at line 456 of file ui-prefs-dialog.c.