wckbuttons-theme.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* $Id$
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation; either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License along
  14. * with this program; if not, write to the Free Software Foundation, Inc.,
  15. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  16. *
  17. * Copyright (C) 2013 Cedric Leporcq <cedl38@gmail.com>
  18. *
  19. * This stuff is mostly derived from xfwm4 sources (setting.c)
  20. *
  21. */
  22. #ifndef __WCKBUTTONS_THEME_H__
  23. #define __WCKBUTTONS_THEME_H__
  24. #include <gtk/gtk.h>
  25. #include "wckbuttons.h"
  26. /* default settings */
  27. #define DEFAULT_THEME "Windowck"
  28. G_BEGIN_DECLS
  29. typedef struct {
  30. gchar *option;
  31. GValue *value;
  32. GType type;
  33. gboolean required;
  34. } Settings;
  35. void init_theme (WBPlugin *wb);
  36. void load_theme (const gchar *theme, WBPlugin *wb);
  37. void replace_buttons (const gchar *button_layout, WBPlugin *wb);
  38. gchar *get_rc_button_layout (const gchar *theme);
  39. gchar *button_layout_filter (const gchar *button_layout, const gchar *default_layout);
  40. gchar *opposite_layout_filter (const gchar *string);
  41. G_END_DECLS
  42. #endif /* !__WCKBUTTONS_THEME_H__ */