You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
1.6 KiB

  1. /*
  2. * Copyright (C) 2008-2010 Nick Schermer <nick@xfce.org>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef __PANEL_DBUS_H__
  19. #define __PANEL_DBUS_H__
  20. /* panel dbus names */
  21. #define PANEL_DBUS_NAME "org.xfce.Panel"
  22. #define PANEL_DBUS_PATH "/org/xfce/Panel"
  23. #define PANEL_DBUS_INTERFACE PANEL_DBUS_NAME
  24. #define PANEL_DBUS_WRAPPER_PATH PANEL_DBUS_PATH "/Wrapper/%d"
  25. #define PANEL_DBUS_WRAPPER_INTERFACE PANEL_DBUS_INTERFACE ".Wrapper"
  26. /* special types for dbus communication */
  27. #define PANEL_TYPE_DBUS_SET_PROPERTY \
  28. dbus_g_type_get_struct ("GValueArray", \
  29. G_TYPE_UINT, \
  30. G_TYPE_VALUE, \
  31. G_TYPE_INVALID)
  32. #define PANEL_TYPE_DBUS_SET_SIGNAL \
  33. dbus_g_type_get_collection ("GPtrArray", \
  34. PANEL_TYPE_DBUS_SET_PROPERTY)
  35. enum
  36. {
  37. DBUS_SET_TYPE,
  38. DBUS_SET_VALUE
  39. };
  40. #endif /* !__PANEL_DBUS_H__ */