musicus mpd client 0.1d
Functions | Variables
GUI

Functions

GtkWidget * mpd_win_new (int updater, int applet)
void mpd_gui_show_mpd_elements (void)
void mpd_gui_hide_mpd_elements (void)
void gui_mpd_status_changed_cb (MpdObj *obj, ChangedStatusType what, gpointer data)

Variables

WinInfo MpdWin

Detailed Description

main GUI elements


Function Documentation

void gui_mpd_status_changed_cb ( MpdObj *  obj,
ChangedStatusType  what,
gpointer  data 
)

This function is used to get callbacks from mpd when something happens, this is _much_ better than periodic polling!

Parameters:
objThe MpdObj from which the call originated
whatWhat has changed?
datauser data
void mpd_gui_hide_mpd_elements ( void  )

This function hides the mpd control elements and displays a not-connected message

void mpd_gui_show_mpd_elements ( void  )

This function hides the not-connected message and shows the mpd control elements

GtkWidget* mpd_win_new ( int  updater,
int  applet 
)

This is the procedure which builds the main user interface for the GTK+ client

Parameters:
updaterset this to 1, if you want to have periodically updating functions enabled
appletset this to 1, if you're building the main window from the context of a GNOME applet
Returns:
the newly created GUI window

Variable Documentation

Struct to hold window information

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines