musicus mpd client 0.1d
|
00001 00008 /********************************************************************** 00009 * Copyright 2006 - 2008 by Simon Gerber <simugerber@student.ethz.ch> 00010 * 00011 * This file is part of Musicus. 00012 * Musicus is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation, either version 3 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * Musicus is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with Musicus. If not, see <http://www.gnu.org/licenses/>. 00024 **********************************************************************/ 00025 00026 #ifndef __SUPPORT_H 00027 #define __SUPPORT_H 00028 00033 00034 #ifdef APPLET 00035 #include "definitions_applet.h" 00036 #else 00037 #include "definitions_gtk.h" 00038 #endif 00039 00040 #include "playlist.h" 00041 00047 GtkTreeStore *pl_create_tree_store(MpdPlContainer *plc); 00048 00053 GtkTreeStore *pl_empty_tree_store(void); 00054 00055 00060 GtkListStore *pl_empty_list_store(void); 00061 00067 GtkListStore *pl_create_list_store(MpdPlContainer *list); 00068 00074 GtkWidget *pl_create_tree_view(GtkTreeModel *model); 00075 00081 void pl_win_quit(GtkWidget *widget, gpointer data); 00082 00089 void delete_widget(GtkWidget *widget, gpointer data); 00090 00094 void dummy(); 00095 00101 void quit_procedure(GtkWidget *widget, gpointer data); 00102 00108 gboolean update_info(gpointer data); 00109 00116 gboolean check_update_interval(gpointer data); 00117 00129 void debug_fprintf(FILE *out, char *format, ...); 00130 00140 gboolean get_data_dir(gchar *dir,int len,gboolean is_applet); 00141 00149 void menu_add_entry(GtkContainer *menu, gchar *label, GCallback callback, gpointer data); 00150 00159 GtkWidget *menu_add_entry_stock_icon(GtkContainer *menu, gchar *label, const gchar *stock_id, GCallback callback, gpointer data); 00160 00165 void menu_add_separator(GtkContainer *menu); 00166 00174 void menu_shell_add_entry(GtkMenuShell *menu, gchar *label, GCallback callback, gpointer data); 00175 00184 GtkWidget *menu_shell_add_entry_stock_icon(GtkMenuShell *menu, gchar *label, const gchar *stock_id, GCallback callback, gpointer data); 00185 00190 void menu_shell_add_separator(GtkMenuShell *menu); 00191 00203 void print_size(GtkWidget *widget, GtkAllocation *allocation, gpointer data); 00204 00207 #endif 00208 00209 /* vim:sts=4:shiftwidth=4 00210 */