X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/ac6bf2bad50653d84388269a6629d121b8c37b8f..1bcd69c4cfd2f1080014b792a1dc15ed1883f1c5:/disobedience/disobedience.h?ds=sidebyside diff --git a/disobedience/disobedience.h b/disobedience/disobedience.h index 884ebfe..f01d7fc 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 @@ -75,6 +75,7 @@ struct callbackdata { struct choosenode *choosenode; /* gtkchoose.c got_files/got_dirs */ struct queuelike *ql; /* gtkqueue.c queuelike_completed */ struct prefdata *f; /* properties.c */ + const char *user; /* users.c */ } u; }; @@ -86,8 +87,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 +136,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 +160,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 +200,8 @@ void volume_update(void); void control_monitor(void *u); +extern int suppress_actions; + /* Queue/Recent/Added */ GtkWidget *queue_widget(void); @@ -209,7 +217,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,12 +244,41 @@ void choose_update(void); void login_box(void); +GtkWidget *login_window; + +/* User management */ + +void manage_users(void); + +/* Help */ + +void popup_help(void); + /* RTP */ 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