X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/13affe66e42887bf256d91a719d8e25f51600136..ffc4dbaf1ee655263fd979d6c554ead000bef8e1:/disobedience/disobedience.h diff --git a/disobedience/disobedience.h b/disobedience/disobedience.h index 293a773..8190565 100644 --- a/disobedience/disobedience.h +++ b/disobedience/disobedience.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2006, 2007 Richard Kettlewell + * Copyright (C) 2006-2008 Richard Kettlewell * * 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 @@ -86,8 +86,10 @@ struct callbackdata { struct tabtype { int (*properties_sensitive)(GtkWidget *tab); int (*selectall_sensitive)(GtkWidget *tab); + int (*selectnone_sensitive)(GtkWidget *tab); void (*properties_activate)(GtkWidget *tab); void (*selectall_activate)(GtkWidget *tab); + void (*selectnone_activate)(GtkWidget *tab); }; /** @brief Button definitions */ @@ -133,7 +135,7 @@ void properties(int ntracks, const char **tracks); void properties_reset(void); -GtkWidget *scroll_widget(GtkWidget *child, const char *name); +GtkWidget *scroll_widget(GtkWidget *child); /* Wrap a widget up for scrolling */ GdkPixbuf *find_image(const char *name); @@ -157,6 +159,9 @@ GtkWidget *iconbutton(const char *path, const char *tip); GtkWidget *create_buttons(const struct button *buttons, size_t nbuttons); +GtkWidget *create_buttons_box(const struct button *buttons, + size_t nbuttons, + GtkWidget *box); void register_monitor(monitor_callback *callback, void *u, @@ -194,6 +199,8 @@ void volume_update(void); void control_monitor(void *u); +extern int suppress_actions; + /* Queue/Recent/Added */ GtkWidget *queue_widget(void); @@ -209,7 +216,8 @@ void added_update(void); * changed */ void queue_select_all(struct queuelike *ql); -/* Select all on some queue */ +void queue_select_none(struct queuelike *ql); +/* Select all/none on some queue */ void queue_properties(struct queuelike *ql); /* Pop up properties of selected items in some queue */ @@ -235,6 +243,12 @@ void choose_update(void); void login_box(void); +GtkWidget *login_window; + +/* User management */ + +void manage_users(void); + /* Help */ void popup_help(void); @@ -245,6 +259,25 @@ int rtp_running(void); void start_rtp(void); void stop_rtp(void); +/* Settings */ + +void init_styles(void); +extern GtkStyle *layout_style; +extern GtkStyle *title_style; +extern GtkStyle *even_style; +extern GtkStyle *odd_style; +extern GtkStyle *active_style; +extern GtkStyle *tool_style; +extern GtkStyle *search_style; +extern GtkStyle *drag_style; + +extern const char *browser; + +void save_settings(void); +void load_settings(void); +void set_tool_colors(GtkWidget *w); +void popup_settings(void); + /* Widget leakage debugging rubbish ---------------------------------------- */ #if MDEBUG