musicus mpd client 0.1d
Functions | Variables
support.c File Reference
#include <stdlib.h>
#include <stdarg.h>
#include <gtk/gtk.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <unistd.h>
#include <errno.h>
#include "definitions_gtk.h"
#include "mpd.h"
#include "support.h"
#include "playlist.h"

Functions

gboolean do_string (int fmt_num, char *state_string, int current_time, int song_time)
void parse_fmt_string (char *fmt, char *out, char *state, int hrs, int c_hrs, int c_min, int c_sec, int s_hrs, int s_min, int s_sec)
void append_tree_store_entry (GtkTreeStore *tree_store, GtkTreeIter *iter, mpd_Song *song, int current_song)
void append_list_store_entry (GtkListStore *list, GtkTreeIter *iter, mpd_Song *song, gboolean playing)
GtkTreeStore * pl_create_tree_store (MpdPlContainer *plc)
GtkTreeStore * pl_empty_tree_store (void)
GtkListStore * pl_empty_list_store (void)
GtkListStore * pl_create_list_store (MpdPlContainer *list)
void append_tree_store_entry (GtkTreeStore *tree_store, GtkTreeIter *iter, mpd_Song *song, gboolean playing)
GtkWidget * pl_create_tree_view (GtkTreeModel *model)
void delete_widget (GtkWidget *widget, gpointer data)
void pl_win_quit (GtkWidget *widget, gpointer data)
void dummy ()
void quit_procedure (GtkWidget *widget, gpointer data)
gboolean update_info (gpointer data)
gboolean check_update_interval (gpointer data)
void debug_fprintf (FILE *out, char *format,...)
gboolean get_data_dir (gchar *dir, int len, gboolean is_applet)
void menu_add_entry (GtkContainer *menu, gchar *label, GCallback callback, gpointer data)
GtkWidget * menu_add_entry_stock_icon (GtkContainer *menu, gchar *label, const gchar *stock_id, GCallback callback, gpointer data)
void menu_add_separator (GtkContainer *menu)
void menu_shell_add_entry (GtkMenuShell *menu, gchar *label, GCallback callback, gpointer data)
GtkWidget * menu_shell_add_entry_stock_icon (GtkMenuShell *menu, gchar *label, const gchar *stock_id, GCallback callback, gpointer data)
void menu_shell_add_separator (GtkMenuShell *menu)
void print_size (GtkWidget *widget, GtkAllocation *allocation, gpointer data)

Variables

gint old_interval = -1

Detailed Description

Author:
Simon Gerber
Date:
2007-12-09 This file implements the support routines

Function Documentation

void append_list_store_entry ( GtkListStore *  list,
GtkTreeIter *  iter,
mpd_Song *  song,
gboolean  playing 
)

append list store entry

Parameters:
listthe ListStore to append to
iterthe iter in the ListStore (for the position)
songthe song to place in the current position
playingTRUE if the song we want to append is currently playing, FALSE otherwise
void append_tree_store_entry ( GtkTreeStore *  tree_store,
GtkTreeIter *  iter,
mpd_Song *  song,
int  current_song 
)

append tree store entry

Parameters:
tree_storethe TreeStore to append to
iterthe iter in the TreeStore (for the position)
songthe song to place in the current position
current_song1 if the song we want to append is currently playing, 0 otherwise
void append_tree_store_entry ( GtkTreeStore *  tree_store,
GtkTreeIter *  iter,
mpd_Song *  song,
gboolean  playing 
)
gboolean do_string ( int  fmt_num,
char *  state_string,
int  current_time,
int  song_time 
)
void parse_fmt_string ( char *  fmt,
char *  out,
char *  state,
int  hrs,
int  c_hrs,
int  c_min,
int  c_sec,
int  s_hrs,
int  s_min,
int  s_sec 
)

Variable Documentation

gint old_interval = -1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines