/* XMMS - Cross-platform multimedia player * Copyright (C) 1998-2001 Peter Alm, Mikael Alm, Olle Hallnas, * Thomas Nilsson and 4Front Technologies * Copyright (C) 1999-2991 Haavard Kvaalen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef UTIL_H #define UTIL_H gchar *find_file_recursively(const char *dirname, const char *file); void del_directory(const char *dirname); GdkImage *create_dblsize_image(GdkImage * img); char *read_ini_string(const char *filename, const char *section, const char *key); char *read_ini_string_no_comment(const char *filename, const char *section, const char *key); GArray *read_ini_array(const gchar * filename, const gchar * section, const gchar * key); GArray *string_to_garray(const gchar * str); void glist_movedown(GList * list); void glist_moveup(GList * list); void util_item_factory_popup(GtkItemFactory * ifactory, guint x, guint y, guint mouse_button, guint32 time); void util_item_factory_popup_with_data(GtkItemFactory * ifactory, gpointer data, GtkDestroyNotify destroy, guint x, guint y, guint mouse_button, guint32 time); GtkWidget *util_create_add_url_window(gchar *caption, GtkSignalFunc ok_func, GtkSignalFunc enqueue_func); GtkWidget *util_create_filebrowser(gboolean clear_pl_on_ok); gboolean util_filebrowser_is_dir(GtkFileSelection * filesel); GdkFont *util_font_load(gchar *name); void util_set_cursor(GtkWidget *window); void util_dump_menu_rc(void); void util_read_menu_rc(void); #if ENABLE_NLS gchar* util_menu_translate(const gchar *path, gpointer func_data); #else # define util_menu_translate NULL #endif #endif