Advertisement
Guest User

Untitled

a guest
Jul 29th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 154.07 KB | None | 0 0
  1. diff --git a/Makefile.am b/Makefile.am
  2. index 29d7729..fcbdc98 100644
  3. --- a/Makefile.am
  4. +++ b/Makefile.am
  5. @@ -13,8 +13,8 @@ if HAVE_MIGHTY_MOUSE
  6. SUBDIR_MIGHTY_MOUSE = panel
  7. endif
  8.  
  9. -SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) menu
  10. -DIST_SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) menu
  11. +SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) garcon
  12. +DIST_SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) garcon
  13.  
  14. PLATFORM_VERSION = 4.2
  15. PLATFORM_WIN32 =
  16. diff --git a/configure.ac b/configure.ac
  17. index 0044183..1156b98 100644
  18. --- a/configure.ac
  19. +++ b/configure.ac
  20. @@ -46,7 +46,7 @@ export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec)
  21. BM_DEPEND([XFCE4_UTIL], [libxfce4util-1.0], [4.1.0])
  22. BM_DEPEND([XFCE4_XFCONF], [libxfconf-0], [4.6.2])
  23. BM_DEPEND([XFCE4_UI], [libxfce4ui-1], [4.7.5])
  24. -BM_DEPEND([XFCE4_MENU], [libxfce4menu-0.1], [4.6.1])
  25. +BM_DEPEND([GARCON], [garcon-1], [0.1.8])
  26.  
  27. dnl new panel
  28.  
  29. @@ -90,6 +90,6 @@ AC_CONFIG_FILES(
  30. panel/Makefile
  31. util/Makefile
  32. xfconf/Makefile
  33. - menu/Makefile
  34. + garcon/Makefile
  35. )
  36. AC_OUTPUT
  37. diff --git a/garcon/Makefile.am b/garcon/Makefile.am
  38. new file mode 100644
  39. index 0000000..b139962
  40. --- /dev/null
  41. +++ b/garcon/Makefile.am
  42. @@ -0,0 +1,88 @@
  43. +@SET_MAKE@
  44. +
  45. +PLATFORM_VERSION = 4.2
  46. +
  47. +CODEGEN_PATH = @CODEGEN_PATH@
  48. +
  49. +common_ldflags = -module -avoid-version -export-symbols-regex init_garcon
  50. +if PLATFORM_WIN32
  51. +common_ldflags += -no-undefined
  52. +endif
  53. +
  54. +INCLUDES = $(PYTHON_INCLUDES)
  55. +
  56. +pyxfceexecdir = $(pyexecdir)/garcon
  57. +pyxfceexec_LTLIBRARIES = _garcon.la
  58. +pyxfceexec_PYTHON = garcon.py
  59. +
  60. +_garcon_la_CFLAGS = $(GARCON_CFLAGS) $(PYTHON_CFLAGS) $(PYGTK_CFLAGS)
  61. +_garcon_la_LDFLAGS = $(common_ldflags)
  62. +_garcon_la_LIBADD = $(GARCON_LIBS)
  63. +#-export-symbols-regex
  64. +_garcon_la_SOURCES = \
  65. + config.c \
  66. + environment.c \
  67. + garcon.c \
  68. + marshal.c \
  69. + menu_directory.c \
  70. + menu_element.c \
  71. + menu.c \
  72. + menu_item_cache.c \
  73. + menu_item.c \
  74. + menu_item_pool.c \
  75. + menu_merger.c \
  76. + menu_parser.c \
  77. + menu_separator.c \
  78. + menu_tree_provider.c \
  79. + garconmodule.c
  80. +
  81. +defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs
  82. +defs_DATA = \
  83. + config.defs \
  84. + environment.defs \
  85. + garcon.defs \
  86. + marshal.defs \
  87. + menu_directory.defs \
  88. + menu_element.defs \
  89. + menu.defs \
  90. + menu_item_cache.defs \
  91. + menu_item.defs \
  92. + menu_item_pool.defs \
  93. + menu_merger.defs \
  94. + menu_parser.defs \
  95. + menu_separator.defs \
  96. + menu_tree_provider.defs
  97. +
  98. +garcon_overrides = \
  99. + config.override \
  100. + environment.override \
  101. + garcon.override \
  102. + marshal.override \
  103. + menu_directory.override \
  104. + menu_element.override \
  105. + menu.override \
  106. + menu_item_cache.override \
  107. + menu_item.override \
  108. + menu_item_pool.override \
  109. + menu_merger.override \
  110. + menu_parser.override \
  111. + menu_separator.override
  112. +
  113. +EXTRA_DIST = $(defs_DATA) $(garcon_overrides) gen
  114. +
  115. +nodist__garcon_la_SOURCES =
  116. +
  117. +PYGTK_DEFS="`pkg-config --variable=defsdir pygtk-2.0`"
  118. +
  119. +.defs.c:
  120. + (cd $(srcdir) \
  121. + && $(PYTHON) $(CODEGEN_PATH)/codegen.py \
  122. + $(PYGTK_CODEGEN_DEFINES) \
  123. + --override $*.override \
  124. + --register $(PYGTK_DEFS)/gtk-types.defs \
  125. + --register $(PYGTK_DEFS)/gdk-types.defs \
  126. + --register ../util/desktopentry.defs \
  127. + --prefix py$* $*.defs) > gen-$*.c \
  128. + && cp gen-$*.c $*.c \
  129. + && rm -f gen-$*.c
  130. +
  131. diff --git a/garcon/Makefile.in b/garcon/Makefile.in
  132. new file mode 100644
  133. index 0000000..17df9df
  134. --- /dev/null
  135. +++ b/garcon/Makefile.in
  136. @@ -0,0 +1,827 @@
  137. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  138. +# @configure_input@
  139. +
  140. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  141. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  142. +# Inc.
  143. +# This Makefile.in is free software; the Free Software Foundation
  144. +# gives unlimited permission to copy and/or distribute it,
  145. +# with or without modifications, as long as this notice is preserved.
  146. +
  147. +# This program is distributed in the hope that it will be useful,
  148. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  149. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  150. +# PARTICULAR PURPOSE.
  151. +
  152. +@SET_MAKE@
  153. +
  154. +
  155. +VPATH = @srcdir@
  156. +pkgdatadir = $(datadir)/@PACKAGE@
  157. +pkgincludedir = $(includedir)/@PACKAGE@
  158. +pkglibdir = $(libdir)/@PACKAGE@
  159. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  160. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  161. +install_sh_DATA = $(install_sh) -c -m 644
  162. +install_sh_PROGRAM = $(install_sh) -c
  163. +install_sh_SCRIPT = $(install_sh) -c
  164. +INSTALL_HEADER = $(INSTALL_DATA)
  165. +transform = $(program_transform_name)
  166. +NORMAL_INSTALL = :
  167. +PRE_INSTALL = :
  168. +POST_INSTALL = :
  169. +NORMAL_UNINSTALL = :
  170. +PRE_UNINSTALL = :
  171. +POST_UNINSTALL = :
  172. +build_triplet = @build@
  173. +host_triplet = @host@
  174. +@PLATFORM_WIN32_TRUE@am__append_1 = -no-undefined
  175. +subdir = garcon
  176. +DIST_COMMON = $(pyxfceexec_PYTHON) $(srcdir)/Makefile.am \
  177. + $(srcdir)/Makefile.in
  178. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  179. +am__aclocal_m4_deps = $(top_srcdir)/m4/debug.m4 \
  180. + $(top_srcdir)/m4/depends.m4 $(top_srcdir)/m4/jhflags.m4 \
  181. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  182. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  183. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/python.m4 \
  184. + $(top_srcdir)/configure.ac
  185. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  186. + $(ACLOCAL_M4)
  187. +mkinstalldirs = $(install_sh) -d
  188. +CONFIG_CLEAN_FILES =
  189. +CONFIG_CLEAN_VPATH_FILES =
  190. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  191. +am__vpath_adj = case $$p in \
  192. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  193. + *) f=$$p;; \
  194. + esac;
  195. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  196. +am__install_max = 40
  197. +am__nobase_strip_setup = \
  198. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  199. +am__nobase_strip = \
  200. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  201. +am__nobase_list = $(am__nobase_strip_setup); \
  202. + for p in $$list; do echo "$$p $$p"; done | \
  203. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  204. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  205. + if (++n[$$2] == $(am__install_max)) \
  206. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  207. + END { for (dir in files) print dir, files[dir] }'
  208. +am__base_list = \
  209. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  210. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  211. +am__installdirs = "$(DESTDIR)$(pyxfceexecdir)" \
  212. + "$(DESTDIR)$(pyxfceexecdir)" "$(DESTDIR)$(defsdir)"
  213. +LTLIBRARIES = $(pyxfceexec_LTLIBRARIES)
  214. +am__DEPENDENCIES_1 =
  215. +_garcon_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
  216. +am__garcon_la_OBJECTS = _garcon_la-config.lo _garcon_la-environment.lo \
  217. + _garcon_la-garcon.lo _garcon_la-marshal.lo \
  218. + _garcon_la-menu_directory.lo _garcon_la-menu_element.lo \
  219. + _garcon_la-menu.lo _garcon_la-menu_item_cache.lo \
  220. + _garcon_la-menu_item.lo _garcon_la-menu_item_pool.lo \
  221. + _garcon_la-menu_merger.lo _garcon_la-menu_parser.lo \
  222. + _garcon_la-menu_separator.lo _garcon_la-menu_tree_provider.lo \
  223. + _garcon_la-garconmodule.lo
  224. +nodist__garcon_la_OBJECTS =
  225. +_garcon_la_OBJECTS = $(am__garcon_la_OBJECTS) \
  226. + $(nodist__garcon_la_OBJECTS)
  227. +_garcon_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  228. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(_garcon_la_CFLAGS) \
  229. + $(CFLAGS) $(_garcon_la_LDFLAGS) $(LDFLAGS) -o $@
  230. +DEFAULT_INCLUDES = -I.@am__isrc@
  231. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  232. +am__depfiles_maybe = depfiles
  233. +am__mv = mv -f
  234. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  235. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  236. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  237. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  238. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  239. +CCLD = $(CC)
  240. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  241. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  242. + $(LDFLAGS) -o $@
  243. +SOURCES = $(_garcon_la_SOURCES) $(nodist__garcon_la_SOURCES)
  244. +DIST_SOURCES = $(_garcon_la_SOURCES)
  245. +py_compile = $(top_srcdir)/py-compile
  246. +DATA = $(defs_DATA)
  247. +ETAGS = etags
  248. +CTAGS = ctags
  249. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  250. +ACLOCAL = @ACLOCAL@
  251. +AMTAR = @AMTAR@
  252. +AR = @AR@
  253. +AUTOCONF = @AUTOCONF@
  254. +AUTOHEADER = @AUTOHEADER@
  255. +AUTOMAKE = @AUTOMAKE@
  256. +AWK = @AWK@
  257. +CC = @CC@
  258. +CCDEPMODE = @CCDEPMODE@
  259. +CFLAGS = @CFLAGS@
  260. +CODEGEN_PATH = @CODEGEN_PATH@
  261. +CPP = @CPP@
  262. +CPPFLAGS = @CPPFLAGS@
  263. +CYGPATH_W = @CYGPATH_W@
  264. +DEFS = @DEFS@
  265. +DEPDIR = @DEPDIR@
  266. +DLLTOOL = @DLLTOOL@
  267. +DSYMUTIL = @DSYMUTIL@
  268. +DUMPBIN = @DUMPBIN@
  269. +ECHO_C = @ECHO_C@
  270. +ECHO_N = @ECHO_N@
  271. +ECHO_T = @ECHO_T@
  272. +EGREP = @EGREP@
  273. +EXEEXT = @EXEEXT@
  274. +FGREP = @FGREP@
  275. +GARCON_CFLAGS = @GARCON_CFLAGS@
  276. +GARCON_LIBS = @GARCON_LIBS@
  277. +GARCON_REQUIRED_VERSION = @GARCON_REQUIRED_VERSION@
  278. +GREP = @GREP@
  279. +GTK_CFLAGS = @GTK_CFLAGS@
  280. +GTK_LIBS = @GTK_LIBS@
  281. +GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
  282. +INSTALL = @INSTALL@
  283. +INSTALL_DATA = @INSTALL_DATA@
  284. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  285. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  286. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  287. +LD = @LD@
  288. +LDFLAGS = @LDFLAGS@
  289. +LIBOBJS = @LIBOBJS@
  290. +LIBS = @LIBS@
  291. +LIBTOOL = @LIBTOOL@
  292. +LIPO = @LIPO@
  293. +LN_S = @LN_S@
  294. +LTLIBOBJS = @LTLIBOBJS@
  295. +MAINT = @MAINT@
  296. +MAKEINFO = @MAKEINFO@
  297. +MANIFEST_TOOL = @MANIFEST_TOOL@
  298. +MIGHTY_MOUSE_CFLAGS = @MIGHTY_MOUSE_CFLAGS@
  299. +MIGHTY_MOUSE_LIBS = @MIGHTY_MOUSE_LIBS@
  300. +MIGHTY_MOUSE_REQUIRED_VERSION = @MIGHTY_MOUSE_REQUIRED_VERSION@
  301. +MKDIR_P = @MKDIR_P@
  302. +NM = @NM@
  303. +NMEDIT = @NMEDIT@
  304. +OBJDUMP = @OBJDUMP@
  305. +OBJEXT = @OBJEXT@
  306. +OTOOL = @OTOOL@
  307. +OTOOL64 = @OTOOL64@
  308. +PACKAGE = @PACKAGE@
  309. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  310. +PACKAGE_NAME = @PACKAGE_NAME@
  311. +PACKAGE_STRING = @PACKAGE_STRING@
  312. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  313. +PACKAGE_URL = @PACKAGE_URL@
  314. +PACKAGE_VERSION = @PACKAGE_VERSION@
  315. +PATH_SEPARATOR = @PATH_SEPARATOR@
  316. +PKG_CONFIG = @PKG_CONFIG@
  317. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  318. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  319. +PYGTK_CFLAGS = @PYGTK_CFLAGS@
  320. +PYGTK_LIBS = @PYGTK_LIBS@
  321. +PYGTK_REQUIRED_VERSION = @PYGTK_REQUIRED_VERSION@
  322. +PYTHON = @PYTHON@
  323. +PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
  324. +PYTHON_INCLUDES = @PYTHON_INCLUDES@
  325. +PYTHON_PLATFORM = @PYTHON_PLATFORM@
  326. +PYTHON_PREFIX = @PYTHON_PREFIX@
  327. +PYTHON_VERSION = @PYTHON_VERSION@
  328. +RANLIB = @RANLIB@
  329. +SED = @SED@
  330. +SET_MAKE = @SET_MAKE@
  331. +SHELL = @SHELL@
  332. +STRIP = @STRIP@
  333. +VERSION = @VERSION@
  334. +XFCE4_UI_CFLAGS = @XFCE4_UI_CFLAGS@
  335. +XFCE4_UI_LIBS = @XFCE4_UI_LIBS@
  336. +XFCE4_UI_REQUIRED_VERSION = @XFCE4_UI_REQUIRED_VERSION@
  337. +XFCE4_UTIL_CFLAGS = @XFCE4_UTIL_CFLAGS@
  338. +XFCE4_UTIL_LIBS = @XFCE4_UTIL_LIBS@
  339. +XFCE4_UTIL_REQUIRED_VERSION = @XFCE4_UTIL_REQUIRED_VERSION@
  340. +XFCE4_XFCONF_CFLAGS = @XFCE4_XFCONF_CFLAGS@
  341. +XFCE4_XFCONF_LIBS = @XFCE4_XFCONF_LIBS@
  342. +XFCE4_XFCONF_REQUIRED_VERSION = @XFCE4_XFCONF_REQUIRED_VERSION@
  343. +abs_builddir = @abs_builddir@
  344. +abs_srcdir = @abs_srcdir@
  345. +abs_top_builddir = @abs_top_builddir@
  346. +abs_top_srcdir = @abs_top_srcdir@
  347. +ac_ct_AR = @ac_ct_AR@
  348. +ac_ct_CC = @ac_ct_CC@
  349. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  350. +am__include = @am__include@
  351. +am__leading_dot = @am__leading_dot@
  352. +am__quote = @am__quote@
  353. +am__tar = @am__tar@
  354. +am__untar = @am__untar@
  355. +bindir = @bindir@
  356. +build = @build@
  357. +build_alias = @build_alias@
  358. +build_cpu = @build_cpu@
  359. +build_os = @build_os@
  360. +build_vendor = @build_vendor@
  361. +builddir = @builddir@
  362. +datadir = @datadir@
  363. +datarootdir = @datarootdir@
  364. +docdir = @docdir@
  365. +dvidir = @dvidir@
  366. +exec_prefix = @exec_prefix@
  367. +host = @host@
  368. +host_alias = @host_alias@
  369. +host_cpu = @host_cpu@
  370. +host_os = @host_os@
  371. +host_vendor = @host_vendor@
  372. +htmldir = @htmldir@
  373. +includedir = @includedir@
  374. +infodir = @infodir@
  375. +install_sh = @install_sh@
  376. +libdir = @libdir@
  377. +libexecdir = @libexecdir@
  378. +localedir = @localedir@
  379. +localstatedir = @localstatedir@
  380. +mandir = @mandir@
  381. +mkdir_p = @mkdir_p@
  382. +oldincludedir = @oldincludedir@
  383. +pdfdir = @pdfdir@
  384. +pkgpyexecdir = @pkgpyexecdir@
  385. +pkgpythondir = @pkgpythondir@
  386. +prefix = @prefix@
  387. +program_transform_name = @program_transform_name@
  388. +psdir = @psdir@
  389. +pyexecdir = @pyexecdir@
  390. +pythondir = @pythondir@
  391. +sbindir = @sbindir@
  392. +sharedstatedir = @sharedstatedir@
  393. +srcdir = @srcdir@
  394. +sysconfdir = @sysconfdir@
  395. +target_alias = @target_alias@
  396. +top_build_prefix = @top_build_prefix@
  397. +top_builddir = @top_builddir@
  398. +top_srcdir = @top_srcdir@
  399. +PLATFORM_VERSION = 4.2
  400. +common_ldflags = -module -avoid-version -export-symbols-regex \
  401. + init_garcon $(am__append_1)
  402. +INCLUDES = $(PYTHON_INCLUDES)
  403. +pyxfceexecdir = $(pyexecdir)/garcon
  404. +pyxfceexec_LTLIBRARIES = _garcon.la
  405. +pyxfceexec_PYTHON = garcon.py
  406. +_garcon_la_CFLAGS = $(GARCON_CFLAGS) $(PYTHON_CFLAGS) $(PYGTK_CFLAGS)
  407. +_garcon_la_LDFLAGS = $(common_ldflags)
  408. +_garcon_la_LIBADD = $(GARCON_LIBS)
  409. +#-export-symbols-regex
  410. +_garcon_la_SOURCES = \
  411. + config.c \
  412. + environment.c \
  413. + garcon.c \
  414. + marshal.c \
  415. + menu_directory.c \
  416. + menu_element.c \
  417. + menu.c \
  418. + menu_item_cache.c \
  419. + menu_item.c \
  420. + menu_item_pool.c \
  421. + menu_merger.c \
  422. + menu_parser.c \
  423. + menu_separator.c \
  424. + menu_tree_provider.c \
  425. + garconmodule.c
  426. +
  427. +defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs
  428. +defs_DATA = \
  429. + config.defs \
  430. + environment.defs \
  431. + garcon.defs \
  432. + marshal.defs \
  433. + menu_directory.defs \
  434. + menu_element.defs \
  435. + menu.defs \
  436. + menu_item_cache.defs \
  437. + menu_item.defs \
  438. + menu_item_pool.defs \
  439. + menu_merger.defs \
  440. + menu_parser.defs \
  441. + menu_separator.defs \
  442. + menu_tree_provider.defs
  443. +
  444. +garcon_overrides = \
  445. + config.override \
  446. + environment.override \
  447. + garcon.override \
  448. + marshal.override \
  449. + menu_directory.override \
  450. + menu_element.override \
  451. + menu.override \
  452. + menu_item_cache.override \
  453. + menu_item.override \
  454. + menu_item_pool.override \
  455. + menu_merger.override \
  456. + menu_parser.override \
  457. + menu_separator.override
  458. +
  459. +EXTRA_DIST = $(defs_DATA) $(garcon_overrides) gen
  460. +nodist__garcon_la_SOURCES =
  461. +PYGTK_DEFS = "`pkg-config --variable=defsdir pygtk-2.0`"
  462. +all: all-am
  463. +
  464. +.SUFFIXES:
  465. +.SUFFIXES: .c .defs .lo .o .obj
  466. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
  467. + @for dep in $?; do \
  468. + case '$(am__configure_deps)' in \
  469. + *$$dep*) \
  470. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  471. + && { if test -f $@; then exit 0; else break; fi; }; \
  472. + exit 1;; \
  473. + esac; \
  474. + done; \
  475. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign garcon/Makefile'; \
  476. + $(am__cd) $(top_srcdir) && \
  477. + $(AUTOMAKE) --foreign garcon/Makefile
  478. +.PRECIOUS: Makefile
  479. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  480. + @case '$?' in \
  481. + *config.status*) \
  482. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  483. + *) \
  484. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  485. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  486. + esac;
  487. +
  488. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  489. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  490. +
  491. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  492. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  493. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  494. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  495. +$(am__aclocal_m4_deps):
  496. +install-pyxfceexecLTLIBRARIES: $(pyxfceexec_LTLIBRARIES)
  497. + @$(NORMAL_INSTALL)
  498. + test -z "$(pyxfceexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pyxfceexecdir)"
  499. + @list='$(pyxfceexec_LTLIBRARIES)'; test -n "$(pyxfceexecdir)" || list=; \
  500. + list2=; for p in $$list; do \
  501. + if test -f $$p; then \
  502. + list2="$$list2 $$p"; \
  503. + else :; fi; \
  504. + done; \
  505. + test -z "$$list2" || { \
  506. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pyxfceexecdir)'"; \
  507. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pyxfceexecdir)"; \
  508. + }
  509. +
  510. +uninstall-pyxfceexecLTLIBRARIES:
  511. + @$(NORMAL_UNINSTALL)
  512. + @list='$(pyxfceexec_LTLIBRARIES)'; test -n "$(pyxfceexecdir)" || list=; \
  513. + for p in $$list; do \
  514. + $(am__strip_dir) \
  515. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyxfceexecdir)/$$f'"; \
  516. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyxfceexecdir)/$$f"; \
  517. + done
  518. +
  519. +clean-pyxfceexecLTLIBRARIES:
  520. + -test -z "$(pyxfceexec_LTLIBRARIES)" || rm -f $(pyxfceexec_LTLIBRARIES)
  521. + @list='$(pyxfceexec_LTLIBRARIES)'; for p in $$list; do \
  522. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  523. + test "$$dir" != "$$p" || dir=.; \
  524. + echo "rm -f \"$${dir}/so_locations\""; \
  525. + rm -f "$${dir}/so_locations"; \
  526. + done
  527. +_garcon.la: $(_garcon_la_OBJECTS) $(_garcon_la_DEPENDENCIES)
  528. + $(_garcon_la_LINK) -rpath $(pyxfceexecdir) $(_garcon_la_OBJECTS) $(_garcon_la_LIBADD) $(LIBS)
  529. +
  530. +mostlyclean-compile:
  531. + -rm -f *.$(OBJEXT)
  532. +
  533. +distclean-compile:
  534. + -rm -f *.tab.c
  535. +
  536. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-config.Plo@am__quote@
  537. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-environment.Plo@am__quote@
  538. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-garcon.Plo@am__quote@
  539. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-garconmodule.Plo@am__quote@
  540. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-marshal.Plo@am__quote@
  541. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu.Plo@am__quote@
  542. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_directory.Plo@am__quote@
  543. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_element.Plo@am__quote@
  544. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_item.Plo@am__quote@
  545. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_item_cache.Plo@am__quote@
  546. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_item_pool.Plo@am__quote@
  547. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_merger.Plo@am__quote@
  548. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_parser.Plo@am__quote@
  549. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_separator.Plo@am__quote@
  550. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_tree_provider.Plo@am__quote@
  551. +
  552. +.c.o:
  553. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  554. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  555. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  556. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  557. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  558. +
  559. +.c.obj:
  560. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  561. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  562. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  563. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  564. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  565. +
  566. +.c.lo:
  567. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  568. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  569. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  570. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  571. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  572. +
  573. +_garcon_la-config.lo: config.c
  574. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-config.lo -MD -MP -MF $(DEPDIR)/_garcon_la-config.Tpo -c -o _garcon_la-config.lo `test -f 'config.c' || echo '$(srcdir)/'`config.c
  575. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-config.Tpo $(DEPDIR)/_garcon_la-config.Plo
  576. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='config.c' object='_garcon_la-config.lo' libtool=yes @AMDEPBACKSLASH@
  577. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  578. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-config.lo `test -f 'config.c' || echo '$(srcdir)/'`config.c
  579. +
  580. +_garcon_la-environment.lo: environment.c
  581. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-environment.lo -MD -MP -MF $(DEPDIR)/_garcon_la-environment.Tpo -c -o _garcon_la-environment.lo `test -f 'environment.c' || echo '$(srcdir)/'`environment.c
  582. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-environment.Tpo $(DEPDIR)/_garcon_la-environment.Plo
  583. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='environment.c' object='_garcon_la-environment.lo' libtool=yes @AMDEPBACKSLASH@
  584. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  585. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-environment.lo `test -f 'environment.c' || echo '$(srcdir)/'`environment.c
  586. +
  587. +_garcon_la-garcon.lo: garcon.c
  588. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-garcon.lo -MD -MP -MF $(DEPDIR)/_garcon_la-garcon.Tpo -c -o _garcon_la-garcon.lo `test -f 'garcon.c' || echo '$(srcdir)/'`garcon.c
  589. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-garcon.Tpo $(DEPDIR)/_garcon_la-garcon.Plo
  590. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='garcon.c' object='_garcon_la-garcon.lo' libtool=yes @AMDEPBACKSLASH@
  591. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  592. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-garcon.lo `test -f 'garcon.c' || echo '$(srcdir)/'`garcon.c
  593. +
  594. +_garcon_la-marshal.lo: marshal.c
  595. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-marshal.lo -MD -MP -MF $(DEPDIR)/_garcon_la-marshal.Tpo -c -o _garcon_la-marshal.lo `test -f 'marshal.c' || echo '$(srcdir)/'`marshal.c
  596. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-marshal.Tpo $(DEPDIR)/_garcon_la-marshal.Plo
  597. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='marshal.c' object='_garcon_la-marshal.lo' libtool=yes @AMDEPBACKSLASH@
  598. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  599. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-marshal.lo `test -f 'marshal.c' || echo '$(srcdir)/'`marshal.c
  600. +
  601. +_garcon_la-menu_directory.lo: menu_directory.c
  602. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_directory.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_directory.Tpo -c -o _garcon_la-menu_directory.lo `test -f 'menu_directory.c' || echo '$(srcdir)/'`menu_directory.c
  603. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_directory.Tpo $(DEPDIR)/_garcon_la-menu_directory.Plo
  604. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_directory.c' object='_garcon_la-menu_directory.lo' libtool=yes @AMDEPBACKSLASH@
  605. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  606. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_directory.lo `test -f 'menu_directory.c' || echo '$(srcdir)/'`menu_directory.c
  607. +
  608. +_garcon_la-menu_element.lo: menu_element.c
  609. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_element.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_element.Tpo -c -o _garcon_la-menu_element.lo `test -f 'menu_element.c' || echo '$(srcdir)/'`menu_element.c
  610. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_element.Tpo $(DEPDIR)/_garcon_la-menu_element.Plo
  611. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_element.c' object='_garcon_la-menu_element.lo' libtool=yes @AMDEPBACKSLASH@
  612. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  613. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_element.lo `test -f 'menu_element.c' || echo '$(srcdir)/'`menu_element.c
  614. +
  615. +_garcon_la-menu.lo: menu.c
  616. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu.Tpo -c -o _garcon_la-menu.lo `test -f 'menu.c' || echo '$(srcdir)/'`menu.c
  617. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu.Tpo $(DEPDIR)/_garcon_la-menu.Plo
  618. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu.c' object='_garcon_la-menu.lo' libtool=yes @AMDEPBACKSLASH@
  619. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  620. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu.lo `test -f 'menu.c' || echo '$(srcdir)/'`menu.c
  621. +
  622. +_garcon_la-menu_item_cache.lo: menu_item_cache.c
  623. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_item_cache.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_item_cache.Tpo -c -o _garcon_la-menu_item_cache.lo `test -f 'menu_item_cache.c' || echo '$(srcdir)/'`menu_item_cache.c
  624. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_item_cache.Tpo $(DEPDIR)/_garcon_la-menu_item_cache.Plo
  625. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_item_cache.c' object='_garcon_la-menu_item_cache.lo' libtool=yes @AMDEPBACKSLASH@
  626. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  627. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_item_cache.lo `test -f 'menu_item_cache.c' || echo '$(srcdir)/'`menu_item_cache.c
  628. +
  629. +_garcon_la-menu_item.lo: menu_item.c
  630. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_item.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_item.Tpo -c -o _garcon_la-menu_item.lo `test -f 'menu_item.c' || echo '$(srcdir)/'`menu_item.c
  631. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_item.Tpo $(DEPDIR)/_garcon_la-menu_item.Plo
  632. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_item.c' object='_garcon_la-menu_item.lo' libtool=yes @AMDEPBACKSLASH@
  633. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  634. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_item.lo `test -f 'menu_item.c' || echo '$(srcdir)/'`menu_item.c
  635. +
  636. +_garcon_la-menu_item_pool.lo: menu_item_pool.c
  637. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_item_pool.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_item_pool.Tpo -c -o _garcon_la-menu_item_pool.lo `test -f 'menu_item_pool.c' || echo '$(srcdir)/'`menu_item_pool.c
  638. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_item_pool.Tpo $(DEPDIR)/_garcon_la-menu_item_pool.Plo
  639. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_item_pool.c' object='_garcon_la-menu_item_pool.lo' libtool=yes @AMDEPBACKSLASH@
  640. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  641. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_item_pool.lo `test -f 'menu_item_pool.c' || echo '$(srcdir)/'`menu_item_pool.c
  642. +
  643. +_garcon_la-menu_merger.lo: menu_merger.c
  644. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_merger.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_merger.Tpo -c -o _garcon_la-menu_merger.lo `test -f 'menu_merger.c' || echo '$(srcdir)/'`menu_merger.c
  645. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_merger.Tpo $(DEPDIR)/_garcon_la-menu_merger.Plo
  646. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_merger.c' object='_garcon_la-menu_merger.lo' libtool=yes @AMDEPBACKSLASH@
  647. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  648. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_merger.lo `test -f 'menu_merger.c' || echo '$(srcdir)/'`menu_merger.c
  649. +
  650. +_garcon_la-menu_parser.lo: menu_parser.c
  651. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_parser.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_parser.Tpo -c -o _garcon_la-menu_parser.lo `test -f 'menu_parser.c' || echo '$(srcdir)/'`menu_parser.c
  652. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_parser.Tpo $(DEPDIR)/_garcon_la-menu_parser.Plo
  653. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_parser.c' object='_garcon_la-menu_parser.lo' libtool=yes @AMDEPBACKSLASH@
  654. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  655. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_parser.lo `test -f 'menu_parser.c' || echo '$(srcdir)/'`menu_parser.c
  656. +
  657. +_garcon_la-menu_separator.lo: menu_separator.c
  658. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_separator.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_separator.Tpo -c -o _garcon_la-menu_separator.lo `test -f 'menu_separator.c' || echo '$(srcdir)/'`menu_separator.c
  659. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_separator.Tpo $(DEPDIR)/_garcon_la-menu_separator.Plo
  660. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_separator.c' object='_garcon_la-menu_separator.lo' libtool=yes @AMDEPBACKSLASH@
  661. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  662. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_separator.lo `test -f 'menu_separator.c' || echo '$(srcdir)/'`menu_separator.c
  663. +
  664. +_garcon_la-menu_tree_provider.lo: menu_tree_provider.c
  665. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-menu_tree_provider.lo -MD -MP -MF $(DEPDIR)/_garcon_la-menu_tree_provider.Tpo -c -o _garcon_la-menu_tree_provider.lo `test -f 'menu_tree_provider.c' || echo '$(srcdir)/'`menu_tree_provider.c
  666. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_tree_provider.Tpo $(DEPDIR)/_garcon_la-menu_tree_provider.Plo
  667. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_tree_provider.c' object='_garcon_la-menu_tree_provider.lo' libtool=yes @AMDEPBACKSLASH@
  668. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  669. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-menu_tree_provider.lo `test -f 'menu_tree_provider.c' || echo '$(srcdir)/'`menu_tree_provider.c
  670. +
  671. +_garcon_la-garconmodule.lo: garconmodule.c
  672. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -MT _garcon_la-garconmodule.lo -MD -MP -MF $(DEPDIR)/_garcon_la-garconmodule.Tpo -c -o _garcon_la-garconmodule.lo `test -f 'garconmodule.c' || echo '$(srcdir)/'`garconmodule.c
  673. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-garconmodule.Tpo $(DEPDIR)/_garcon_la-garconmodule.Plo
  674. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='garconmodule.c' object='_garcon_la-garconmodule.lo' libtool=yes @AMDEPBACKSLASH@
  675. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  676. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(_garcon_la_CFLAGS) $(CFLAGS) -c -o _garcon_la-garconmodule.lo `test -f 'garconmodule.c' || echo '$(srcdir)/'`garconmodule.c
  677. +
  678. +mostlyclean-libtool:
  679. + -rm -f *.lo
  680. +
  681. +clean-libtool:
  682. + -rm -rf .libs _libs
  683. +install-pyxfceexecPYTHON: $(pyxfceexec_PYTHON)
  684. + @$(NORMAL_INSTALL)
  685. + test -z "$(pyxfceexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pyxfceexecdir)"
  686. + @list='$(pyxfceexec_PYTHON)'; dlist=; list2=; test -n "$(pyxfceexecdir)" || list=; \
  687. + for p in $$list; do \
  688. + if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \
  689. + if test -f $$b$$p; then \
  690. + $(am__strip_dir) \
  691. + dlist="$$dlist $$f"; \
  692. + list2="$$list2 $$b$$p"; \
  693. + else :; fi; \
  694. + done; \
  695. + for file in $$list2; do echo $$file; done | $(am__base_list) | \
  696. + while read files; do \
  697. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pyxfceexecdir)'"; \
  698. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pyxfceexecdir)" || exit $$?; \
  699. + done || exit $$?; \
  700. + if test -n "$$dlist"; then \
  701. + if test -z "$(DESTDIR)"; then \
  702. + PYTHON=$(PYTHON) $(py_compile) --basedir "$(pyxfceexecdir)" $$dlist; \
  703. + else \
  704. + PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pyxfceexecdir)" $$dlist; \
  705. + fi; \
  706. + else :; fi
  707. +
  708. +uninstall-pyxfceexecPYTHON:
  709. + @$(NORMAL_UNINSTALL)
  710. + @list='$(pyxfceexec_PYTHON)'; test -n "$(pyxfceexecdir)" || list=; \
  711. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  712. + test -n "$$files" || exit 0; \
  713. + filesc=`echo "$$files" | sed 's|$$|c|'`; \
  714. + fileso=`echo "$$files" | sed 's|$$|o|'`; \
  715. + echo " ( cd '$(DESTDIR)$(pyxfceexecdir)' && rm -f" $$files ")"; \
  716. + cd "$(DESTDIR)$(pyxfceexecdir)" && rm -f $$files || exit $$?; \
  717. + echo " ( cd '$(DESTDIR)$(pyxfceexecdir)' && rm -f" $$filesc ")"; \
  718. + cd "$(DESTDIR)$(pyxfceexecdir)" && rm -f $$filesc || exit $$?; \
  719. + echo " ( cd '$(DESTDIR)$(pyxfceexecdir)' && rm -f" $$fileso ")"; \
  720. + cd "$(DESTDIR)$(pyxfceexecdir)" && rm -f $$fileso
  721. +install-defsDATA: $(defs_DATA)
  722. + @$(NORMAL_INSTALL)
  723. + test -z "$(defsdir)" || $(MKDIR_P) "$(DESTDIR)$(defsdir)"
  724. + @list='$(defs_DATA)'; test -n "$(defsdir)" || list=; \
  725. + for p in $$list; do \
  726. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  727. + echo "$$d$$p"; \
  728. + done | $(am__base_list) | \
  729. + while read files; do \
  730. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(defsdir)'"; \
  731. + $(INSTALL_DATA) $$files "$(DESTDIR)$(defsdir)" || exit $$?; \
  732. + done
  733. +
  734. +uninstall-defsDATA:
  735. + @$(NORMAL_UNINSTALL)
  736. + @list='$(defs_DATA)'; test -n "$(defsdir)" || list=; \
  737. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  738. + test -n "$$files" || exit 0; \
  739. + echo " ( cd '$(DESTDIR)$(defsdir)' && rm -f" $$files ")"; \
  740. + cd "$(DESTDIR)$(defsdir)" && rm -f $$files
  741. +
  742. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  743. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  744. + unique=`for i in $$list; do \
  745. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  746. + done | \
  747. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  748. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  749. + mkid -fID $$unique
  750. +tags: TAGS
  751. +
  752. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  753. + $(TAGS_FILES) $(LISP)
  754. + set x; \
  755. + here=`pwd`; \
  756. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  757. + unique=`for i in $$list; do \
  758. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  759. + done | \
  760. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  761. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  762. + shift; \
  763. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  764. + test -n "$$unique" || unique=$$empty_fix; \
  765. + if test $$# -gt 0; then \
  766. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  767. + "$$@" $$unique; \
  768. + else \
  769. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  770. + $$unique; \
  771. + fi; \
  772. + fi
  773. +ctags: CTAGS
  774. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  775. + $(TAGS_FILES) $(LISP)
  776. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  777. + unique=`for i in $$list; do \
  778. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  779. + done | \
  780. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  781. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  782. + test -z "$(CTAGS_ARGS)$$unique" \
  783. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  784. + $$unique
  785. +
  786. +GTAGS:
  787. + here=`$(am__cd) $(top_builddir) && pwd` \
  788. + && $(am__cd) $(top_srcdir) \
  789. + && gtags -i $(GTAGS_ARGS) "$$here"
  790. +
  791. +distclean-tags:
  792. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  793. +
  794. +distdir: $(DISTFILES)
  795. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  796. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  797. + list='$(DISTFILES)'; \
  798. + dist_files=`for file in $$list; do echo $$file; done | \
  799. + sed -e "s|^$$srcdirstrip/||;t" \
  800. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  801. + case $$dist_files in \
  802. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  803. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  804. + sort -u` ;; \
  805. + esac; \
  806. + for file in $$dist_files; do \
  807. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  808. + if test -d $$d/$$file; then \
  809. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  810. + if test -d "$(distdir)/$$file"; then \
  811. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  812. + fi; \
  813. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  814. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  815. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  816. + fi; \
  817. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  818. + else \
  819. + test -f "$(distdir)/$$file" \
  820. + || cp -p $$d/$$file "$(distdir)/$$file" \
  821. + || exit 1; \
  822. + fi; \
  823. + done
  824. +check-am: all-am
  825. +check: check-am
  826. +all-am: Makefile $(LTLIBRARIES) $(DATA)
  827. +installdirs:
  828. + for dir in "$(DESTDIR)$(pyxfceexecdir)" "$(DESTDIR)$(pyxfceexecdir)" "$(DESTDIR)$(defsdir)"; do \
  829. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  830. + done
  831. +install: install-am
  832. +install-exec: install-exec-am
  833. +install-data: install-data-am
  834. +uninstall: uninstall-am
  835. +
  836. +install-am: all-am
  837. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  838. +
  839. +installcheck: installcheck-am
  840. +install-strip:
  841. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  842. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  843. + `test -z '$(STRIP)' || \
  844. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  845. +mostlyclean-generic:
  846. +
  847. +clean-generic:
  848. +
  849. +distclean-generic:
  850. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  851. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  852. +
  853. +maintainer-clean-generic:
  854. + @echo "This command is intended for maintainers to use"
  855. + @echo "it deletes files that may require special tools to rebuild."
  856. +clean: clean-am
  857. +
  858. +clean-am: clean-generic clean-libtool clean-pyxfceexecLTLIBRARIES \
  859. + mostlyclean-am
  860. +
  861. +distclean: distclean-am
  862. + -rm -rf ./$(DEPDIR)
  863. + -rm -f Makefile
  864. +distclean-am: clean-am distclean-compile distclean-generic \
  865. + distclean-tags
  866. +
  867. +dvi: dvi-am
  868. +
  869. +dvi-am:
  870. +
  871. +html: html-am
  872. +
  873. +html-am:
  874. +
  875. +info: info-am
  876. +
  877. +info-am:
  878. +
  879. +install-data-am: install-defsDATA
  880. +
  881. +install-dvi: install-dvi-am
  882. +
  883. +install-dvi-am:
  884. +
  885. +install-exec-am: install-pyxfceexecLTLIBRARIES \
  886. + install-pyxfceexecPYTHON
  887. +
  888. +install-html: install-html-am
  889. +
  890. +install-html-am:
  891. +
  892. +install-info: install-info-am
  893. +
  894. +install-info-am:
  895. +
  896. +install-man:
  897. +
  898. +install-pdf: install-pdf-am
  899. +
  900. +install-pdf-am:
  901. +
  902. +install-ps: install-ps-am
  903. +
  904. +install-ps-am:
  905. +
  906. +installcheck-am:
  907. +
  908. +maintainer-clean: maintainer-clean-am
  909. + -rm -rf ./$(DEPDIR)
  910. + -rm -f Makefile
  911. +maintainer-clean-am: distclean-am maintainer-clean-generic
  912. +
  913. +mostlyclean: mostlyclean-am
  914. +
  915. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  916. + mostlyclean-libtool
  917. +
  918. +pdf: pdf-am
  919. +
  920. +pdf-am:
  921. +
  922. +ps: ps-am
  923. +
  924. +ps-am:
  925. +
  926. +uninstall-am: uninstall-defsDATA uninstall-pyxfceexecLTLIBRARIES \
  927. + uninstall-pyxfceexecPYTHON
  928. +
  929. +.MAKE: install-am install-strip
  930. +
  931. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  932. + clean-libtool clean-pyxfceexecLTLIBRARIES ctags distclean \
  933. + distclean-compile distclean-generic distclean-libtool \
  934. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  935. + install install-am install-data install-data-am \
  936. + install-defsDATA install-dvi install-dvi-am install-exec \
  937. + install-exec-am install-html install-html-am install-info \
  938. + install-info-am install-man install-pdf install-pdf-am \
  939. + install-ps install-ps-am install-pyxfceexecLTLIBRARIES \
  940. + install-pyxfceexecPYTHON install-strip installcheck \
  941. + installcheck-am installdirs maintainer-clean \
  942. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  943. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  944. + tags uninstall uninstall-am uninstall-defsDATA \
  945. + uninstall-pyxfceexecLTLIBRARIES uninstall-pyxfceexecPYTHON
  946. +
  947. +@SET_MAKE@
  948. +
  949. +.defs.c:
  950. + (cd $(srcdir) \
  951. + && $(PYTHON) $(CODEGEN_PATH)/codegen.py \
  952. + $(PYGTK_CODEGEN_DEFINES) \
  953. + --override $*.override \
  954. + --register $(PYGTK_DEFS)/gtk-types.defs \
  955. + --register $(PYGTK_DEFS)/gdk-types.defs \
  956. + --register ../util/desktopentry.defs \
  957. + --prefix py$* $*.defs) > gen-$*.c \
  958. + && cp gen-$*.c $*.c \
  959. + && rm -f gen-$*.c
  960. +
  961. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  962. +# Otherwise a system limit (for SysV at least) may be exceeded.
  963. +.NOEXPORT:
  964. diff --git a/garcon/config.c b/garcon/config.c
  965. new file mode 100644
  966. index 0000000..cba4ff2
  967. --- /dev/null
  968. +++ b/garcon/config.c
  969. @@ -0,0 +1,127 @@
  970. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  971. +
  972. +#include <Python.h>
  973. +
  974. +
  975. +
  976. +#line 6 "config.override"
  977. +#include "pygobject.h"
  978. +#include <glib.h>
  979. +#include <garcon/garcon.h>
  980. +
  981. +#line 13 "config.c"
  982. +
  983. +
  984. +/* ---------- types from other modules ---------- */
  985. +static PyTypeObject *_PyGObject_Type;
  986. +#define PyGObject_Type (*_PyGObject_Type)
  987. +
  988. +
  989. +/* ---------- forward type declarations ---------- */
  990. +
  991. +#line 23 "config.c"
  992. +
  993. +
  994. +
  995. +/* ----------- functions ----------- */
  996. +
  997. +static PyObject *
  998. +_wrap_garcon_check_version(PyObject *self, PyObject *args, PyObject *kwargs)
  999. +{
  1000. + static char *kwlist[] = { "required_major", "required_minor", "required_micro", NULL };
  1001. + PyObject *py_required_major = NULL, *py_required_minor = NULL, *py_required_micro = NULL;
  1002. + const gchar *ret;
  1003. + guint required_major = 0, required_minor = 0, required_micro = 0;
  1004. +
  1005. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"OOO:garcon_check_version", kwlist, &py_required_major, &py_required_minor, &py_required_micro))
  1006. + return NULL;
  1007. + if (py_required_major) {
  1008. + if (PyLong_Check(py_required_major))
  1009. + required_major = PyLong_AsUnsignedLong(py_required_major);
  1010. + else if (PyInt_Check(py_required_major))
  1011. + required_major = PyInt_AsLong(py_required_major);
  1012. + else
  1013. + PyErr_SetString(PyExc_TypeError, "Parameter 'required_major' must be an int or a long");
  1014. + if (PyErr_Occurred())
  1015. + return NULL;
  1016. + }
  1017. + if (py_required_minor) {
  1018. + if (PyLong_Check(py_required_minor))
  1019. + required_minor = PyLong_AsUnsignedLong(py_required_minor);
  1020. + else if (PyInt_Check(py_required_minor))
  1021. + required_minor = PyInt_AsLong(py_required_minor);
  1022. + else
  1023. + PyErr_SetString(PyExc_TypeError, "Parameter 'required_minor' must be an int or a long");
  1024. + if (PyErr_Occurred())
  1025. + return NULL;
  1026. + }
  1027. + if (py_required_micro) {
  1028. + if (PyLong_Check(py_required_micro))
  1029. + required_micro = PyLong_AsUnsignedLong(py_required_micro);
  1030. + else if (PyInt_Check(py_required_micro))
  1031. + required_micro = PyInt_AsLong(py_required_micro);
  1032. + else
  1033. + PyErr_SetString(PyExc_TypeError, "Parameter 'required_micro' must be an int or a long");
  1034. + if (PyErr_Occurred())
  1035. + return NULL;
  1036. + }
  1037. +
  1038. + ret = garcon_check_version(required_major, required_minor, required_micro);
  1039. +
  1040. + if (ret)
  1041. + return PyString_FromString(ret);
  1042. + Py_INCREF(Py_None);
  1043. + return Py_None;
  1044. +}
  1045. +
  1046. +static PyObject *
  1047. +_wrap_garcon_config_lookup(PyObject *self, PyObject *args, PyObject *kwargs)
  1048. +{
  1049. + static char *kwlist[] = { "filename", NULL };
  1050. + char *filename;
  1051. + gchar *ret;
  1052. +
  1053. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_config_lookup", kwlist, &filename))
  1054. + return NULL;
  1055. +
  1056. + ret = garcon_config_lookup(filename);
  1057. +
  1058. + if (ret) {
  1059. + PyObject *py_ret = PyString_FromString(ret);
  1060. + g_free(ret);
  1061. + return py_ret;
  1062. + }
  1063. + Py_INCREF(Py_None);
  1064. + return Py_None;
  1065. +}
  1066. +
  1067. +const PyMethodDef pyconfig_functions[] = {
  1068. + { "garcon_check_version", (PyCFunction)_wrap_garcon_check_version, METH_VARARGS|METH_KEYWORDS,
  1069. + NULL },
  1070. + { "garcon_config_lookup", (PyCFunction)_wrap_garcon_config_lookup, METH_VARARGS|METH_KEYWORDS,
  1071. + NULL },
  1072. + { NULL, NULL, 0, NULL }
  1073. +};
  1074. +
  1075. +/* initialise stuff extension classes */
  1076. +void
  1077. +pyconfig_register_classes(PyObject *d)
  1078. +{
  1079. + PyObject *module;
  1080. +
  1081. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  1082. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  1083. + if (_PyGObject_Type == NULL) {
  1084. + PyErr_SetString(PyExc_ImportError,
  1085. + "cannot import name GObject from gobject");
  1086. + return ;
  1087. + }
  1088. + } else {
  1089. + PyErr_SetString(PyExc_ImportError,
  1090. + "could not import gobject");
  1091. + return ;
  1092. + }
  1093. +
  1094. +
  1095. +#line 127 "config.c"
  1096. +}
  1097. diff --git a/garcon/config.defs b/garcon/config.defs
  1098. new file mode 100644
  1099. index 0000000..95994de
  1100. --- /dev/null
  1101. +++ b/garcon/config.defs
  1102. @@ -0,0 +1,34 @@
  1103. +;; -*- scheme -*-
  1104. +; object definitions ...
  1105. +;; Enumerations and flags ...
  1106. +
  1107. +
  1108. +;; From garcon-config.h
  1109. +
  1110. +(define-function garcon_check_version
  1111. + (c-name "garcon_check_version")
  1112. + (return-type "const-gchar*")
  1113. + (parameters
  1114. + '("guint" "required_major")
  1115. + '("guint" "required_minor")
  1116. + '("guint" "required_micro")
  1117. + )
  1118. +)
  1119. +
  1120. +(define-function garcon_config_lookup
  1121. + (c-name "garcon_config_lookup")
  1122. + (return-type "gchar*")
  1123. + (parameters
  1124. + '("const-gchar*" "filename")
  1125. + )
  1126. +)
  1127. +
  1128. +(define-function garcon_config_build_paths
  1129. + (c-name "garcon_config_build_paths")
  1130. + (return-type "gchar**")
  1131. + (parameters
  1132. + '("const-gchar*" "filename")
  1133. + )
  1134. +)
  1135. +
  1136. +
  1137. diff --git a/garcon/config.override b/garcon/config.override
  1138. new file mode 100644
  1139. index 0000000..cb67333
  1140. --- /dev/null
  1141. +++ b/garcon/config.override
  1142. @@ -0,0 +1,23 @@
  1143. +/* -*- Mode: C; c-basic-offset: 4 -*-
  1144. + *
  1145. + */
  1146. +%%
  1147. +headers
  1148. +#include "pygobject.h"
  1149. +#include <glib.h>
  1150. +#include <garcon/garcon.h>
  1151. +
  1152. +%%
  1153. +include
  1154. +%%
  1155. +modulename garcon
  1156. +%%
  1157. +import gobject.GObject as PyGObject_Type
  1158. +%%
  1159. +ignore
  1160. +%%
  1161. +ignore-glob
  1162. + *_get_type
  1163. +%%
  1164. +ignore-win32
  1165. +%%
  1166. diff --git a/garcon/environment.c b/garcon/environment.c
  1167. new file mode 100644
  1168. index 0000000..90c31a9
  1169. --- /dev/null
  1170. +++ b/garcon/environment.c
  1171. @@ -0,0 +1,86 @@
  1172. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  1173. +
  1174. +#include <Python.h>
  1175. +
  1176. +
  1177. +
  1178. +#line 6 "environment.override"
  1179. +#include "pygobject.h"
  1180. +#include <glib.h>
  1181. +#include <garcon/garcon.h>
  1182. +
  1183. +#line 13 "environment.c"
  1184. +
  1185. +
  1186. +/* ---------- types from other modules ---------- */
  1187. +static PyTypeObject *_PyGObject_Type;
  1188. +#define PyGObject_Type (*_PyGObject_Type)
  1189. +
  1190. +
  1191. +/* ---------- forward type declarations ---------- */
  1192. +
  1193. +#line 23 "environment.c"
  1194. +
  1195. +
  1196. +
  1197. +/* ----------- functions ----------- */
  1198. +
  1199. +static PyObject *
  1200. +_wrap_garcon_set_environment(PyObject *self, PyObject *args, PyObject *kwargs)
  1201. +{
  1202. + static char *kwlist[] = { "env", NULL };
  1203. + char *env;
  1204. +
  1205. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_set_environment", kwlist, &env))
  1206. + return NULL;
  1207. +
  1208. + garcon_set_environment(env);
  1209. +
  1210. + Py_INCREF(Py_None);
  1211. + return Py_None;
  1212. +}
  1213. +
  1214. +static PyObject *
  1215. +_wrap_garcon_get_environment(PyObject *self)
  1216. +{
  1217. + const gchar *ret;
  1218. +
  1219. +
  1220. + ret = garcon_get_environment();
  1221. +
  1222. + if (ret)
  1223. + return PyString_FromString(ret);
  1224. + Py_INCREF(Py_None);
  1225. + return Py_None;
  1226. +}
  1227. +
  1228. +const PyMethodDef pyenvironment_functions[] = {
  1229. + { "garcon_set_environment", (PyCFunction)_wrap_garcon_set_environment, METH_VARARGS|METH_KEYWORDS,
  1230. + NULL },
  1231. + { "garcon_get_environment", (PyCFunction)_wrap_garcon_get_environment, METH_NOARGS,
  1232. + NULL },
  1233. + { NULL, NULL, 0, NULL }
  1234. +};
  1235. +
  1236. +/* initialise stuff extension classes */
  1237. +void
  1238. +pyenvironment_register_classes(PyObject *d)
  1239. +{
  1240. + PyObject *module;
  1241. +
  1242. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  1243. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  1244. + if (_PyGObject_Type == NULL) {
  1245. + PyErr_SetString(PyExc_ImportError,
  1246. + "cannot import name GObject from gobject");
  1247. + return ;
  1248. + }
  1249. + } else {
  1250. + PyErr_SetString(PyExc_ImportError,
  1251. + "could not import gobject");
  1252. + return ;
  1253. + }
  1254. +
  1255. +
  1256. +#line 86 "environment.c"
  1257. +}
  1258. diff --git a/garcon/environment.defs b/garcon/environment.defs
  1259. new file mode 100644
  1260. index 0000000..e4e2c94
  1261. --- /dev/null
  1262. +++ b/garcon/environment.defs
  1263. @@ -0,0 +1,21 @@
  1264. +;; -*- scheme -*-
  1265. +; object definitions ...
  1266. +;; Enumerations and flags ...
  1267. +
  1268. +
  1269. +;; From garcon-environment.h
  1270. +
  1271. +(define-function garcon_set_environment
  1272. + (c-name "garcon_set_environment")
  1273. + (return-type "none")
  1274. + (parameters
  1275. + '("const-gchar*" "env")
  1276. + )
  1277. +)
  1278. +
  1279. +(define-function garcon_get_environment
  1280. + (c-name "garcon_get_environment")
  1281. + (return-type "const-gchar*")
  1282. +)
  1283. +
  1284. +
  1285. diff --git a/garcon/environment.override b/garcon/environment.override
  1286. new file mode 100644
  1287. index 0000000..cb67333
  1288. --- /dev/null
  1289. +++ b/garcon/environment.override
  1290. @@ -0,0 +1,23 @@
  1291. +/* -*- Mode: C; c-basic-offset: 4 -*-
  1292. + *
  1293. + */
  1294. +%%
  1295. +headers
  1296. +#include "pygobject.h"
  1297. +#include <glib.h>
  1298. +#include <garcon/garcon.h>
  1299. +
  1300. +%%
  1301. +include
  1302. +%%
  1303. +modulename garcon
  1304. +%%
  1305. +import gobject.GObject as PyGObject_Type
  1306. +%%
  1307. +ignore
  1308. +%%
  1309. +ignore-glob
  1310. + *_get_type
  1311. +%%
  1312. +ignore-win32
  1313. +%%
  1314. diff --git a/garcon/garcon.c b/garcon/garcon.c
  1315. new file mode 100644
  1316. index 0000000..9aef147
  1317. --- /dev/null
  1318. +++ b/garcon/garcon.c
  1319. @@ -0,0 +1,53 @@
  1320. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  1321. +
  1322. +#include <Python.h>
  1323. +
  1324. +
  1325. +
  1326. +#line 6 "garcon.override"
  1327. +#include "pygobject.h"
  1328. +#include <glib.h>
  1329. +#include <garcon/garcon.h>
  1330. +
  1331. +#line 13 "garcon.c"
  1332. +
  1333. +
  1334. +/* ---------- types from other modules ---------- */
  1335. +static PyTypeObject *_PyGObject_Type;
  1336. +#define PyGObject_Type (*_PyGObject_Type)
  1337. +
  1338. +
  1339. +/* ---------- forward type declarations ---------- */
  1340. +
  1341. +#line 23 "garcon.c"
  1342. +
  1343. +
  1344. +
  1345. +/* ----------- functions ----------- */
  1346. +
  1347. +const PyMethodDef pygarcon_functions[] = {
  1348. + { NULL, NULL, 0, NULL }
  1349. +};
  1350. +
  1351. +/* initialise stuff extension classes */
  1352. +void
  1353. +pygarcon_register_classes(PyObject *d)
  1354. +{
  1355. + PyObject *module;
  1356. +
  1357. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  1358. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  1359. + if (_PyGObject_Type == NULL) {
  1360. + PyErr_SetString(PyExc_ImportError,
  1361. + "cannot import name GObject from gobject");
  1362. + return ;
  1363. + }
  1364. + } else {
  1365. + PyErr_SetString(PyExc_ImportError,
  1366. + "could not import gobject");
  1367. + return ;
  1368. + }
  1369. +
  1370. +
  1371. +#line 53 "garcon.c"
  1372. +}
  1373. diff --git a/garcon/garcon.defs b/garcon/garcon.defs
  1374. new file mode 100644
  1375. index 0000000..cc70655
  1376. --- /dev/null
  1377. +++ b/garcon/garcon.defs
  1378. @@ -0,0 +1,8 @@
  1379. +;; -*- scheme -*-
  1380. +; object definitions ...
  1381. +;; Enumerations and flags ...
  1382. +
  1383. +
  1384. +;; From garcon.h
  1385. +
  1386. +
  1387. diff --git a/garcon/garcon.override b/garcon/garcon.override
  1388. new file mode 100644
  1389. index 0000000..cb67333
  1390. --- /dev/null
  1391. +++ b/garcon/garcon.override
  1392. @@ -0,0 +1,23 @@
  1393. +/* -*- Mode: C; c-basic-offset: 4 -*-
  1394. + *
  1395. + */
  1396. +%%
  1397. +headers
  1398. +#include "pygobject.h"
  1399. +#include <glib.h>
  1400. +#include <garcon/garcon.h>
  1401. +
  1402. +%%
  1403. +include
  1404. +%%
  1405. +modulename garcon
  1406. +%%
  1407. +import gobject.GObject as PyGObject_Type
  1408. +%%
  1409. +ignore
  1410. +%%
  1411. +ignore-glob
  1412. + *_get_type
  1413. +%%
  1414. +ignore-win32
  1415. +%%
  1416. diff --git a/garcon/garcon.py b/garcon/garcon.py
  1417. new file mode 100644
  1418. index 0000000..f6c5978
  1419. --- /dev/null
  1420. +++ b/garcon/garcon.py
  1421. @@ -0,0 +1,4 @@
  1422. +#!/usr/bin/env python
  1423. +
  1424. +from _menu import *
  1425. +
  1426. diff --git a/garcon/garconmodule.c b/garcon/garconmodule.c
  1427. new file mode 100644
  1428. index 0000000..2bc7af8
  1429. --- /dev/null
  1430. +++ b/garcon/garconmodule.c
  1431. @@ -0,0 +1,117 @@
  1432. +/* -*- Mode: C; c-basic-offset: 4 -*-
  1433. + */
  1434. +
  1435. +#ifdef HAVE_CONFIG_H
  1436. +#include "config.h"
  1437. +#endif
  1438. +
  1439. +#include <locale.h>
  1440. +
  1441. +/* include this first, before NO_IMPORT_PYGOBJECT is defined */
  1442. +#include <pygobject.h>
  1443. +#include <pyerrors.h>
  1444. +
  1445. +#include <garcon/garcon.h>
  1446. +
  1447. +extern PyMethodDef pyconfig_functions[];
  1448. +extern PyMethodDef pyenvironment_functions[];
  1449. +extern PyMethodDef pygarcon_functions[];
  1450. +extern PyMethodDef pymarshal_functions[];
  1451. +extern PyMethodDef pymenu_directory_functions[];
  1452. +extern PyMethodDef pymenu_element_functions[];
  1453. +extern PyMethodDef pymenu_functions[];
  1454. +extern PyMethodDef pymenu_item_cache_functions[];
  1455. +extern PyMethodDef pymenu_item_functions[];
  1456. +extern PyMethodDef pymenu_item_pool_functions[];
  1457. +extern PyMethodDef pymenu_merger_functions[];
  1458. +extern PyMethodDef pymenu_parser_functions[];
  1459. +extern PyMethodDef pymenu_separator_functions[];
  1460. +extern PyMethodDef pymenu_tree_provider_functions[];
  1461. +
  1462. +void pyconfig_register_classes(PyObject *d);
  1463. +void pyenvironment_register_classes(PyObject *d);
  1464. +void pygarcon_register_classes(PyObject *d);
  1465. +void pymarshal_register_classes(PyObject *d);
  1466. +void pymenu_directory_register_classes(PyObject *d);
  1467. +void pymenu_element_register_classes(PyObject *d);
  1468. +void pymenu_functionsregister_classes(PyObject *d);
  1469. +void pymenu_item_cache_register_classes(PyObject *d);
  1470. +void pymenu_item_register_classes(PyObject *d);
  1471. +void pymenu_item_pool_register_classes(PyObject *d);
  1472. +void pymenu_merger_register_classes(PyObject *d);
  1473. +void pymenu_parser_register_classes(PyObject *d);
  1474. +void pymenu_separator_register_classes(PyObject *d);
  1475. +void pymenu_tree_provider_register_classes(PyObject *d);
  1476. +
  1477. +
  1478. +static PyMethodDef all_functions[1000];
  1479. +
  1480. +static PyMethodDef* each_functions[] = {
  1481. + pyconfig_functions,
  1482. + pyenvironment_functions,
  1483. + pygarcon_functions,
  1484. + pymarshal_functions,
  1485. + pymenu_directory_functions,
  1486. + pymenu_element_functions,
  1487. + pymenu_functions,
  1488. + pymenu_item_cache_functions,
  1489. + pymenu_item_functions,
  1490. + pymenu_item_pool_functions,
  1491. + pymenu_merger_functions,
  1492. + pymenu_parser_functions,
  1493. + pymenu_separator_functions,
  1494. + pymenu_tree_provider_functions
  1495. +};
  1496. +
  1497. +static void
  1498. +my_register1()
  1499. +{
  1500. + PyObject *m, *d;
  1501. + int i;
  1502. + int j;
  1503. + int cnt;
  1504. +
  1505. + cnt = 0;
  1506. +
  1507. + for(i = 0; i < sizeof(each_functions) / sizeof(each_functions[0]); i++) {
  1508. + for(j = 0; each_functions[i][j].ml_name != NULL; j++) {
  1509. + if (cnt >= sizeof(all_functions) / sizeof(all_functions[0])) {
  1510. + fprintf (stderr, "pyxfce: Internal Error: too many functions");
  1511. + exit (1);
  1512. + }
  1513. +
  1514. + all_functions[cnt++] = each_functions[i][j];
  1515. + }
  1516. + }
  1517. +
  1518. + m = Py_InitModule("_garcon", all_functions);
  1519. +
  1520. + d = PyModule_GetDict(m);
  1521. + pyconfig_register_classes(d);
  1522. + pyenvironment_register_classes(d);
  1523. + pygarcon_register_classes(d);
  1524. + pymarshal_register_classes(d);
  1525. + pymenu_directory_register_classes(d);
  1526. + pymenu_element_register_classes(d);
  1527. + pymenu_functionsregister_classes(d);
  1528. + pymenu_item_cache_register_classes(d);
  1529. + pymenu_item_register_classes(d);
  1530. + pymenu_item_pool_register_classes(d);
  1531. + pymenu_merger_register_classes(d);
  1532. + pymenu_parser_register_classes(d);
  1533. + pymenu_separator_register_classes(d);
  1534. + pymenu_tree_provider_register_classes(d);
  1535. +}
  1536. +
  1537. +DL_EXPORT(void)
  1538. +init_garcon(void)
  1539. +{
  1540. + /* set the default python encoding to utf-8 */
  1541. + PyUnicode_SetDefaultEncoding("utf-8");
  1542. +
  1543. + init_pygobject ();
  1544. +
  1545. + my_register1 ();
  1546. +}
  1547. +
  1548. +
  1549. diff --git a/garcon/gen b/garcon/gen
  1550. new file mode 100755
  1551. index 0000000..6ad0cf8
  1552. --- /dev/null
  1553. +++ b/garcon/gen
  1554. @@ -0,0 +1,42 @@
  1555. +#!/bin/sh
  1556. +
  1557. +mod="garcon"
  1558. +lib=$mod-1
  1559. +
  1560. +inc="`pkg-config --variable=includedir $lib`"
  1561. +h2def="`pkg-config --variable=codegendir pygtk-2.0`"/h2def.py
  1562. +
  1563. +rm -f *.defs *.override
  1564. +for s in "${inc}"/$lib/$mod/*.h
  1565. +do
  1566. + if [ "${s%-private.h}" != "${s}" ]
  1567. + then
  1568. + continue
  1569. + fi
  1570. + t="${s##*/}"
  1571. +
  1572. + t="${t%.h}"
  1573. +
  1574. + if [ "${t%-menu-node}" = "$t" ]
  1575. + then
  1576. + echo $t
  1577. + defs="${t/-/_}.defs"
  1578. + defs="${defs/-/_}"
  1579. + defs="${defs/-/_}"
  1580. + defs="${defs/-/_}"
  1581. + defs="${defs/-/_}"
  1582. + # doesn't work: python -m codegen.h2def "$s" >"${defs}"
  1583. + python $h2def "$s" >"${defs}"
  1584. +
  1585. + sed "s,@module@,$mod,g" ../tmpl.override > ${defs%.defs}.override
  1586. + fi
  1587. +done
  1588. +
  1589. +for s in *.defs *.override
  1590. +do
  1591. + t="${s#garcon_}"
  1592. + if [ "$t" != "$s" ]
  1593. + then
  1594. + mv "$s" "$t"
  1595. + fi
  1596. +done
  1597. diff --git a/garcon/marshal.c b/garcon/marshal.c
  1598. new file mode 100644
  1599. index 0000000..a73f033
  1600. --- /dev/null
  1601. +++ b/garcon/marshal.c
  1602. @@ -0,0 +1,53 @@
  1603. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  1604. +
  1605. +#include <Python.h>
  1606. +
  1607. +
  1608. +
  1609. +#line 6 "marshal.override"
  1610. +#include "pygobject.h"
  1611. +#include <glib.h>
  1612. +#include <garcon/garcon.h>
  1613. +
  1614. +#line 13 "marshal.c"
  1615. +
  1616. +
  1617. +/* ---------- types from other modules ---------- */
  1618. +static PyTypeObject *_PyGObject_Type;
  1619. +#define PyGObject_Type (*_PyGObject_Type)
  1620. +
  1621. +
  1622. +/* ---------- forward type declarations ---------- */
  1623. +
  1624. +#line 23 "marshal.c"
  1625. +
  1626. +
  1627. +
  1628. +/* ----------- functions ----------- */
  1629. +
  1630. +const PyMethodDef pymarshal_functions[] = {
  1631. + { NULL, NULL, 0, NULL }
  1632. +};
  1633. +
  1634. +/* initialise stuff extension classes */
  1635. +void
  1636. +pymarshal_register_classes(PyObject *d)
  1637. +{
  1638. + PyObject *module;
  1639. +
  1640. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  1641. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  1642. + if (_PyGObject_Type == NULL) {
  1643. + PyErr_SetString(PyExc_ImportError,
  1644. + "cannot import name GObject from gobject");
  1645. + return ;
  1646. + }
  1647. + } else {
  1648. + PyErr_SetString(PyExc_ImportError,
  1649. + "could not import gobject");
  1650. + return ;
  1651. + }
  1652. +
  1653. +
  1654. +#line 53 "marshal.c"
  1655. +}
  1656. diff --git a/garcon/marshal.defs b/garcon/marshal.defs
  1657. new file mode 100644
  1658. index 0000000..d6e03e1
  1659. --- /dev/null
  1660. +++ b/garcon/marshal.defs
  1661. @@ -0,0 +1,8 @@
  1662. +;; -*- scheme -*-
  1663. +; object definitions ...
  1664. +;; Enumerations and flags ...
  1665. +
  1666. +
  1667. +;; From garcon-marshal.h
  1668. +
  1669. +
  1670. diff --git a/garcon/marshal.override b/garcon/marshal.override
  1671. new file mode 100644
  1672. index 0000000..cb67333
  1673. --- /dev/null
  1674. +++ b/garcon/marshal.override
  1675. @@ -0,0 +1,23 @@
  1676. +/* -*- Mode: C; c-basic-offset: 4 -*-
  1677. + *
  1678. + */
  1679. +%%
  1680. +headers
  1681. +#include "pygobject.h"
  1682. +#include <glib.h>
  1683. +#include <garcon/garcon.h>
  1684. +
  1685. +%%
  1686. +include
  1687. +%%
  1688. +modulename garcon
  1689. +%%
  1690. +import gobject.GObject as PyGObject_Type
  1691. +%%
  1692. +ignore
  1693. +%%
  1694. +ignore-glob
  1695. + *_get_type
  1696. +%%
  1697. +ignore-win32
  1698. +%%
  1699. diff --git a/garcon/menu.c b/garcon/menu.c
  1700. new file mode 100644
  1701. index 0000000..7940b23
  1702. --- /dev/null
  1703. +++ b/garcon/menu.c
  1704. @@ -0,0 +1,199 @@
  1705. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  1706. +
  1707. +#include <Python.h>
  1708. +
  1709. +
  1710. +
  1711. +#line 6 "menu.override"
  1712. +#include "pygobject.h"
  1713. +#include <glib.h>
  1714. +#include <garcon/garcon.h>
  1715. +
  1716. +#line 13 "menu.c"
  1717. +
  1718. +
  1719. +/* ---------- types from other modules ---------- */
  1720. +static PyTypeObject *_PyGObject_Type;
  1721. +#define PyGObject_Type (*_PyGObject_Type)
  1722. +
  1723. +
  1724. +/* ---------- forward type declarations ---------- */
  1725. +PyTypeObject G_GNUC_INTERNAL PyGarconMenu_Type;
  1726. +
  1727. +#line 24 "menu.c"
  1728. +
  1729. +
  1730. +
  1731. +/* ----------- GarconMenu ----------- */
  1732. +
  1733. +static int
  1734. +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs)
  1735. +{
  1736. + gchar buf[512];
  1737. +
  1738. + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name);
  1739. + PyErr_SetString(PyExc_NotImplementedError, buf);
  1740. + return -1;
  1741. +}
  1742. +
  1743. +static PyObject *
  1744. +_wrap_garcon_menu_add_menu(PyGObject *self, PyObject *args, PyObject *kwargs)
  1745. +{
  1746. + static char *kwlist[] = { "submenu", NULL };
  1747. + PyGObject *submenu;
  1748. +
  1749. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:Garcon.Menu.add_menu", kwlist, &PyGarconMenu_Type, &submenu))
  1750. + return NULL;
  1751. +
  1752. + garcon_menu_add_menu(GARCON_MENU(self->obj), GARCON_MENU(submenu->obj));
  1753. +
  1754. + Py_INCREF(Py_None);
  1755. + return Py_None;
  1756. +}
  1757. +
  1758. +static PyObject *
  1759. +_wrap_garcon_menu_get_menu_with_name(PyGObject *self, PyObject *args, PyObject *kwargs)
  1760. +{
  1761. + static char *kwlist[] = { "name", NULL };
  1762. + char *name;
  1763. + GarconMenu *ret;
  1764. +
  1765. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.Menu.get_menu_with_name", kwlist, &name))
  1766. + return NULL;
  1767. +
  1768. + ret = garcon_menu_get_menu_with_name(GARCON_MENU(self->obj), name);
  1769. +
  1770. + /* pygobject_new handles NULL checking */
  1771. + return pygobject_new((GObject *)ret);
  1772. +}
  1773. +
  1774. +static PyObject *
  1775. +_wrap_garcon_menu_get_parent(PyGObject *self)
  1776. +{
  1777. + GarconMenu *ret;
  1778. +
  1779. +
  1780. + ret = garcon_menu_get_parent(GARCON_MENU(self->obj));
  1781. +
  1782. + /* pygobject_new handles NULL checking */
  1783. + return pygobject_new((GObject *)ret);
  1784. +}
  1785. +
  1786. +static const PyMethodDef _PyGarconMenu_methods[] = {
  1787. + { "add_menu", (PyCFunction)_wrap_garcon_menu_add_menu, METH_VARARGS|METH_KEYWORDS,
  1788. + NULL },
  1789. + { "get_menu_with_name", (PyCFunction)_wrap_garcon_menu_get_menu_with_name, METH_VARARGS|METH_KEYWORDS,
  1790. + NULL },
  1791. + { "get_parent", (PyCFunction)_wrap_garcon_menu_get_parent, METH_NOARGS,
  1792. + NULL },
  1793. + { NULL, NULL, 0, NULL }
  1794. +};
  1795. +
  1796. +PyTypeObject G_GNUC_INTERNAL PyGarconMenu_Type = {
  1797. + PyObject_HEAD_INIT(NULL)
  1798. + 0, /* ob_size */
  1799. + "garcon.Menu", /* tp_name */
  1800. + sizeof(PyGObject), /* tp_basicsize */
  1801. + 0, /* tp_itemsize */
  1802. + /* methods */
  1803. + (destructor)0, /* tp_dealloc */
  1804. + (printfunc)0, /* tp_print */
  1805. + (getattrfunc)0, /* tp_getattr */
  1806. + (setattrfunc)0, /* tp_setattr */
  1807. + (cmpfunc)0, /* tp_compare */
  1808. + (reprfunc)0, /* tp_repr */
  1809. + (PyNumberMethods*)0, /* tp_as_number */
  1810. + (PySequenceMethods*)0, /* tp_as_sequence */
  1811. + (PyMappingMethods*)0, /* tp_as_mapping */
  1812. + (hashfunc)0, /* tp_hash */
  1813. + (ternaryfunc)0, /* tp_call */
  1814. + (reprfunc)0, /* tp_str */
  1815. + (getattrofunc)0, /* tp_getattro */
  1816. + (setattrofunc)0, /* tp_setattro */
  1817. + (PyBufferProcs*)0, /* tp_as_buffer */
  1818. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  1819. + NULL, /* Documentation string */
  1820. + (traverseproc)0, /* tp_traverse */
  1821. + (inquiry)0, /* tp_clear */
  1822. + (richcmpfunc)0, /* tp_richcompare */
  1823. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  1824. + (getiterfunc)0, /* tp_iter */
  1825. + (iternextfunc)0, /* tp_iternext */
  1826. + (struct PyMethodDef*)_PyGarconMenu_methods, /* tp_methods */
  1827. + (struct PyMemberDef*)0, /* tp_members */
  1828. + (struct PyGetSetDef*)0, /* tp_getset */
  1829. + NULL, /* tp_base */
  1830. + NULL, /* tp_dict */
  1831. + (descrgetfunc)0, /* tp_descr_get */
  1832. + (descrsetfunc)0, /* tp_descr_set */
  1833. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  1834. + (initproc)pygobject_no_constructor, /* tp_init */
  1835. + (allocfunc)0, /* tp_alloc */
  1836. + (newfunc)0, /* tp_new */
  1837. + (freefunc)0, /* tp_free */
  1838. + (inquiry)0 /* tp_is_gc */
  1839. +};
  1840. +
  1841. +
  1842. +
  1843. +/* ----------- functions ----------- */
  1844. +
  1845. +static PyObject *
  1846. +_wrap_garcon_menu_new_for_path(PyObject *self, PyObject *args, PyObject *kwargs)
  1847. +{
  1848. + static char *kwlist[] = { "filename", NULL };
  1849. + char *filename;
  1850. + GarconMenu *ret;
  1851. +
  1852. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_menu_new_for_path", kwlist, &filename))
  1853. + return NULL;
  1854. +
  1855. + ret = garcon_menu_new_for_path(filename);
  1856. +
  1857. + /* pygobject_new handles NULL checking */
  1858. + return pygobject_new((GObject *)ret);
  1859. +}
  1860. +
  1861. +static PyObject *
  1862. +_wrap_garcon_menu_new_applications(PyObject *self)
  1863. +{
  1864. + GarconMenu *ret;
  1865. +
  1866. +
  1867. + ret = garcon_menu_new_applications();
  1868. +
  1869. + /* pygobject_new handles NULL checking */
  1870. + return pygobject_new((GObject *)ret);
  1871. +}
  1872. +
  1873. +const PyMethodDef pymenu_functions[] = {
  1874. + { "garcon_menu_new_for_path", (PyCFunction)_wrap_garcon_menu_new_for_path, METH_VARARGS|METH_KEYWORDS,
  1875. + NULL },
  1876. + { "garcon_menu_new_applications", (PyCFunction)_wrap_garcon_menu_new_applications, METH_NOARGS,
  1877. + NULL },
  1878. + { NULL, NULL, 0, NULL }
  1879. +};
  1880. +
  1881. +/* initialise stuff extension classes */
  1882. +void
  1883. +pymenu_register_classes(PyObject *d)
  1884. +{
  1885. + PyObject *module;
  1886. +
  1887. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  1888. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  1889. + if (_PyGObject_Type == NULL) {
  1890. + PyErr_SetString(PyExc_ImportError,
  1891. + "cannot import name GObject from gobject");
  1892. + return ;
  1893. + }
  1894. + } else {
  1895. + PyErr_SetString(PyExc_ImportError,
  1896. + "could not import gobject");
  1897. + return ;
  1898. + }
  1899. +
  1900. +
  1901. +#line 198 "menu.c"
  1902. + pygobject_register_class(d, "GarconMenu", GARCON_TYPE_MENU, &PyGarconMenu_Type, Py_BuildValue("(O)", &PyGObject_Type));
  1903. +}
  1904. diff --git a/garcon/menu.defs b/garcon/menu.defs
  1905. new file mode 100644
  1906. index 0000000..84b7f76
  1907. --- /dev/null
  1908. +++ b/garcon/menu.defs
  1909. @@ -0,0 +1,112 @@
  1910. +;; -*- scheme -*-
  1911. +; object definitions ...
  1912. +(define-object Menu
  1913. + (in-module "Garcon")
  1914. + (parent "GObject")
  1915. + (c-name "GarconMenu")
  1916. + (gtype-id "GARCON_TYPE_MENU")
  1917. +)
  1918. +
  1919. +;; Enumerations and flags ...
  1920. +
  1921. +
  1922. +;; From garcon-menu.h
  1923. +
  1924. +(define-function garcon_menu_get_type
  1925. + (c-name "garcon_menu_get_type")
  1926. + (return-type "GType")
  1927. +)
  1928. +
  1929. +(define-function garcon_menu_new
  1930. + (c-name "garcon_menu_new")
  1931. + (is-constructor-of "GarconMenu")
  1932. + (return-type "GarconMenu*")
  1933. + (parameters
  1934. + '("GFile*" "file")
  1935. + )
  1936. +)
  1937. +
  1938. +(define-function garcon_menu_new_for_path
  1939. + (c-name "garcon_menu_new_for_path")
  1940. + (return-type "GarconMenu*")
  1941. + (parameters
  1942. + '("const-gchar*" "filename")
  1943. + )
  1944. +)
  1945. +
  1946. +(define-function garcon_menu_new_applications
  1947. + (c-name "garcon_menu_new_applications")
  1948. + (return-type "GarconMenu*")
  1949. +)
  1950. +
  1951. +(define-method load
  1952. + (of-object "GarconMenu")
  1953. + (c-name "garcon_menu_load")
  1954. + (return-type "gboolean")
  1955. + (parameters
  1956. + '("GCancellable*" "cancellable")
  1957. + '("GError**" "error")
  1958. + )
  1959. +)
  1960. +
  1961. +(define-method get_file
  1962. + (of-object "GarconMenu")
  1963. + (c-name "garcon_menu_get_file")
  1964. + (return-type "GFile*")
  1965. +)
  1966. +
  1967. +(define-method get_directory
  1968. + (of-object "GarconMenu")
  1969. + (c-name "garcon_menu_get_directory")
  1970. + (return-type "GarconMenuDirectory*")
  1971. +)
  1972. +
  1973. +(define-method get_menus
  1974. + (of-object "GarconMenu")
  1975. + (c-name "garcon_menu_get_menus")
  1976. + (return-type "GList*")
  1977. +)
  1978. +
  1979. +(define-method add_menu
  1980. + (of-object "GarconMenu")
  1981. + (c-name "garcon_menu_add_menu")
  1982. + (return-type "none")
  1983. + (parameters
  1984. + '("GarconMenu*" "submenu")
  1985. + )
  1986. +)
  1987. +
  1988. +(define-method get_menu_with_name
  1989. + (of-object "GarconMenu")
  1990. + (c-name "garcon_menu_get_menu_with_name")
  1991. + (return-type "GarconMenu*")
  1992. + (parameters
  1993. + '("const-gchar*" "name")
  1994. + )
  1995. +)
  1996. +
  1997. +(define-method get_parent
  1998. + (of-object "GarconMenu")
  1999. + (c-name "garcon_menu_get_parent")
  2000. + (return-type "GarconMenu*")
  2001. +)
  2002. +
  2003. +(define-method get_item_pool
  2004. + (of-object "GarconMenu")
  2005. + (c-name "garcon_menu_get_item_pool")
  2006. + (return-type "GarconMenuItemPool*")
  2007. +)
  2008. +
  2009. +(define-method get_items
  2010. + (of-object "GarconMenu")
  2011. + (c-name "garcon_menu_get_items")
  2012. + (return-type "GList*")
  2013. +)
  2014. +
  2015. +(define-method get_elements
  2016. + (of-object "GarconMenu")
  2017. + (c-name "garcon_menu_get_elements")
  2018. + (return-type "GList*")
  2019. +)
  2020. +
  2021. +
  2022. diff --git a/garcon/menu.override b/garcon/menu.override
  2023. new file mode 100644
  2024. index 0000000..cb67333
  2025. --- /dev/null
  2026. +++ b/garcon/menu.override
  2027. @@ -0,0 +1,23 @@
  2028. +/* -*- Mode: C; c-basic-offset: 4 -*-
  2029. + *
  2030. + */
  2031. +%%
  2032. +headers
  2033. +#include "pygobject.h"
  2034. +#include <glib.h>
  2035. +#include <garcon/garcon.h>
  2036. +
  2037. +%%
  2038. +include
  2039. +%%
  2040. +modulename garcon
  2041. +%%
  2042. +import gobject.GObject as PyGObject_Type
  2043. +%%
  2044. +ignore
  2045. +%%
  2046. +ignore-glob
  2047. + *_get_type
  2048. +%%
  2049. +ignore-win32
  2050. +%%
  2051. diff --git a/garcon/menu_directory.c b/garcon/menu_directory.c
  2052. new file mode 100644
  2053. index 0000000..999ad08
  2054. --- /dev/null
  2055. +++ b/garcon/menu_directory.c
  2056. @@ -0,0 +1,308 @@
  2057. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  2058. +
  2059. +#include <Python.h>
  2060. +
  2061. +
  2062. +
  2063. +#line 6 "menu_directory.override"
  2064. +#include "pygobject.h"
  2065. +#include <glib.h>
  2066. +#include <garcon/garcon.h>
  2067. +
  2068. +#line 13 "menu_directory.c"
  2069. +
  2070. +
  2071. +/* ---------- types from other modules ---------- */
  2072. +static PyTypeObject *_PyGObject_Type;
  2073. +#define PyGObject_Type (*_PyGObject_Type)
  2074. +
  2075. +
  2076. +/* ---------- forward type declarations ---------- */
  2077. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuDirectory_Type;
  2078. +
  2079. +#line 24 "menu_directory.c"
  2080. +
  2081. +
  2082. +
  2083. +/* ----------- GarconMenuDirectory ----------- */
  2084. +
  2085. +static int
  2086. +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs)
  2087. +{
  2088. + gchar buf[512];
  2089. +
  2090. + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name);
  2091. + PyErr_SetString(PyExc_NotImplementedError, buf);
  2092. + return -1;
  2093. +}
  2094. +
  2095. +static PyObject *
  2096. +_wrap_garcon_menu_directory_get_name(PyGObject *self)
  2097. +{
  2098. + const gchar *ret;
  2099. +
  2100. +
  2101. + ret = garcon_menu_directory_get_name(GARCON_MENU_DIRECTORY(self->obj));
  2102. +
  2103. + if (ret)
  2104. + return PyString_FromString(ret);
  2105. + Py_INCREF(Py_None);
  2106. + return Py_None;
  2107. +}
  2108. +
  2109. +static PyObject *
  2110. +_wrap_garcon_menu_directory_set_name(PyGObject *self, PyObject *args, PyObject *kwargs)
  2111. +{
  2112. + static char *kwlist[] = { "name", NULL };
  2113. + char *name;
  2114. +
  2115. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuDirectory.set_name", kwlist, &name))
  2116. + return NULL;
  2117. +
  2118. + garcon_menu_directory_set_name(GARCON_MENU_DIRECTORY(self->obj), name);
  2119. +
  2120. + Py_INCREF(Py_None);
  2121. + return Py_None;
  2122. +}
  2123. +
  2124. +static PyObject *
  2125. +_wrap_garcon_menu_directory_get_comment(PyGObject *self)
  2126. +{
  2127. + const gchar *ret;
  2128. +
  2129. +
  2130. + ret = garcon_menu_directory_get_comment(GARCON_MENU_DIRECTORY(self->obj));
  2131. +
  2132. + if (ret)
  2133. + return PyString_FromString(ret);
  2134. + Py_INCREF(Py_None);
  2135. + return Py_None;
  2136. +}
  2137. +
  2138. +static PyObject *
  2139. +_wrap_garcon_menu_directory_set_comment(PyGObject *self, PyObject *args, PyObject *kwargs)
  2140. +{
  2141. + static char *kwlist[] = { "comment", NULL };
  2142. + char *comment;
  2143. +
  2144. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuDirectory.set_comment", kwlist, &comment))
  2145. + return NULL;
  2146. +
  2147. + garcon_menu_directory_set_comment(GARCON_MENU_DIRECTORY(self->obj), comment);
  2148. +
  2149. + Py_INCREF(Py_None);
  2150. + return Py_None;
  2151. +}
  2152. +
  2153. +static PyObject *
  2154. +_wrap_garcon_menu_directory_get_icon_name(PyGObject *self)
  2155. +{
  2156. + const gchar *ret;
  2157. +
  2158. +
  2159. + ret = garcon_menu_directory_get_icon_name(GARCON_MENU_DIRECTORY(self->obj));
  2160. +
  2161. + if (ret)
  2162. + return PyString_FromString(ret);
  2163. + Py_INCREF(Py_None);
  2164. + return Py_None;
  2165. +}
  2166. +
  2167. +static PyObject *
  2168. +_wrap_garcon_menu_directory_set_icon_name(PyGObject *self, PyObject *args, PyObject *kwargs)
  2169. +{
  2170. + static char *kwlist[] = { "icon", NULL };
  2171. + char *icon;
  2172. +
  2173. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuDirectory.set_icon_name", kwlist, &icon))
  2174. + return NULL;
  2175. +
  2176. + garcon_menu_directory_set_icon_name(GARCON_MENU_DIRECTORY(self->obj), icon);
  2177. +
  2178. + Py_INCREF(Py_None);
  2179. + return Py_None;
  2180. +}
  2181. +
  2182. +static PyObject *
  2183. +_wrap_garcon_menu_directory_get_no_display(PyGObject *self)
  2184. +{
  2185. + int ret;
  2186. +
  2187. +
  2188. + ret = garcon_menu_directory_get_no_display(GARCON_MENU_DIRECTORY(self->obj));
  2189. +
  2190. + return PyBool_FromLong(ret);
  2191. +
  2192. +}
  2193. +
  2194. +static PyObject *
  2195. +_wrap_garcon_menu_directory_set_no_display(PyGObject *self, PyObject *args, PyObject *kwargs)
  2196. +{
  2197. + static char *kwlist[] = { "no_display", NULL };
  2198. + int no_display;
  2199. +
  2200. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuDirectory.set_no_display", kwlist, &no_display))
  2201. + return NULL;
  2202. +
  2203. + garcon_menu_directory_set_no_display(GARCON_MENU_DIRECTORY(self->obj), no_display);
  2204. +
  2205. + Py_INCREF(Py_None);
  2206. + return Py_None;
  2207. +}
  2208. +
  2209. +static PyObject *
  2210. +_wrap_garcon_menu_directory_get_hidden(PyGObject *self)
  2211. +{
  2212. + int ret;
  2213. +
  2214. +
  2215. + ret = garcon_menu_directory_get_hidden(GARCON_MENU_DIRECTORY(self->obj));
  2216. +
  2217. + return PyBool_FromLong(ret);
  2218. +
  2219. +}
  2220. +
  2221. +static PyObject *
  2222. +_wrap_garcon_menu_directory_get_show_in_environment(PyGObject *self)
  2223. +{
  2224. + int ret;
  2225. +
  2226. +
  2227. + ret = garcon_menu_directory_get_show_in_environment(GARCON_MENU_DIRECTORY(self->obj));
  2228. +
  2229. + return PyBool_FromLong(ret);
  2230. +
  2231. +}
  2232. +
  2233. +static PyObject *
  2234. +_wrap_garcon_menu_directory_get_visible(PyGObject *self)
  2235. +{
  2236. + int ret;
  2237. +
  2238. +
  2239. + ret = garcon_menu_directory_get_visible(GARCON_MENU_DIRECTORY(self->obj));
  2240. +
  2241. + return PyBool_FromLong(ret);
  2242. +
  2243. +}
  2244. +
  2245. +static PyObject *
  2246. +_wrap_garcon_menu_directory_equal(PyGObject *self, PyObject *args, PyObject *kwargs)
  2247. +{
  2248. + static char *kwlist[] = { "other", NULL };
  2249. + PyGObject *other;
  2250. + int ret;
  2251. +
  2252. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:Garcon.MenuDirectory.equal", kwlist, &PyGarconMenuDirectory_Type, &other))
  2253. + return NULL;
  2254. +
  2255. + ret = garcon_menu_directory_equal(GARCON_MENU_DIRECTORY(self->obj), GARCON_MENU_DIRECTORY(other->obj));
  2256. +
  2257. + return PyBool_FromLong(ret);
  2258. +
  2259. +}
  2260. +
  2261. +static const PyMethodDef _PyGarconMenuDirectory_methods[] = {
  2262. + { "get_name", (PyCFunction)_wrap_garcon_menu_directory_get_name, METH_NOARGS,
  2263. + NULL },
  2264. + { "set_name", (PyCFunction)_wrap_garcon_menu_directory_set_name, METH_VARARGS|METH_KEYWORDS,
  2265. + NULL },
  2266. + { "get_comment", (PyCFunction)_wrap_garcon_menu_directory_get_comment, METH_NOARGS,
  2267. + NULL },
  2268. + { "set_comment", (PyCFunction)_wrap_garcon_menu_directory_set_comment, METH_VARARGS|METH_KEYWORDS,
  2269. + NULL },
  2270. + { "get_icon_name", (PyCFunction)_wrap_garcon_menu_directory_get_icon_name, METH_NOARGS,
  2271. + NULL },
  2272. + { "set_icon_name", (PyCFunction)_wrap_garcon_menu_directory_set_icon_name, METH_VARARGS|METH_KEYWORDS,
  2273. + NULL },
  2274. + { "get_no_display", (PyCFunction)_wrap_garcon_menu_directory_get_no_display, METH_NOARGS,
  2275. + NULL },
  2276. + { "set_no_display", (PyCFunction)_wrap_garcon_menu_directory_set_no_display, METH_VARARGS|METH_KEYWORDS,
  2277. + NULL },
  2278. + { "get_hidden", (PyCFunction)_wrap_garcon_menu_directory_get_hidden, METH_NOARGS,
  2279. + NULL },
  2280. + { "get_show_in_environment", (PyCFunction)_wrap_garcon_menu_directory_get_show_in_environment, METH_NOARGS,
  2281. + NULL },
  2282. + { "get_visible", (PyCFunction)_wrap_garcon_menu_directory_get_visible, METH_NOARGS,
  2283. + NULL },
  2284. + { "equal", (PyCFunction)_wrap_garcon_menu_directory_equal, METH_VARARGS|METH_KEYWORDS,
  2285. + NULL },
  2286. + { NULL, NULL, 0, NULL }
  2287. +};
  2288. +
  2289. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuDirectory_Type = {
  2290. + PyObject_HEAD_INIT(NULL)
  2291. + 0, /* ob_size */
  2292. + "garcon.MenuDirectory", /* tp_name */
  2293. + sizeof(PyGObject), /* tp_basicsize */
  2294. + 0, /* tp_itemsize */
  2295. + /* methods */
  2296. + (destructor)0, /* tp_dealloc */
  2297. + (printfunc)0, /* tp_print */
  2298. + (getattrfunc)0, /* tp_getattr */
  2299. + (setattrfunc)0, /* tp_setattr */
  2300. + (cmpfunc)0, /* tp_compare */
  2301. + (reprfunc)0, /* tp_repr */
  2302. + (PyNumberMethods*)0, /* tp_as_number */
  2303. + (PySequenceMethods*)0, /* tp_as_sequence */
  2304. + (PyMappingMethods*)0, /* tp_as_mapping */
  2305. + (hashfunc)0, /* tp_hash */
  2306. + (ternaryfunc)0, /* tp_call */
  2307. + (reprfunc)0, /* tp_str */
  2308. + (getattrofunc)0, /* tp_getattro */
  2309. + (setattrofunc)0, /* tp_setattro */
  2310. + (PyBufferProcs*)0, /* tp_as_buffer */
  2311. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  2312. + NULL, /* Documentation string */
  2313. + (traverseproc)0, /* tp_traverse */
  2314. + (inquiry)0, /* tp_clear */
  2315. + (richcmpfunc)0, /* tp_richcompare */
  2316. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  2317. + (getiterfunc)0, /* tp_iter */
  2318. + (iternextfunc)0, /* tp_iternext */
  2319. + (struct PyMethodDef*)_PyGarconMenuDirectory_methods, /* tp_methods */
  2320. + (struct PyMemberDef*)0, /* tp_members */
  2321. + (struct PyGetSetDef*)0, /* tp_getset */
  2322. + NULL, /* tp_base */
  2323. + NULL, /* tp_dict */
  2324. + (descrgetfunc)0, /* tp_descr_get */
  2325. + (descrsetfunc)0, /* tp_descr_set */
  2326. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  2327. + (initproc)pygobject_no_constructor, /* tp_init */
  2328. + (allocfunc)0, /* tp_alloc */
  2329. + (newfunc)0, /* tp_new */
  2330. + (freefunc)0, /* tp_free */
  2331. + (inquiry)0 /* tp_is_gc */
  2332. +};
  2333. +
  2334. +
  2335. +
  2336. +/* ----------- functions ----------- */
  2337. +
  2338. +const PyMethodDef pymenu_directory_functions[] = {
  2339. + { NULL, NULL, 0, NULL }
  2340. +};
  2341. +
  2342. +/* initialise stuff extension classes */
  2343. +void
  2344. +pymenu_directory_register_classes(PyObject *d)
  2345. +{
  2346. + PyObject *module;
  2347. +
  2348. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  2349. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  2350. + if (_PyGObject_Type == NULL) {
  2351. + PyErr_SetString(PyExc_ImportError,
  2352. + "cannot import name GObject from gobject");
  2353. + return ;
  2354. + }
  2355. + } else {
  2356. + PyErr_SetString(PyExc_ImportError,
  2357. + "could not import gobject");
  2358. + return ;
  2359. + }
  2360. +
  2361. +
  2362. +#line 307 "menu_directory.c"
  2363. + pygobject_register_class(d, "GarconMenuDirectory", GARCON_TYPE_MENU_DIRECTORY, &PyGarconMenuDirectory_Type, Py_BuildValue("(O)", &PyGObject_Type));
  2364. +}
  2365. diff --git a/garcon/menu_directory.defs b/garcon/menu_directory.defs
  2366. new file mode 100644
  2367. index 0000000..1ca4d2b
  2368. --- /dev/null
  2369. +++ b/garcon/menu_directory.defs
  2370. @@ -0,0 +1,122 @@
  2371. +;; -*- scheme -*-
  2372. +; object definitions ...
  2373. +(define-object MenuDirectory
  2374. + (in-module "Garcon")
  2375. + (parent "GObject")
  2376. + (c-name "GarconMenuDirectory")
  2377. + (gtype-id "GARCON_TYPE_MENU_DIRECTORY")
  2378. +)
  2379. +
  2380. +;; Enumerations and flags ...
  2381. +
  2382. +
  2383. +;; From garcon-menu-directory.h
  2384. +
  2385. +(define-function garcon_menu_directory_get_type
  2386. + (c-name "garcon_menu_directory_get_type")
  2387. + (return-type "GType")
  2388. +)
  2389. +
  2390. +(define-function garcon_menu_directory_new
  2391. + (c-name "garcon_menu_directory_new")
  2392. + (is-constructor-of "GarconMenuDirectory")
  2393. + (return-type "GarconMenuDirectory*")
  2394. + (parameters
  2395. + '("GFile*" "file")
  2396. + )
  2397. +)
  2398. +
  2399. +(define-method get_file
  2400. + (of-object "GarconMenuDirectory")
  2401. + (c-name "garcon_menu_directory_get_file")
  2402. + (return-type "GFile*")
  2403. +)
  2404. +
  2405. +(define-method get_name
  2406. + (of-object "GarconMenuDirectory")
  2407. + (c-name "garcon_menu_directory_get_name")
  2408. + (return-type "const-gchar*")
  2409. +)
  2410. +
  2411. +(define-method set_name
  2412. + (of-object "GarconMenuDirectory")
  2413. + (c-name "garcon_menu_directory_set_name")
  2414. + (return-type "none")
  2415. + (parameters
  2416. + '("const-gchar*" "name")
  2417. + )
  2418. +)
  2419. +
  2420. +(define-method get_comment
  2421. + (of-object "GarconMenuDirectory")
  2422. + (c-name "garcon_menu_directory_get_comment")
  2423. + (return-type "const-gchar*")
  2424. +)
  2425. +
  2426. +(define-method set_comment
  2427. + (of-object "GarconMenuDirectory")
  2428. + (c-name "garcon_menu_directory_set_comment")
  2429. + (return-type "none")
  2430. + (parameters
  2431. + '("const-gchar*" "comment")
  2432. + )
  2433. +)
  2434. +
  2435. +(define-method get_icon_name
  2436. + (of-object "GarconMenuDirectory")
  2437. + (c-name "garcon_menu_directory_get_icon_name")
  2438. + (return-type "const-gchar*")
  2439. +)
  2440. +
  2441. +(define-method set_icon_name
  2442. + (of-object "GarconMenuDirectory")
  2443. + (c-name "garcon_menu_directory_set_icon_name")
  2444. + (return-type "none")
  2445. + (parameters
  2446. + '("const-gchar*" "icon")
  2447. + )
  2448. +)
  2449. +
  2450. +(define-method get_no_display
  2451. + (of-object "GarconMenuDirectory")
  2452. + (c-name "garcon_menu_directory_get_no_display")
  2453. + (return-type "gboolean")
  2454. +)
  2455. +
  2456. +(define-method set_no_display
  2457. + (of-object "GarconMenuDirectory")
  2458. + (c-name "garcon_menu_directory_set_no_display")
  2459. + (return-type "none")
  2460. + (parameters
  2461. + '("gboolean" "no_display")
  2462. + )
  2463. +)
  2464. +
  2465. +(define-method get_hidden
  2466. + (of-object "GarconMenuDirectory")
  2467. + (c-name "garcon_menu_directory_get_hidden")
  2468. + (return-type "gboolean")
  2469. +)
  2470. +
  2471. +(define-method get_show_in_environment
  2472. + (of-object "GarconMenuDirectory")
  2473. + (c-name "garcon_menu_directory_get_show_in_environment")
  2474. + (return-type "gboolean")
  2475. +)
  2476. +
  2477. +(define-method get_visible
  2478. + (of-object "GarconMenuDirectory")
  2479. + (c-name "garcon_menu_directory_get_visible")
  2480. + (return-type "gboolean")
  2481. +)
  2482. +
  2483. +(define-method equal
  2484. + (of-object "GarconMenuDirectory")
  2485. + (c-name "garcon_menu_directory_equal")
  2486. + (return-type "gboolean")
  2487. + (parameters
  2488. + '("GarconMenuDirectory*" "other")
  2489. + )
  2490. +)
  2491. +
  2492. +
  2493. diff --git a/garcon/menu_directory.override b/garcon/menu_directory.override
  2494. new file mode 100644
  2495. index 0000000..cb67333
  2496. --- /dev/null
  2497. +++ b/garcon/menu_directory.override
  2498. @@ -0,0 +1,23 @@
  2499. +/* -*- Mode: C; c-basic-offset: 4 -*-
  2500. + *
  2501. + */
  2502. +%%
  2503. +headers
  2504. +#include "pygobject.h"
  2505. +#include <glib.h>
  2506. +#include <garcon/garcon.h>
  2507. +
  2508. +%%
  2509. +include
  2510. +%%
  2511. +modulename garcon
  2512. +%%
  2513. +import gobject.GObject as PyGObject_Type
  2514. +%%
  2515. +ignore
  2516. +%%
  2517. +ignore-glob
  2518. + *_get_type
  2519. +%%
  2520. +ignore-win32
  2521. +%%
  2522. diff --git a/garcon/menu_element.c b/garcon/menu_element.c
  2523. new file mode 100644
  2524. index 0000000..18e38f7
  2525. --- /dev/null
  2526. +++ b/garcon/menu_element.c
  2527. @@ -0,0 +1,216 @@
  2528. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  2529. +
  2530. +#include <Python.h>
  2531. +
  2532. +
  2533. +
  2534. +#line 6 "menu_element.override"
  2535. +#include "pygobject.h"
  2536. +#include <glib.h>
  2537. +#include <garcon/garcon.h>
  2538. +
  2539. +#line 13 "menu_element.c"
  2540. +
  2541. +
  2542. +/* ---------- types from other modules ---------- */
  2543. +static PyTypeObject *_PyGObject_Type;
  2544. +#define PyGObject_Type (*_PyGObject_Type)
  2545. +
  2546. +
  2547. +/* ---------- forward type declarations ---------- */
  2548. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuElement_Type;
  2549. +
  2550. +#line 24 "menu_element.c"
  2551. +
  2552. +
  2553. +
  2554. +/* ----------- GarconMenuElement ----------- */
  2555. +
  2556. +static PyObject *
  2557. +_wrap_garcon_menu_element_get_name(PyGObject *self)
  2558. +{
  2559. + const gchar *ret;
  2560. +
  2561. +
  2562. + ret = garcon_menu_element_get_name(GARCON_MENU_ELEMENT(self->obj));
  2563. +
  2564. + if (ret)
  2565. + return PyString_FromString(ret);
  2566. + Py_INCREF(Py_None);
  2567. + return Py_None;
  2568. +}
  2569. +
  2570. +static PyObject *
  2571. +_wrap_garcon_menu_element_get_comment(PyGObject *self)
  2572. +{
  2573. + const gchar *ret;
  2574. +
  2575. +
  2576. + ret = garcon_menu_element_get_comment(GARCON_MENU_ELEMENT(self->obj));
  2577. +
  2578. + if (ret)
  2579. + return PyString_FromString(ret);
  2580. + Py_INCREF(Py_None);
  2581. + return Py_None;
  2582. +}
  2583. +
  2584. +static PyObject *
  2585. +_wrap_garcon_menu_element_get_icon_name(PyGObject *self)
  2586. +{
  2587. + const gchar *ret;
  2588. +
  2589. +
  2590. + ret = garcon_menu_element_get_icon_name(GARCON_MENU_ELEMENT(self->obj));
  2591. +
  2592. + if (ret)
  2593. + return PyString_FromString(ret);
  2594. + Py_INCREF(Py_None);
  2595. + return Py_None;
  2596. +}
  2597. +
  2598. +static PyObject *
  2599. +_wrap_garcon_menu_element_get_visible(PyGObject *self)
  2600. +{
  2601. + int ret;
  2602. +
  2603. +
  2604. + ret = garcon_menu_element_get_visible(GARCON_MENU_ELEMENT(self->obj));
  2605. +
  2606. + return PyBool_FromLong(ret);
  2607. +
  2608. +}
  2609. +
  2610. +static PyObject *
  2611. +_wrap_garcon_menu_element_get_show_in_environment(PyGObject *self)
  2612. +{
  2613. + int ret;
  2614. +
  2615. +
  2616. + ret = garcon_menu_element_get_show_in_environment(GARCON_MENU_ELEMENT(self->obj));
  2617. +
  2618. + return PyBool_FromLong(ret);
  2619. +
  2620. +}
  2621. +
  2622. +static PyObject *
  2623. +_wrap_garcon_menu_element_get_no_display(PyGObject *self)
  2624. +{
  2625. + int ret;
  2626. +
  2627. +
  2628. + ret = garcon_menu_element_get_no_display(GARCON_MENU_ELEMENT(self->obj));
  2629. +
  2630. + return PyBool_FromLong(ret);
  2631. +
  2632. +}
  2633. +
  2634. +static PyObject *
  2635. +_wrap_garcon_menu_element_equal(PyGObject *self, PyObject *args, PyObject *kwargs)
  2636. +{
  2637. + static char *kwlist[] = { "b", NULL };
  2638. + PyGObject *b;
  2639. + int ret;
  2640. +
  2641. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:Garcon.MenuElement.equal", kwlist, &PyGarconMenuElement_Type, &b))
  2642. + return NULL;
  2643. +
  2644. + ret = garcon_menu_element_equal(GARCON_MENU_ELEMENT(self->obj), GARCON_MENU_ELEMENT(b->obj));
  2645. +
  2646. + return PyBool_FromLong(ret);
  2647. +
  2648. +}
  2649. +
  2650. +static const PyMethodDef _PyGarconMenuElement_methods[] = {
  2651. + { "get_name", (PyCFunction)_wrap_garcon_menu_element_get_name, METH_NOARGS,
  2652. + NULL },
  2653. + { "get_comment", (PyCFunction)_wrap_garcon_menu_element_get_comment, METH_NOARGS,
  2654. + NULL },
  2655. + { "get_icon_name", (PyCFunction)_wrap_garcon_menu_element_get_icon_name, METH_NOARGS,
  2656. + NULL },
  2657. + { "get_visible", (PyCFunction)_wrap_garcon_menu_element_get_visible, METH_NOARGS,
  2658. + NULL },
  2659. + { "get_show_in_environment", (PyCFunction)_wrap_garcon_menu_element_get_show_in_environment, METH_NOARGS,
  2660. + NULL },
  2661. + { "get_no_display", (PyCFunction)_wrap_garcon_menu_element_get_no_display, METH_NOARGS,
  2662. + NULL },
  2663. + { "equal", (PyCFunction)_wrap_garcon_menu_element_equal, METH_VARARGS|METH_KEYWORDS,
  2664. + NULL },
  2665. + { NULL, NULL, 0, NULL }
  2666. +};
  2667. +
  2668. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuElement_Type = {
  2669. + PyObject_HEAD_INIT(NULL)
  2670. + 0, /* ob_size */
  2671. + "garcon.MenuElement", /* tp_name */
  2672. + sizeof(PyGObject), /* tp_basicsize */
  2673. + 0, /* tp_itemsize */
  2674. + /* methods */
  2675. + (destructor)0, /* tp_dealloc */
  2676. + (printfunc)0, /* tp_print */
  2677. + (getattrfunc)0, /* tp_getattr */
  2678. + (setattrfunc)0, /* tp_setattr */
  2679. + (cmpfunc)0, /* tp_compare */
  2680. + (reprfunc)0, /* tp_repr */
  2681. + (PyNumberMethods*)0, /* tp_as_number */
  2682. + (PySequenceMethods*)0, /* tp_as_sequence */
  2683. + (PyMappingMethods*)0, /* tp_as_mapping */
  2684. + (hashfunc)0, /* tp_hash */
  2685. + (ternaryfunc)0, /* tp_call */
  2686. + (reprfunc)0, /* tp_str */
  2687. + (getattrofunc)0, /* tp_getattro */
  2688. + (setattrofunc)0, /* tp_setattro */
  2689. + (PyBufferProcs*)0, /* tp_as_buffer */
  2690. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  2691. + NULL, /* Documentation string */
  2692. + (traverseproc)0, /* tp_traverse */
  2693. + (inquiry)0, /* tp_clear */
  2694. + (richcmpfunc)0, /* tp_richcompare */
  2695. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  2696. + (getiterfunc)0, /* tp_iter */
  2697. + (iternextfunc)0, /* tp_iternext */
  2698. + (struct PyMethodDef*)_PyGarconMenuElement_methods, /* tp_methods */
  2699. + (struct PyMemberDef*)0, /* tp_members */
  2700. + (struct PyGetSetDef*)0, /* tp_getset */
  2701. + NULL, /* tp_base */
  2702. + NULL, /* tp_dict */
  2703. + (descrgetfunc)0, /* tp_descr_get */
  2704. + (descrsetfunc)0, /* tp_descr_set */
  2705. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  2706. + (initproc)0, /* tp_init */
  2707. + (allocfunc)0, /* tp_alloc */
  2708. + (newfunc)0, /* tp_new */
  2709. + (freefunc)0, /* tp_free */
  2710. + (inquiry)0 /* tp_is_gc */
  2711. +};
  2712. +
  2713. +
  2714. +
  2715. +/* ----------- functions ----------- */
  2716. +
  2717. +const PyMethodDef pymenu_element_functions[] = {
  2718. + { NULL, NULL, 0, NULL }
  2719. +};
  2720. +
  2721. +/* initialise stuff extension classes */
  2722. +void
  2723. +pymenu_element_register_classes(PyObject *d)
  2724. +{
  2725. + PyObject *module;
  2726. +
  2727. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  2728. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  2729. + if (_PyGObject_Type == NULL) {
  2730. + PyErr_SetString(PyExc_ImportError,
  2731. + "cannot import name GObject from gobject");
  2732. + return ;
  2733. + }
  2734. + } else {
  2735. + PyErr_SetString(PyExc_ImportError,
  2736. + "could not import gobject");
  2737. + return ;
  2738. + }
  2739. +
  2740. +
  2741. +#line 215 "menu_element.c"
  2742. + pygobject_register_class(d, "GarconMenuElement", GARCON_TYPE_MENU_ELEMENT, &PyGarconMenuElement_Type, NULL);
  2743. +}
  2744. diff --git a/garcon/menu_element.defs b/garcon/menu_element.defs
  2745. new file mode 100644
  2746. index 0000000..60128e5
  2747. --- /dev/null
  2748. +++ b/garcon/menu_element.defs
  2749. @@ -0,0 +1,64 @@
  2750. +;; -*- scheme -*-
  2751. +; object definitions ...
  2752. +(define-object MenuElement
  2753. + (in-module "Garcon")
  2754. + (c-name "GarconMenuElement")
  2755. + (gtype-id "GARCON_TYPE_MENU_ELEMENT")
  2756. +)
  2757. +
  2758. +;; Enumerations and flags ...
  2759. +
  2760. +
  2761. +;; From garcon-menu-element.h
  2762. +
  2763. +(define-function garcon_menu_element_get_type
  2764. + (c-name "garcon_menu_element_get_type")
  2765. + (return-type "GType")
  2766. +)
  2767. +
  2768. +(define-method get_name
  2769. + (of-object "GarconMenuElement")
  2770. + (c-name "garcon_menu_element_get_name")
  2771. + (return-type "const-gchar*")
  2772. +)
  2773. +
  2774. +(define-method get_comment
  2775. + (of-object "GarconMenuElement")
  2776. + (c-name "garcon_menu_element_get_comment")
  2777. + (return-type "const-gchar*")
  2778. +)
  2779. +
  2780. +(define-method get_icon_name
  2781. + (of-object "GarconMenuElement")
  2782. + (c-name "garcon_menu_element_get_icon_name")
  2783. + (return-type "const-gchar*")
  2784. +)
  2785. +
  2786. +(define-method get_visible
  2787. + (of-object "GarconMenuElement")
  2788. + (c-name "garcon_menu_element_get_visible")
  2789. + (return-type "gboolean")
  2790. +)
  2791. +
  2792. +(define-method get_show_in_environment
  2793. + (of-object "GarconMenuElement")
  2794. + (c-name "garcon_menu_element_get_show_in_environment")
  2795. + (return-type "gboolean")
  2796. +)
  2797. +
  2798. +(define-method get_no_display
  2799. + (of-object "GarconMenuElement")
  2800. + (c-name "garcon_menu_element_get_no_display")
  2801. + (return-type "gboolean")
  2802. +)
  2803. +
  2804. +(define-method equal
  2805. + (of-object "GarconMenuElement")
  2806. + (c-name "garcon_menu_element_equal")
  2807. + (return-type "gboolean")
  2808. + (parameters
  2809. + '("GarconMenuElement*" "b")
  2810. + )
  2811. +)
  2812. +
  2813. +
  2814. diff --git a/garcon/menu_element.override b/garcon/menu_element.override
  2815. new file mode 100644
  2816. index 0000000..cb67333
  2817. --- /dev/null
  2818. +++ b/garcon/menu_element.override
  2819. @@ -0,0 +1,23 @@
  2820. +/* -*- Mode: C; c-basic-offset: 4 -*-
  2821. + *
  2822. + */
  2823. +%%
  2824. +headers
  2825. +#include "pygobject.h"
  2826. +#include <glib.h>
  2827. +#include <garcon/garcon.h>
  2828. +
  2829. +%%
  2830. +include
  2831. +%%
  2832. +modulename garcon
  2833. +%%
  2834. +import gobject.GObject as PyGObject_Type
  2835. +%%
  2836. +ignore
  2837. +%%
  2838. +ignore-glob
  2839. + *_get_type
  2840. +%%
  2841. +ignore-win32
  2842. +%%
  2843. diff --git a/garcon/menu_item.c b/garcon/menu_item.c
  2844. new file mode 100644
  2845. index 0000000..2a7e570
  2846. --- /dev/null
  2847. +++ b/garcon/menu_item.c
  2848. @@ -0,0 +1,668 @@
  2849. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  2850. +
  2851. +#include <Python.h>
  2852. +
  2853. +
  2854. +
  2855. +#line 6 "menu_item.override"
  2856. +#include "pygobject.h"
  2857. +#include <glib.h>
  2858. +#include <garcon/garcon.h>
  2859. +
  2860. +#line 13 "menu_item.c"
  2861. +
  2862. +
  2863. +/* ---------- types from other modules ---------- */
  2864. +static PyTypeObject *_PyGObject_Type;
  2865. +#define PyGObject_Type (*_PyGObject_Type)
  2866. +
  2867. +
  2868. +/* ---------- forward type declarations ---------- */
  2869. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItem_Type;
  2870. +
  2871. +#line 24 "menu_item.c"
  2872. +
  2873. +
  2874. +
  2875. +/* ----------- GarconMenuItem ----------- */
  2876. +
  2877. +static int
  2878. +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs)
  2879. +{
  2880. + gchar buf[512];
  2881. +
  2882. + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name);
  2883. + PyErr_SetString(PyExc_NotImplementedError, buf);
  2884. + return -1;
  2885. +}
  2886. +
  2887. +static PyObject *
  2888. +_wrap_garcon_menu_item_get_uri(PyGObject *self)
  2889. +{
  2890. + gchar *ret;
  2891. +
  2892. +
  2893. + ret = garcon_menu_item_get_uri(GARCON_MENU_ITEM(self->obj));
  2894. +
  2895. + if (ret) {
  2896. + PyObject *py_ret = PyString_FromString(ret);
  2897. + g_free(ret);
  2898. + return py_ret;
  2899. + }
  2900. + Py_INCREF(Py_None);
  2901. + return Py_None;
  2902. +}
  2903. +
  2904. +static PyObject *
  2905. +_wrap_garcon_menu_item_get_desktop_id(PyGObject *self)
  2906. +{
  2907. + const gchar *ret;
  2908. +
  2909. +
  2910. + ret = garcon_menu_item_get_desktop_id(GARCON_MENU_ITEM(self->obj));
  2911. +
  2912. + if (ret)
  2913. + return PyString_FromString(ret);
  2914. + Py_INCREF(Py_None);
  2915. + return Py_None;
  2916. +}
  2917. +
  2918. +static PyObject *
  2919. +_wrap_garcon_menu_item_set_desktop_id(PyGObject *self, PyObject *args, PyObject *kwargs)
  2920. +{
  2921. + static char *kwlist[] = { "desktop_id", NULL };
  2922. + char *desktop_id;
  2923. +
  2924. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_desktop_id", kwlist, &desktop_id))
  2925. + return NULL;
  2926. +
  2927. + garcon_menu_item_set_desktop_id(GARCON_MENU_ITEM(self->obj), desktop_id);
  2928. +
  2929. + Py_INCREF(Py_None);
  2930. + return Py_None;
  2931. +}
  2932. +
  2933. +static PyObject *
  2934. +_wrap_garcon_menu_item_get_command(PyGObject *self)
  2935. +{
  2936. + const gchar *ret;
  2937. +
  2938. +
  2939. + ret = garcon_menu_item_get_command(GARCON_MENU_ITEM(self->obj));
  2940. +
  2941. + if (ret)
  2942. + return PyString_FromString(ret);
  2943. + Py_INCREF(Py_None);
  2944. + return Py_None;
  2945. +}
  2946. +
  2947. +static PyObject *
  2948. +_wrap_garcon_menu_item_set_command(PyGObject *self, PyObject *args, PyObject *kwargs)
  2949. +{
  2950. + static char *kwlist[] = { "command", NULL };
  2951. + char *command;
  2952. +
  2953. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_command", kwlist, &command))
  2954. + return NULL;
  2955. +
  2956. + garcon_menu_item_set_command(GARCON_MENU_ITEM(self->obj), command);
  2957. +
  2958. + Py_INCREF(Py_None);
  2959. + return Py_None;
  2960. +}
  2961. +
  2962. +static PyObject *
  2963. +_wrap_garcon_menu_item_get_try_exec(PyGObject *self)
  2964. +{
  2965. + const gchar *ret;
  2966. +
  2967. +
  2968. + ret = garcon_menu_item_get_try_exec(GARCON_MENU_ITEM(self->obj));
  2969. +
  2970. + if (ret)
  2971. + return PyString_FromString(ret);
  2972. + Py_INCREF(Py_None);
  2973. + return Py_None;
  2974. +}
  2975. +
  2976. +static PyObject *
  2977. +_wrap_garcon_menu_item_set_try_exec(PyGObject *self, PyObject *args, PyObject *kwargs)
  2978. +{
  2979. + static char *kwlist[] = { "try_exec", NULL };
  2980. + char *try_exec;
  2981. +
  2982. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_try_exec", kwlist, &try_exec))
  2983. + return NULL;
  2984. +
  2985. + garcon_menu_item_set_try_exec(GARCON_MENU_ITEM(self->obj), try_exec);
  2986. +
  2987. + Py_INCREF(Py_None);
  2988. + return Py_None;
  2989. +}
  2990. +
  2991. +static PyObject *
  2992. +_wrap_garcon_menu_item_get_name(PyGObject *self)
  2993. +{
  2994. + const gchar *ret;
  2995. +
  2996. +
  2997. + ret = garcon_menu_item_get_name(GARCON_MENU_ITEM(self->obj));
  2998. +
  2999. + if (ret)
  3000. + return PyString_FromString(ret);
  3001. + Py_INCREF(Py_None);
  3002. + return Py_None;
  3003. +}
  3004. +
  3005. +static PyObject *
  3006. +_wrap_garcon_menu_item_set_name(PyGObject *self, PyObject *args, PyObject *kwargs)
  3007. +{
  3008. + static char *kwlist[] = { "name", NULL };
  3009. + char *name;
  3010. +
  3011. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_name", kwlist, &name))
  3012. + return NULL;
  3013. +
  3014. + garcon_menu_item_set_name(GARCON_MENU_ITEM(self->obj), name);
  3015. +
  3016. + Py_INCREF(Py_None);
  3017. + return Py_None;
  3018. +}
  3019. +
  3020. +static PyObject *
  3021. +_wrap_garcon_menu_item_get_generic_name(PyGObject *self)
  3022. +{
  3023. + const gchar *ret;
  3024. +
  3025. +
  3026. + ret = garcon_menu_item_get_generic_name(GARCON_MENU_ITEM(self->obj));
  3027. +
  3028. + if (ret)
  3029. + return PyString_FromString(ret);
  3030. + Py_INCREF(Py_None);
  3031. + return Py_None;
  3032. +}
  3033. +
  3034. +static PyObject *
  3035. +_wrap_garcon_menu_item_set_generic_name(PyGObject *self, PyObject *args, PyObject *kwargs)
  3036. +{
  3037. + static char *kwlist[] = { "generic_name", NULL };
  3038. + char *generic_name;
  3039. +
  3040. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_generic_name", kwlist, &generic_name))
  3041. + return NULL;
  3042. +
  3043. + garcon_menu_item_set_generic_name(GARCON_MENU_ITEM(self->obj), generic_name);
  3044. +
  3045. + Py_INCREF(Py_None);
  3046. + return Py_None;
  3047. +}
  3048. +
  3049. +static PyObject *
  3050. +_wrap_garcon_menu_item_get_comment(PyGObject *self)
  3051. +{
  3052. + const gchar *ret;
  3053. +
  3054. +
  3055. + ret = garcon_menu_item_get_comment(GARCON_MENU_ITEM(self->obj));
  3056. +
  3057. + if (ret)
  3058. + return PyString_FromString(ret);
  3059. + Py_INCREF(Py_None);
  3060. + return Py_None;
  3061. +}
  3062. +
  3063. +static PyObject *
  3064. +_wrap_garcon_menu_item_set_comment(PyGObject *self, PyObject *args, PyObject *kwargs)
  3065. +{
  3066. + static char *kwlist[] = { "comment", NULL };
  3067. + char *comment;
  3068. +
  3069. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_comment", kwlist, &comment))
  3070. + return NULL;
  3071. +
  3072. + garcon_menu_item_set_comment(GARCON_MENU_ITEM(self->obj), comment);
  3073. +
  3074. + Py_INCREF(Py_None);
  3075. + return Py_None;
  3076. +}
  3077. +
  3078. +static PyObject *
  3079. +_wrap_garcon_menu_item_get_icon_name(PyGObject *self)
  3080. +{
  3081. + const gchar *ret;
  3082. +
  3083. +
  3084. + ret = garcon_menu_item_get_icon_name(GARCON_MENU_ITEM(self->obj));
  3085. +
  3086. + if (ret)
  3087. + return PyString_FromString(ret);
  3088. + Py_INCREF(Py_None);
  3089. + return Py_None;
  3090. +}
  3091. +
  3092. +static PyObject *
  3093. +_wrap_garcon_menu_item_set_icon_name(PyGObject *self, PyObject *args, PyObject *kwargs)
  3094. +{
  3095. + static char *kwlist[] = { "icon_name", NULL };
  3096. + char *icon_name;
  3097. +
  3098. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_icon_name", kwlist, &icon_name))
  3099. + return NULL;
  3100. +
  3101. + garcon_menu_item_set_icon_name(GARCON_MENU_ITEM(self->obj), icon_name);
  3102. +
  3103. + Py_INCREF(Py_None);
  3104. + return Py_None;
  3105. +}
  3106. +
  3107. +static PyObject *
  3108. +_wrap_garcon_menu_item_get_path(PyGObject *self)
  3109. +{
  3110. + const gchar *ret;
  3111. +
  3112. +
  3113. + ret = garcon_menu_item_get_path(GARCON_MENU_ITEM(self->obj));
  3114. +
  3115. + if (ret)
  3116. + return PyString_FromString(ret);
  3117. + Py_INCREF(Py_None);
  3118. + return Py_None;
  3119. +}
  3120. +
  3121. +static PyObject *
  3122. +_wrap_garcon_menu_item_set_path(PyGObject *self, PyObject *args, PyObject *kwargs)
  3123. +{
  3124. + static char *kwlist[] = { "path", NULL };
  3125. + char *path;
  3126. +
  3127. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_path", kwlist, &path))
  3128. + return NULL;
  3129. +
  3130. + garcon_menu_item_set_path(GARCON_MENU_ITEM(self->obj), path);
  3131. +
  3132. + Py_INCREF(Py_None);
  3133. + return Py_None;
  3134. +}
  3135. +
  3136. +static PyObject *
  3137. +_wrap_garcon_menu_item_get_hidden(PyGObject *self)
  3138. +{
  3139. + int ret;
  3140. +
  3141. +
  3142. + ret = garcon_menu_item_get_hidden(GARCON_MENU_ITEM(self->obj));
  3143. +
  3144. + return PyBool_FromLong(ret);
  3145. +
  3146. +}
  3147. +
  3148. +static PyObject *
  3149. +_wrap_garcon_menu_item_set_hidden(PyGObject *self, PyObject *args, PyObject *kwargs)
  3150. +{
  3151. + static char *kwlist[] = { "hidden", NULL };
  3152. + int hidden;
  3153. +
  3154. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_hidden", kwlist, &hidden))
  3155. + return NULL;
  3156. +
  3157. + garcon_menu_item_set_hidden(GARCON_MENU_ITEM(self->obj), hidden);
  3158. +
  3159. + Py_INCREF(Py_None);
  3160. + return Py_None;
  3161. +}
  3162. +
  3163. +static PyObject *
  3164. +_wrap_garcon_menu_item_requires_terminal(PyGObject *self)
  3165. +{
  3166. + int ret;
  3167. +
  3168. +
  3169. + ret = garcon_menu_item_requires_terminal(GARCON_MENU_ITEM(self->obj));
  3170. +
  3171. + return PyBool_FromLong(ret);
  3172. +
  3173. +}
  3174. +
  3175. +static PyObject *
  3176. +_wrap_garcon_menu_item_set_requires_terminal(PyGObject *self, PyObject *args, PyObject *kwargs)
  3177. +{
  3178. + static char *kwlist[] = { "requires_terminal", NULL };
  3179. + int requires_terminal;
  3180. +
  3181. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_requires_terminal", kwlist, &requires_terminal))
  3182. + return NULL;
  3183. +
  3184. + garcon_menu_item_set_requires_terminal(GARCON_MENU_ITEM(self->obj), requires_terminal);
  3185. +
  3186. + Py_INCREF(Py_None);
  3187. + return Py_None;
  3188. +}
  3189. +
  3190. +static PyObject *
  3191. +_wrap_garcon_menu_item_get_no_display(PyGObject *self)
  3192. +{
  3193. + int ret;
  3194. +
  3195. +
  3196. + ret = garcon_menu_item_get_no_display(GARCON_MENU_ITEM(self->obj));
  3197. +
  3198. + return PyBool_FromLong(ret);
  3199. +
  3200. +}
  3201. +
  3202. +static PyObject *
  3203. +_wrap_garcon_menu_item_set_no_display(PyGObject *self, PyObject *args, PyObject *kwargs)
  3204. +{
  3205. + static char *kwlist[] = { "no_display", NULL };
  3206. + int no_display;
  3207. +
  3208. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_no_display", kwlist, &no_display))
  3209. + return NULL;
  3210. +
  3211. + garcon_menu_item_set_no_display(GARCON_MENU_ITEM(self->obj), no_display);
  3212. +
  3213. + Py_INCREF(Py_None);
  3214. + return Py_None;
  3215. +}
  3216. +
  3217. +static PyObject *
  3218. +_wrap_garcon_menu_item_supports_startup_notification(PyGObject *self)
  3219. +{
  3220. + int ret;
  3221. +
  3222. +
  3223. + ret = garcon_menu_item_supports_startup_notification(GARCON_MENU_ITEM(self->obj));
  3224. +
  3225. + return PyBool_FromLong(ret);
  3226. +
  3227. +}
  3228. +
  3229. +static PyObject *
  3230. +_wrap_garcon_menu_item_set_supports_startup_notification(PyGObject *self, PyObject *args, PyObject *kwargs)
  3231. +{
  3232. + static char *kwlist[] = { "supports_startup_notification", NULL };
  3233. + int supports_startup_notification;
  3234. +
  3235. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_supports_startup_notification", kwlist, &supports_startup_notification))
  3236. + return NULL;
  3237. +
  3238. + garcon_menu_item_set_supports_startup_notification(GARCON_MENU_ITEM(self->obj), supports_startup_notification);
  3239. +
  3240. + Py_INCREF(Py_None);
  3241. + return Py_None;
  3242. +}
  3243. +
  3244. +static PyObject *
  3245. +_wrap_garcon_menu_item_has_category(PyGObject *self, PyObject *args, PyObject *kwargs)
  3246. +{
  3247. + static char *kwlist[] = { "category", NULL };
  3248. + char *category;
  3249. + int ret;
  3250. +
  3251. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.has_category", kwlist, &category))
  3252. + return NULL;
  3253. +
  3254. + ret = garcon_menu_item_has_category(GARCON_MENU_ITEM(self->obj), category);
  3255. +
  3256. + return PyBool_FromLong(ret);
  3257. +
  3258. +}
  3259. +
  3260. +static PyObject *
  3261. +_wrap_garcon_menu_item_get_show_in_environment(PyGObject *self)
  3262. +{
  3263. + int ret;
  3264. +
  3265. +
  3266. + ret = garcon_menu_item_get_show_in_environment(GARCON_MENU_ITEM(self->obj));
  3267. +
  3268. + return PyBool_FromLong(ret);
  3269. +
  3270. +}
  3271. +
  3272. +static PyObject *
  3273. +_wrap_garcon_menu_item_only_show_in_environment(PyGObject *self)
  3274. +{
  3275. + int ret;
  3276. +
  3277. +
  3278. + ret = garcon_menu_item_only_show_in_environment(GARCON_MENU_ITEM(self->obj));
  3279. +
  3280. + return PyBool_FromLong(ret);
  3281. +
  3282. +}
  3283. +
  3284. +static PyObject *
  3285. +_wrap_garcon_menu_item_ref(PyGObject *self)
  3286. +{
  3287. +
  3288. + garcon_menu_item_ref(GARCON_MENU_ITEM(self->obj));
  3289. +
  3290. + Py_INCREF(Py_None);
  3291. + return Py_None;
  3292. +}
  3293. +
  3294. +static PyObject *
  3295. +_wrap_garcon_menu_item_unref(PyGObject *self)
  3296. +{
  3297. +
  3298. + garcon_menu_item_unref(GARCON_MENU_ITEM(self->obj));
  3299. +
  3300. + Py_INCREF(Py_None);
  3301. + return Py_None;
  3302. +}
  3303. +
  3304. +static PyObject *
  3305. +_wrap_garcon_menu_item_get_allocated(PyGObject *self)
  3306. +{
  3307. + int ret;
  3308. +
  3309. +
  3310. + ret = garcon_menu_item_get_allocated(GARCON_MENU_ITEM(self->obj));
  3311. +
  3312. + return PyInt_FromLong(ret);
  3313. +}
  3314. +
  3315. +static PyObject *
  3316. +_wrap_garcon_menu_item_increment_allocated(PyGObject *self)
  3317. +{
  3318. +
  3319. + garcon_menu_item_increment_allocated(GARCON_MENU_ITEM(self->obj));
  3320. +
  3321. + Py_INCREF(Py_None);
  3322. + return Py_None;
  3323. +}
  3324. +
  3325. +static PyObject *
  3326. +_wrap_garcon_menu_item_decrement_allocated(PyGObject *self)
  3327. +{
  3328. +
  3329. + garcon_menu_item_decrement_allocated(GARCON_MENU_ITEM(self->obj));
  3330. +
  3331. + Py_INCREF(Py_None);
  3332. + return Py_None;
  3333. +}
  3334. +
  3335. +static const PyMethodDef _PyGarconMenuItem_methods[] = {
  3336. + { "get_uri", (PyCFunction)_wrap_garcon_menu_item_get_uri, METH_NOARGS,
  3337. + NULL },
  3338. + { "get_desktop_id", (PyCFunction)_wrap_garcon_menu_item_get_desktop_id, METH_NOARGS,
  3339. + NULL },
  3340. + { "set_desktop_id", (PyCFunction)_wrap_garcon_menu_item_set_desktop_id, METH_VARARGS|METH_KEYWORDS,
  3341. + NULL },
  3342. + { "get_command", (PyCFunction)_wrap_garcon_menu_item_get_command, METH_NOARGS,
  3343. + NULL },
  3344. + { "set_command", (PyCFunction)_wrap_garcon_menu_item_set_command, METH_VARARGS|METH_KEYWORDS,
  3345. + NULL },
  3346. + { "get_try_exec", (PyCFunction)_wrap_garcon_menu_item_get_try_exec, METH_NOARGS,
  3347. + NULL },
  3348. + { "set_try_exec", (PyCFunction)_wrap_garcon_menu_item_set_try_exec, METH_VARARGS|METH_KEYWORDS,
  3349. + NULL },
  3350. + { "get_name", (PyCFunction)_wrap_garcon_menu_item_get_name, METH_NOARGS,
  3351. + NULL },
  3352. + { "set_name", (PyCFunction)_wrap_garcon_menu_item_set_name, METH_VARARGS|METH_KEYWORDS,
  3353. + NULL },
  3354. + { "get_generic_name", (PyCFunction)_wrap_garcon_menu_item_get_generic_name, METH_NOARGS,
  3355. + NULL },
  3356. + { "set_generic_name", (PyCFunction)_wrap_garcon_menu_item_set_generic_name, METH_VARARGS|METH_KEYWORDS,
  3357. + NULL },
  3358. + { "get_comment", (PyCFunction)_wrap_garcon_menu_item_get_comment, METH_NOARGS,
  3359. + NULL },
  3360. + { "set_comment", (PyCFunction)_wrap_garcon_menu_item_set_comment, METH_VARARGS|METH_KEYWORDS,
  3361. + NULL },
  3362. + { "get_icon_name", (PyCFunction)_wrap_garcon_menu_item_get_icon_name, METH_NOARGS,
  3363. + NULL },
  3364. + { "set_icon_name", (PyCFunction)_wrap_garcon_menu_item_set_icon_name, METH_VARARGS|METH_KEYWORDS,
  3365. + NULL },
  3366. + { "get_path", (PyCFunction)_wrap_garcon_menu_item_get_path, METH_NOARGS,
  3367. + NULL },
  3368. + { "set_path", (PyCFunction)_wrap_garcon_menu_item_set_path, METH_VARARGS|METH_KEYWORDS,
  3369. + NULL },
  3370. + { "get_hidden", (PyCFunction)_wrap_garcon_menu_item_get_hidden, METH_NOARGS,
  3371. + NULL },
  3372. + { "set_hidden", (PyCFunction)_wrap_garcon_menu_item_set_hidden, METH_VARARGS|METH_KEYWORDS,
  3373. + NULL },
  3374. + { "requires_terminal", (PyCFunction)_wrap_garcon_menu_item_requires_terminal, METH_NOARGS,
  3375. + NULL },
  3376. + { "set_requires_terminal", (PyCFunction)_wrap_garcon_menu_item_set_requires_terminal, METH_VARARGS|METH_KEYWORDS,
  3377. + NULL },
  3378. + { "get_no_display", (PyCFunction)_wrap_garcon_menu_item_get_no_display, METH_NOARGS,
  3379. + NULL },
  3380. + { "set_no_display", (PyCFunction)_wrap_garcon_menu_item_set_no_display, METH_VARARGS|METH_KEYWORDS,
  3381. + NULL },
  3382. + { "supports_startup_notification", (PyCFunction)_wrap_garcon_menu_item_supports_startup_notification, METH_NOARGS,
  3383. + NULL },
  3384. + { "set_supports_startup_notification", (PyCFunction)_wrap_garcon_menu_item_set_supports_startup_notification, METH_VARARGS|METH_KEYWORDS,
  3385. + NULL },
  3386. + { "has_category", (PyCFunction)_wrap_garcon_menu_item_has_category, METH_VARARGS|METH_KEYWORDS,
  3387. + NULL },
  3388. + { "get_show_in_environment", (PyCFunction)_wrap_garcon_menu_item_get_show_in_environment, METH_NOARGS,
  3389. + NULL },
  3390. + { "only_show_in_environment", (PyCFunction)_wrap_garcon_menu_item_only_show_in_environment, METH_NOARGS,
  3391. + NULL },
  3392. + { "ref", (PyCFunction)_wrap_garcon_menu_item_ref, METH_NOARGS,
  3393. + NULL },
  3394. + { "unref", (PyCFunction)_wrap_garcon_menu_item_unref, METH_NOARGS,
  3395. + NULL },
  3396. + { "get_allocated", (PyCFunction)_wrap_garcon_menu_item_get_allocated, METH_NOARGS,
  3397. + NULL },
  3398. + { "increment_allocated", (PyCFunction)_wrap_garcon_menu_item_increment_allocated, METH_NOARGS,
  3399. + NULL },
  3400. + { "decrement_allocated", (PyCFunction)_wrap_garcon_menu_item_decrement_allocated, METH_NOARGS,
  3401. + NULL },
  3402. + { NULL, NULL, 0, NULL }
  3403. +};
  3404. +
  3405. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItem_Type = {
  3406. + PyObject_HEAD_INIT(NULL)
  3407. + 0, /* ob_size */
  3408. + "garcon.MenuItem", /* tp_name */
  3409. + sizeof(PyGObject), /* tp_basicsize */
  3410. + 0, /* tp_itemsize */
  3411. + /* methods */
  3412. + (destructor)0, /* tp_dealloc */
  3413. + (printfunc)0, /* tp_print */
  3414. + (getattrfunc)0, /* tp_getattr */
  3415. + (setattrfunc)0, /* tp_setattr */
  3416. + (cmpfunc)0, /* tp_compare */
  3417. + (reprfunc)0, /* tp_repr */
  3418. + (PyNumberMethods*)0, /* tp_as_number */
  3419. + (PySequenceMethods*)0, /* tp_as_sequence */
  3420. + (PyMappingMethods*)0, /* tp_as_mapping */
  3421. + (hashfunc)0, /* tp_hash */
  3422. + (ternaryfunc)0, /* tp_call */
  3423. + (reprfunc)0, /* tp_str */
  3424. + (getattrofunc)0, /* tp_getattro */
  3425. + (setattrofunc)0, /* tp_setattro */
  3426. + (PyBufferProcs*)0, /* tp_as_buffer */
  3427. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  3428. + NULL, /* Documentation string */
  3429. + (traverseproc)0, /* tp_traverse */
  3430. + (inquiry)0, /* tp_clear */
  3431. + (richcmpfunc)0, /* tp_richcompare */
  3432. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  3433. + (getiterfunc)0, /* tp_iter */
  3434. + (iternextfunc)0, /* tp_iternext */
  3435. + (struct PyMethodDef*)_PyGarconMenuItem_methods, /* tp_methods */
  3436. + (struct PyMemberDef*)0, /* tp_members */
  3437. + (struct PyGetSetDef*)0, /* tp_getset */
  3438. + NULL, /* tp_base */
  3439. + NULL, /* tp_dict */
  3440. + (descrgetfunc)0, /* tp_descr_get */
  3441. + (descrsetfunc)0, /* tp_descr_set */
  3442. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  3443. + (initproc)pygobject_no_constructor, /* tp_init */
  3444. + (allocfunc)0, /* tp_alloc */
  3445. + (newfunc)0, /* tp_new */
  3446. + (freefunc)0, /* tp_free */
  3447. + (inquiry)0 /* tp_is_gc */
  3448. +};
  3449. +
  3450. +
  3451. +
  3452. +/* ----------- functions ----------- */
  3453. +
  3454. +static PyObject *
  3455. +_wrap_garcon_menu_item_new_for_path(PyObject *self, PyObject *args, PyObject *kwargs)
  3456. +{
  3457. + static char *kwlist[] = { "filename", NULL };
  3458. + char *filename;
  3459. + GarconMenuItem *ret;
  3460. +
  3461. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_menu_item_new_for_path", kwlist, &filename))
  3462. + return NULL;
  3463. +
  3464. + ret = garcon_menu_item_new_for_path(filename);
  3465. +
  3466. + /* pygobject_new handles NULL checking */
  3467. + return pygobject_new((GObject *)ret);
  3468. +}
  3469. +
  3470. +static PyObject *
  3471. +_wrap_garcon_menu_item_new_for_uri(PyObject *self, PyObject *args, PyObject *kwargs)
  3472. +{
  3473. + static char *kwlist[] = { "uri", NULL };
  3474. + char *uri;
  3475. + GarconMenuItem *ret;
  3476. +
  3477. + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_menu_item_new_for_uri", kwlist, &uri))
  3478. + return NULL;
  3479. +
  3480. + ret = garcon_menu_item_new_for_uri(uri);
  3481. +
  3482. + /* pygobject_new handles NULL checking */
  3483. + return pygobject_new((GObject *)ret);
  3484. +}
  3485. +
  3486. +const PyMethodDef pymenu_item_functions[] = {
  3487. + { "garcon_menu_item_new_for_path", (PyCFunction)_wrap_garcon_menu_item_new_for_path, METH_VARARGS|METH_KEYWORDS,
  3488. + NULL },
  3489. + { "garcon_menu_item_new_for_uri", (PyCFunction)_wrap_garcon_menu_item_new_for_uri, METH_VARARGS|METH_KEYWORDS,
  3490. + NULL },
  3491. + { NULL, NULL, 0, NULL }
  3492. +};
  3493. +
  3494. +/* initialise stuff extension classes */
  3495. +void
  3496. +pymenu_item_register_classes(PyObject *d)
  3497. +{
  3498. + PyObject *module;
  3499. +
  3500. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  3501. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  3502. + if (_PyGObject_Type == NULL) {
  3503. + PyErr_SetString(PyExc_ImportError,
  3504. + "cannot import name GObject from gobject");
  3505. + return ;
  3506. + }
  3507. + } else {
  3508. + PyErr_SetString(PyExc_ImportError,
  3509. + "could not import gobject");
  3510. + return ;
  3511. + }
  3512. +
  3513. +
  3514. +#line 667 "menu_item.c"
  3515. + pygobject_register_class(d, "GarconMenuItem", GARCON_TYPE_MENU_ITEM, &PyGarconMenuItem_Type, Py_BuildValue("(O)", &PyGObject_Type));
  3516. +}
  3517. diff --git a/garcon/menu_item.defs b/garcon/menu_item.defs
  3518. new file mode 100644
  3519. index 0000000..cec561a
  3520. --- /dev/null
  3521. +++ b/garcon/menu_item.defs
  3522. @@ -0,0 +1,324 @@
  3523. +;; -*- scheme -*-
  3524. +; object definitions ...
  3525. +(define-object MenuItem
  3526. + (in-module "Garcon")
  3527. + (parent "GObject")
  3528. + (c-name "GarconMenuItem")
  3529. + (gtype-id "GARCON_TYPE_MENU_ITEM")
  3530. +)
  3531. +
  3532. +;; Enumerations and flags ...
  3533. +
  3534. +
  3535. +;; From garcon-menu-item.h
  3536. +
  3537. +(define-function garcon_menu_item_get_type
  3538. + (c-name "garcon_menu_item_get_type")
  3539. + (return-type "GType")
  3540. +)
  3541. +
  3542. +(define-function garcon_menu_item_new
  3543. + (c-name "garcon_menu_item_new")
  3544. + (is-constructor-of "GarconMenuItem")
  3545. + (return-type "GarconMenuItem*")
  3546. + (parameters
  3547. + '("GFile*" "file")
  3548. + )
  3549. +)
  3550. +
  3551. +(define-function garcon_menu_item_new_for_path
  3552. + (c-name "garcon_menu_item_new_for_path")
  3553. + (return-type "GarconMenuItem*")
  3554. + (parameters
  3555. + '("const-gchar*" "filename")
  3556. + )
  3557. +)
  3558. +
  3559. +(define-function garcon_menu_item_new_for_uri
  3560. + (c-name "garcon_menu_item_new_for_uri")
  3561. + (return-type "GarconMenuItem*")
  3562. + (parameters
  3563. + '("const-gchar*" "uri")
  3564. + )
  3565. +)
  3566. +
  3567. +(define-method reload
  3568. + (of-object "GarconMenuItem")
  3569. + (c-name "garcon_menu_item_reload")
  3570. + (return-type "gboolean")
  3571. + (parameters
  3572. + '("gboolean*" "affects_the_outside")
  3573. + '("GError**" "error")
  3574. + )
  3575. +)
  3576. +
  3577. +(define-method reload_from_file
  3578. + (of-object "GarconMenuItem")
  3579. + (c-name "garcon_menu_item_reload_from_file")
  3580. + (return-type "gboolean")
  3581. + (parameters
  3582. + '("GFile*" "file")
  3583. + '("gboolean*" "affects_the_outside")
  3584. + '("GError**" "error")
  3585. + )
  3586. +)
  3587. +
  3588. +(define-method get_file
  3589. + (of-object "GarconMenuItem")
  3590. + (c-name "garcon_menu_item_get_file")
  3591. + (return-type "GFile*")
  3592. +)
  3593. +
  3594. +(define-method get_uri
  3595. + (of-object "GarconMenuItem")
  3596. + (c-name "garcon_menu_item_get_uri")
  3597. + (return-type "gchar*")
  3598. +)
  3599. +
  3600. +(define-method get_desktop_id
  3601. + (of-object "GarconMenuItem")
  3602. + (c-name "garcon_menu_item_get_desktop_id")
  3603. + (return-type "const-gchar*")
  3604. +)
  3605. +
  3606. +(define-method set_desktop_id
  3607. + (of-object "GarconMenuItem")
  3608. + (c-name "garcon_menu_item_set_desktop_id")
  3609. + (return-type "none")
  3610. + (parameters
  3611. + '("const-gchar*" "desktop_id")
  3612. + )
  3613. +)
  3614. +
  3615. +(define-method get_command
  3616. + (of-object "GarconMenuItem")
  3617. + (c-name "garcon_menu_item_get_command")
  3618. + (return-type "const-gchar*")
  3619. +)
  3620. +
  3621. +(define-method set_command
  3622. + (of-object "GarconMenuItem")
  3623. + (c-name "garcon_menu_item_set_command")
  3624. + (return-type "none")
  3625. + (parameters
  3626. + '("const-gchar*" "command")
  3627. + )
  3628. +)
  3629. +
  3630. +(define-method get_try_exec
  3631. + (of-object "GarconMenuItem")
  3632. + (c-name "garcon_menu_item_get_try_exec")
  3633. + (return-type "const-gchar*")
  3634. +)
  3635. +
  3636. +(define-method set_try_exec
  3637. + (of-object "GarconMenuItem")
  3638. + (c-name "garcon_menu_item_set_try_exec")
  3639. + (return-type "none")
  3640. + (parameters
  3641. + '("const-gchar*" "try_exec")
  3642. + )
  3643. +)
  3644. +
  3645. +(define-method get_name
  3646. + (of-object "GarconMenuItem")
  3647. + (c-name "garcon_menu_item_get_name")
  3648. + (return-type "const-gchar*")
  3649. +)
  3650. +
  3651. +(define-method set_name
  3652. + (of-object "GarconMenuItem")
  3653. + (c-name "garcon_menu_item_set_name")
  3654. + (return-type "none")
  3655. + (parameters
  3656. + '("const-gchar*" "name")
  3657. + )
  3658. +)
  3659. +
  3660. +(define-method get_generic_name
  3661. + (of-object "GarconMenuItem")
  3662. + (c-name "garcon_menu_item_get_generic_name")
  3663. + (return-type "const-gchar*")
  3664. +)
  3665. +
  3666. +(define-method set_generic_name
  3667. + (of-object "GarconMenuItem")
  3668. + (c-name "garcon_menu_item_set_generic_name")
  3669. + (return-type "none")
  3670. + (parameters
  3671. + '("const-gchar*" "generic_name")
  3672. + )
  3673. +)
  3674. +
  3675. +(define-method get_comment
  3676. + (of-object "GarconMenuItem")
  3677. + (c-name "garcon_menu_item_get_comment")
  3678. + (return-type "const-gchar*")
  3679. +)
  3680. +
  3681. +(define-method set_comment
  3682. + (of-object "GarconMenuItem")
  3683. + (c-name "garcon_menu_item_set_comment")
  3684. + (return-type "none")
  3685. + (parameters
  3686. + '("const-gchar*" "comment")
  3687. + )
  3688. +)
  3689. +
  3690. +(define-method get_icon_name
  3691. + (of-object "GarconMenuItem")
  3692. + (c-name "garcon_menu_item_get_icon_name")
  3693. + (return-type "const-gchar*")
  3694. +)
  3695. +
  3696. +(define-method set_icon_name
  3697. + (of-object "GarconMenuItem")
  3698. + (c-name "garcon_menu_item_set_icon_name")
  3699. + (return-type "none")
  3700. + (parameters
  3701. + '("const-gchar*" "icon_name")
  3702. + )
  3703. +)
  3704. +
  3705. +(define-method get_path
  3706. + (of-object "GarconMenuItem")
  3707. + (c-name "garcon_menu_item_get_path")
  3708. + (return-type "const-gchar*")
  3709. +)
  3710. +
  3711. +(define-method set_path
  3712. + (of-object "GarconMenuItem")
  3713. + (c-name "garcon_menu_item_set_path")
  3714. + (return-type "none")
  3715. + (parameters
  3716. + '("const-gchar*" "path")
  3717. + )
  3718. +)
  3719. +
  3720. +(define-method get_hidden
  3721. + (of-object "GarconMenuItem")
  3722. + (c-name "garcon_menu_item_get_hidden")
  3723. + (return-type "gboolean")
  3724. +)
  3725. +
  3726. +(define-method set_hidden
  3727. + (of-object "GarconMenuItem")
  3728. + (c-name "garcon_menu_item_set_hidden")
  3729. + (return-type "none")
  3730. + (parameters
  3731. + '("gboolean" "hidden")
  3732. + )
  3733. +)
  3734. +
  3735. +(define-method requires_terminal
  3736. + (of-object "GarconMenuItem")
  3737. + (c-name "garcon_menu_item_requires_terminal")
  3738. + (return-type "gboolean")
  3739. +)
  3740. +
  3741. +(define-method set_requires_terminal
  3742. + (of-object "GarconMenuItem")
  3743. + (c-name "garcon_menu_item_set_requires_terminal")
  3744. + (return-type "none")
  3745. + (parameters
  3746. + '("gboolean" "requires_terminal")
  3747. + )
  3748. +)
  3749. +
  3750. +(define-method get_no_display
  3751. + (of-object "GarconMenuItem")
  3752. + (c-name "garcon_menu_item_get_no_display")
  3753. + (return-type "gboolean")
  3754. +)
  3755. +
  3756. +(define-method set_no_display
  3757. + (of-object "GarconMenuItem")
  3758. + (c-name "garcon_menu_item_set_no_display")
  3759. + (return-type "none")
  3760. + (parameters
  3761. + '("gboolean" "no_display")
  3762. + )
  3763. +)
  3764. +
  3765. +(define-method supports_startup_notification
  3766. + (of-object "GarconMenuItem")
  3767. + (c-name "garcon_menu_item_supports_startup_notification")
  3768. + (return-type "gboolean")
  3769. +)
  3770. +
  3771. +(define-method set_supports_startup_notification
  3772. + (of-object "GarconMenuItem")
  3773. + (c-name "garcon_menu_item_set_supports_startup_notification")
  3774. + (return-type "none")
  3775. + (parameters
  3776. + '("gboolean" "supports_startup_notification")
  3777. + )
  3778. +)
  3779. +
  3780. +(define-method get_categories
  3781. + (of-object "GarconMenuItem")
  3782. + (c-name "garcon_menu_item_get_categories")
  3783. + (return-type "GList*")
  3784. +)
  3785. +
  3786. +(define-method set_categories
  3787. + (of-object "GarconMenuItem")
  3788. + (c-name "garcon_menu_item_set_categories")
  3789. + (return-type "none")
  3790. + (parameters
  3791. + '("GList*" "categories")
  3792. + )
  3793. +)
  3794. +
  3795. +(define-method has_category
  3796. + (of-object "GarconMenuItem")
  3797. + (c-name "garcon_menu_item_has_category")
  3798. + (return-type "gboolean")
  3799. + (parameters
  3800. + '("const-gchar*" "category")
  3801. + )
  3802. +)
  3803. +
  3804. +(define-method get_show_in_environment
  3805. + (of-object "GarconMenuItem")
  3806. + (c-name "garcon_menu_item_get_show_in_environment")
  3807. + (return-type "gboolean")
  3808. +)
  3809. +
  3810. +(define-method only_show_in_environment
  3811. + (of-object "GarconMenuItem")
  3812. + (c-name "garcon_menu_item_only_show_in_environment")
  3813. + (return-type "gboolean")
  3814. +)
  3815. +
  3816. +(define-method ref
  3817. + (of-object "GarconMenuItem")
  3818. + (c-name "garcon_menu_item_ref")
  3819. + (return-type "none")
  3820. +)
  3821. +
  3822. +(define-method unref
  3823. + (of-object "GarconMenuItem")
  3824. + (c-name "garcon_menu_item_unref")
  3825. + (return-type "none")
  3826. +)
  3827. +
  3828. +(define-method get_allocated
  3829. + (of-object "GarconMenuItem")
  3830. + (c-name "garcon_menu_item_get_allocated")
  3831. + (return-type "gint")
  3832. +)
  3833. +
  3834. +(define-method increment_allocated
  3835. + (of-object "GarconMenuItem")
  3836. + (c-name "garcon_menu_item_increment_allocated")
  3837. + (return-type "none")
  3838. +)
  3839. +
  3840. +(define-method decrement_allocated
  3841. + (of-object "GarconMenuItem")
  3842. + (c-name "garcon_menu_item_decrement_allocated")
  3843. + (return-type "none")
  3844. +)
  3845. +
  3846. +
  3847. diff --git a/garcon/menu_item.override b/garcon/menu_item.override
  3848. new file mode 100644
  3849. index 0000000..cb67333
  3850. --- /dev/null
  3851. +++ b/garcon/menu_item.override
  3852. @@ -0,0 +1,23 @@
  3853. +/* -*- Mode: C; c-basic-offset: 4 -*-
  3854. + *
  3855. + */
  3856. +%%
  3857. +headers
  3858. +#include "pygobject.h"
  3859. +#include <glib.h>
  3860. +#include <garcon/garcon.h>
  3861. +
  3862. +%%
  3863. +include
  3864. +%%
  3865. +modulename garcon
  3866. +%%
  3867. +import gobject.GObject as PyGObject_Type
  3868. +%%
  3869. +ignore
  3870. +%%
  3871. +ignore-glob
  3872. + *_get_type
  3873. +%%
  3874. +ignore-win32
  3875. +%%
  3876. diff --git a/garcon/menu_item_cache.c b/garcon/menu_item_cache.c
  3877. new file mode 100644
  3878. index 0000000..d265142
  3879. --- /dev/null
  3880. +++ b/garcon/menu_item_cache.c
  3881. @@ -0,0 +1,135 @@
  3882. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  3883. +
  3884. +#include <Python.h>
  3885. +
  3886. +
  3887. +
  3888. +#line 6 "menu_item_cache.override"
  3889. +#include "pygobject.h"
  3890. +#include <glib.h>
  3891. +#include <garcon/garcon.h>
  3892. +
  3893. +#line 13 "menu_item_cache.c"
  3894. +
  3895. +
  3896. +/* ---------- types from other modules ---------- */
  3897. +static PyTypeObject *_PyGObject_Type;
  3898. +#define PyGObject_Type (*_PyGObject_Type)
  3899. +
  3900. +
  3901. +/* ---------- forward type declarations ---------- */
  3902. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItemCache_Type;
  3903. +
  3904. +#line 24 "menu_item_cache.c"
  3905. +
  3906. +
  3907. +
  3908. +/* ----------- GarconMenuItemCache ----------- */
  3909. +
  3910. +static PyObject *
  3911. +_wrap_garcon_menu_item_cache_invalidate(PyGObject *self)
  3912. +{
  3913. +
  3914. + garcon_menu_item_cache_invalidate(GARCON_MENU_ITEM_CACHE(self->obj));
  3915. +
  3916. + Py_INCREF(Py_None);
  3917. + return Py_None;
  3918. +}
  3919. +
  3920. +static const PyMethodDef _PyGarconMenuItemCache_methods[] = {
  3921. + { "invalidate", (PyCFunction)_wrap_garcon_menu_item_cache_invalidate, METH_NOARGS,
  3922. + NULL },
  3923. + { NULL, NULL, 0, NULL }
  3924. +};
  3925. +
  3926. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItemCache_Type = {
  3927. + PyObject_HEAD_INIT(NULL)
  3928. + 0, /* ob_size */
  3929. + "garcon.MenuItemCache", /* tp_name */
  3930. + sizeof(PyGObject), /* tp_basicsize */
  3931. + 0, /* tp_itemsize */
  3932. + /* methods */
  3933. + (destructor)0, /* tp_dealloc */
  3934. + (printfunc)0, /* tp_print */
  3935. + (getattrfunc)0, /* tp_getattr */
  3936. + (setattrfunc)0, /* tp_setattr */
  3937. + (cmpfunc)0, /* tp_compare */
  3938. + (reprfunc)0, /* tp_repr */
  3939. + (PyNumberMethods*)0, /* tp_as_number */
  3940. + (PySequenceMethods*)0, /* tp_as_sequence */
  3941. + (PyMappingMethods*)0, /* tp_as_mapping */
  3942. + (hashfunc)0, /* tp_hash */
  3943. + (ternaryfunc)0, /* tp_call */
  3944. + (reprfunc)0, /* tp_str */
  3945. + (getattrofunc)0, /* tp_getattro */
  3946. + (setattrofunc)0, /* tp_setattro */
  3947. + (PyBufferProcs*)0, /* tp_as_buffer */
  3948. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  3949. + NULL, /* Documentation string */
  3950. + (traverseproc)0, /* tp_traverse */
  3951. + (inquiry)0, /* tp_clear */
  3952. + (richcmpfunc)0, /* tp_richcompare */
  3953. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  3954. + (getiterfunc)0, /* tp_iter */
  3955. + (iternextfunc)0, /* tp_iternext */
  3956. + (struct PyMethodDef*)_PyGarconMenuItemCache_methods, /* tp_methods */
  3957. + (struct PyMemberDef*)0, /* tp_members */
  3958. + (struct PyGetSetDef*)0, /* tp_getset */
  3959. + NULL, /* tp_base */
  3960. + NULL, /* tp_dict */
  3961. + (descrgetfunc)0, /* tp_descr_get */
  3962. + (descrsetfunc)0, /* tp_descr_set */
  3963. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  3964. + (initproc)0, /* tp_init */
  3965. + (allocfunc)0, /* tp_alloc */
  3966. + (newfunc)0, /* tp_new */
  3967. + (freefunc)0, /* tp_free */
  3968. + (inquiry)0 /* tp_is_gc */
  3969. +};
  3970. +
  3971. +
  3972. +
  3973. +/* ----------- functions ----------- */
  3974. +
  3975. +static PyObject *
  3976. +_wrap_garcon_menu_item_cache_get_default(PyObject *self)
  3977. +{
  3978. + GarconMenuItemCache *ret;
  3979. +
  3980. +
  3981. + ret = garcon_menu_item_cache_get_default();
  3982. +
  3983. + /* pygobject_new handles NULL checking */
  3984. + return pygobject_new((GObject *)ret);
  3985. +}
  3986. +
  3987. +const PyMethodDef pymenu_item_cache_functions[] = {
  3988. + { "garcon_menu_item_cache_get_default", (PyCFunction)_wrap_garcon_menu_item_cache_get_default, METH_NOARGS,
  3989. + NULL },
  3990. + { NULL, NULL, 0, NULL }
  3991. +};
  3992. +
  3993. +/* initialise stuff extension classes */
  3994. +void
  3995. +pymenu_item_cache_register_classes(PyObject *d)
  3996. +{
  3997. + PyObject *module;
  3998. +
  3999. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  4000. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  4001. + if (_PyGObject_Type == NULL) {
  4002. + PyErr_SetString(PyExc_ImportError,
  4003. + "cannot import name GObject from gobject");
  4004. + return ;
  4005. + }
  4006. + } else {
  4007. + PyErr_SetString(PyExc_ImportError,
  4008. + "could not import gobject");
  4009. + return ;
  4010. + }
  4011. +
  4012. +
  4013. +#line 133 "menu_item_cache.c"
  4014. + pygobject_register_class(d, "GarconMenuItemCache", GARCON_TYPE_MENU_ITEM_CACHE, &PyGarconMenuItemCache_Type, Py_BuildValue("(O)", &PyGObject_Type));
  4015. + pyg_set_object_has_new_constructor(GARCON_TYPE_MENU_ITEM_CACHE);
  4016. +}
  4017. diff --git a/garcon/menu_item_cache.defs b/garcon/menu_item_cache.defs
  4018. new file mode 100644
  4019. index 0000000..e8a8086
  4020. --- /dev/null
  4021. +++ b/garcon/menu_item_cache.defs
  4022. @@ -0,0 +1,60 @@
  4023. +;; -*- scheme -*-
  4024. +; object definitions ...
  4025. +(define-object MenuItemCache
  4026. + (in-module "Garcon")
  4027. + (parent "GObject")
  4028. + (c-name "GarconMenuItemCache")
  4029. + (gtype-id "GARCON_TYPE_MENU_ITEM_CACHE")
  4030. +)
  4031. +
  4032. +;; Enumerations and flags ...
  4033. +
  4034. +
  4035. +;; From garcon-menu-item-cache.h
  4036. +
  4037. +(define-function garcon_menu_item_cache_get_type
  4038. + (c-name "garcon_menu_item_cache_get_type")
  4039. + (return-type "GType")
  4040. +)
  4041. +
  4042. +(define-function garcon_menu_item_cache_get_default
  4043. + (c-name "garcon_menu_item_cache_get_default")
  4044. + (return-type "GarconMenuItemCache*")
  4045. +)
  4046. +
  4047. +(define-method lookup
  4048. + (of-object "GarconMenuItemCache")
  4049. + (c-name "garcon_menu_item_cache_lookup")
  4050. + (return-type "GarconMenuItem*")
  4051. + (parameters
  4052. + '("const-gchar*" "uri")
  4053. + '("const-gchar*" "desktop_id")
  4054. + )
  4055. +)
  4056. +
  4057. +(define-method foreach
  4058. + (of-object "GarconMenuItemCache")
  4059. + (c-name "garcon_menu_item_cache_foreach")
  4060. + (return-type "none")
  4061. + (parameters
  4062. + '("GHFunc" "func")
  4063. + '("gpointer" "user_data")
  4064. + )
  4065. +)
  4066. +
  4067. +(define-method invalidate
  4068. + (of-object "GarconMenuItemCache")
  4069. + (c-name "garcon_menu_item_cache_invalidate")
  4070. + (return-type "none")
  4071. +)
  4072. +
  4073. +(define-method invalidate_file
  4074. + (of-object "GarconMenuItemCache")
  4075. + (c-name "garcon_menu_item_cache_invalidate_file")
  4076. + (return-type "none")
  4077. + (parameters
  4078. + '("GFile*" "file")
  4079. + )
  4080. +)
  4081. +
  4082. +
  4083. diff --git a/garcon/menu_item_cache.override b/garcon/menu_item_cache.override
  4084. new file mode 100644
  4085. index 0000000..cb67333
  4086. --- /dev/null
  4087. +++ b/garcon/menu_item_cache.override
  4088. @@ -0,0 +1,23 @@
  4089. +/* -*- Mode: C; c-basic-offset: 4 -*-
  4090. + *
  4091. + */
  4092. +%%
  4093. +headers
  4094. +#include "pygobject.h"
  4095. +#include <glib.h>
  4096. +#include <garcon/garcon.h>
  4097. +
  4098. +%%
  4099. +include
  4100. +%%
  4101. +modulename garcon
  4102. +%%
  4103. +import gobject.GObject as PyGObject_Type
  4104. +%%
  4105. +ignore
  4106. +%%
  4107. +ignore-glob
  4108. + *_get_type
  4109. +%%
  4110. +ignore-win32
  4111. +%%
  4112. diff --git a/garcon/menu_item_pool.c b/garcon/menu_item_pool.c
  4113. new file mode 100644
  4114. index 0000000..6712ce5
  4115. --- /dev/null
  4116. +++ b/garcon/menu_item_pool.c
  4117. @@ -0,0 +1,53 @@
  4118. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  4119. +
  4120. +#include <Python.h>
  4121. +
  4122. +
  4123. +
  4124. +#line 6 "menu_item_pool.override"
  4125. +#include "pygobject.h"
  4126. +#include <glib.h>
  4127. +#include <garcon/garcon.h>
  4128. +
  4129. +#line 13 "menu_item_pool.c"
  4130. +
  4131. +
  4132. +/* ---------- types from other modules ---------- */
  4133. +static PyTypeObject *_PyGObject_Type;
  4134. +#define PyGObject_Type (*_PyGObject_Type)
  4135. +
  4136. +
  4137. +/* ---------- forward type declarations ---------- */
  4138. +
  4139. +#line 23 "menu_item_pool.c"
  4140. +
  4141. +
  4142. +
  4143. +/* ----------- functions ----------- */
  4144. +
  4145. +const PyMethodDef pymenu_item_pool_functions[] = {
  4146. + { NULL, NULL, 0, NULL }
  4147. +};
  4148. +
  4149. +/* initialise stuff extension classes */
  4150. +void
  4151. +pymenu_item_pool_register_classes(PyObject *d)
  4152. +{
  4153. + PyObject *module;
  4154. +
  4155. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  4156. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  4157. + if (_PyGObject_Type == NULL) {
  4158. + PyErr_SetString(PyExc_ImportError,
  4159. + "cannot import name GObject from gobject");
  4160. + return ;
  4161. + }
  4162. + } else {
  4163. + PyErr_SetString(PyExc_ImportError,
  4164. + "could not import gobject");
  4165. + return ;
  4166. + }
  4167. +
  4168. +
  4169. +#line 53 "menu_item_pool.c"
  4170. +}
  4171. diff --git a/garcon/menu_item_pool.defs b/garcon/menu_item_pool.defs
  4172. new file mode 100644
  4173. index 0000000..5c1767a
  4174. --- /dev/null
  4175. +++ b/garcon/menu_item_pool.defs
  4176. @@ -0,0 +1,77 @@
  4177. +;; -*- scheme -*-
  4178. +; object definitions ...
  4179. +;; Enumerations and flags ...
  4180. +
  4181. +
  4182. +;; From garcon-menu-item-pool.h
  4183. +
  4184. +(define-function garcon_menu_item_pool_get_type
  4185. + (c-name "garcon_menu_item_pool_get_type")
  4186. + (return-type "GType")
  4187. +)
  4188. +
  4189. +(define-function garcon_menu_item_pool_new
  4190. + (c-name "garcon_menu_item_pool_new")
  4191. + (is-constructor-of "GarconMenuItemPool")
  4192. + (return-type "GarconMenuItemPool*")
  4193. +)
  4194. +
  4195. +(define-method insert
  4196. + (of-object "GarconMenuItemPool")
  4197. + (c-name "garcon_menu_item_pool_insert")
  4198. + (return-type "none")
  4199. + (parameters
  4200. + '("GarconMenuItem*" "item")
  4201. + )
  4202. +)
  4203. +
  4204. +(define-method lookup
  4205. + (of-object "GarconMenuItemPool")
  4206. + (c-name "garcon_menu_item_pool_lookup")
  4207. + (return-type "GarconMenuItem*")
  4208. + (parameters
  4209. + '("const-gchar*" "desktop_id")
  4210. + )
  4211. +)
  4212. +
  4213. +(define-method lookup_file
  4214. + (of-object "GarconMenuItemPool")
  4215. + (c-name "garcon_menu_item_pool_lookup_file")
  4216. + (return-type "GarconMenuItem*")
  4217. + (parameters
  4218. + '("GFile*" "file")
  4219. + )
  4220. +)
  4221. +
  4222. +(define-method foreach
  4223. + (of-object "GarconMenuItemPool")
  4224. + (c-name "garcon_menu_item_pool_foreach")
  4225. + (return-type "none")
  4226. + (parameters
  4227. + '("GHFunc" "func")
  4228. + '("gpointer" "user_data")
  4229. + )
  4230. +)
  4231. +
  4232. +(define-method apply_exclude_rule
  4233. + (of-object "GarconMenuItemPool")
  4234. + (c-name "garcon_menu_item_pool_apply_exclude_rule")
  4235. + (return-type "none")
  4236. + (parameters
  4237. + '("GNode*" "node")
  4238. + )
  4239. +)
  4240. +
  4241. +(define-method get_empty
  4242. + (of-object "GarconMenuItemPool")
  4243. + (c-name "garcon_menu_item_pool_get_empty")
  4244. + (return-type "gboolean")
  4245. +)
  4246. +
  4247. +(define-method clear
  4248. + (of-object "GarconMenuItemPool")
  4249. + (c-name "garcon_menu_item_pool_clear")
  4250. + (return-type "none")
  4251. +)
  4252. +
  4253. +
  4254. diff --git a/garcon/menu_item_pool.override b/garcon/menu_item_pool.override
  4255. new file mode 100644
  4256. index 0000000..cb67333
  4257. --- /dev/null
  4258. +++ b/garcon/menu_item_pool.override
  4259. @@ -0,0 +1,23 @@
  4260. +/* -*- Mode: C; c-basic-offset: 4 -*-
  4261. + *
  4262. + */
  4263. +%%
  4264. +headers
  4265. +#include "pygobject.h"
  4266. +#include <glib.h>
  4267. +#include <garcon/garcon.h>
  4268. +
  4269. +%%
  4270. +include
  4271. +%%
  4272. +modulename garcon
  4273. +%%
  4274. +import gobject.GObject as PyGObject_Type
  4275. +%%
  4276. +ignore
  4277. +%%
  4278. +ignore-glob
  4279. + *_get_type
  4280. +%%
  4281. +ignore-win32
  4282. +%%
  4283. diff --git a/garcon/menu_merger.c b/garcon/menu_merger.c
  4284. new file mode 100644
  4285. index 0000000..b0fc676
  4286. --- /dev/null
  4287. +++ b/garcon/menu_merger.c
  4288. @@ -0,0 +1,114 @@
  4289. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  4290. +
  4291. +#include <Python.h>
  4292. +
  4293. +
  4294. +
  4295. +#line 6 "menu_merger.override"
  4296. +#include "pygobject.h"
  4297. +#include <glib.h>
  4298. +#include <garcon/garcon.h>
  4299. +
  4300. +#line 13 "menu_merger.c"
  4301. +
  4302. +
  4303. +/* ---------- types from other modules ---------- */
  4304. +static PyTypeObject *_PyGObject_Type;
  4305. +#define PyGObject_Type (*_PyGObject_Type)
  4306. +
  4307. +
  4308. +/* ---------- forward type declarations ---------- */
  4309. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuMerger_Type;
  4310. +
  4311. +#line 24 "menu_merger.c"
  4312. +
  4313. +
  4314. +
  4315. +/* ----------- GarconMenuMerger ----------- */
  4316. +
  4317. +static int
  4318. +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs)
  4319. +{
  4320. + gchar buf[512];
  4321. +
  4322. + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name);
  4323. + PyErr_SetString(PyExc_NotImplementedError, buf);
  4324. + return -1;
  4325. +}
  4326. +
  4327. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuMerger_Type = {
  4328. + PyObject_HEAD_INIT(NULL)
  4329. + 0, /* ob_size */
  4330. + "garcon.MenuMerger", /* tp_name */
  4331. + sizeof(PyGObject), /* tp_basicsize */
  4332. + 0, /* tp_itemsize */
  4333. + /* methods */
  4334. + (destructor)0, /* tp_dealloc */
  4335. + (printfunc)0, /* tp_print */
  4336. + (getattrfunc)0, /* tp_getattr */
  4337. + (setattrfunc)0, /* tp_setattr */
  4338. + (cmpfunc)0, /* tp_compare */
  4339. + (reprfunc)0, /* tp_repr */
  4340. + (PyNumberMethods*)0, /* tp_as_number */
  4341. + (PySequenceMethods*)0, /* tp_as_sequence */
  4342. + (PyMappingMethods*)0, /* tp_as_mapping */
  4343. + (hashfunc)0, /* tp_hash */
  4344. + (ternaryfunc)0, /* tp_call */
  4345. + (reprfunc)0, /* tp_str */
  4346. + (getattrofunc)0, /* tp_getattro */
  4347. + (setattrofunc)0, /* tp_setattro */
  4348. + (PyBufferProcs*)0, /* tp_as_buffer */
  4349. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  4350. + NULL, /* Documentation string */
  4351. + (traverseproc)0, /* tp_traverse */
  4352. + (inquiry)0, /* tp_clear */
  4353. + (richcmpfunc)0, /* tp_richcompare */
  4354. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  4355. + (getiterfunc)0, /* tp_iter */
  4356. + (iternextfunc)0, /* tp_iternext */
  4357. + (struct PyMethodDef*)NULL, /* tp_methods */
  4358. + (struct PyMemberDef*)0, /* tp_members */
  4359. + (struct PyGetSetDef*)0, /* tp_getset */
  4360. + NULL, /* tp_base */
  4361. + NULL, /* tp_dict */
  4362. + (descrgetfunc)0, /* tp_descr_get */
  4363. + (descrsetfunc)0, /* tp_descr_set */
  4364. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  4365. + (initproc)pygobject_no_constructor, /* tp_init */
  4366. + (allocfunc)0, /* tp_alloc */
  4367. + (newfunc)0, /* tp_new */
  4368. + (freefunc)0, /* tp_free */
  4369. + (inquiry)0 /* tp_is_gc */
  4370. +};
  4371. +
  4372. +
  4373. +
  4374. +/* ----------- functions ----------- */
  4375. +
  4376. +const PyMethodDef pymenu_merger_functions[] = {
  4377. + { NULL, NULL, 0, NULL }
  4378. +};
  4379. +
  4380. +/* initialise stuff extension classes */
  4381. +void
  4382. +pymenu_merger_register_classes(PyObject *d)
  4383. +{
  4384. + PyObject *module;
  4385. +
  4386. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  4387. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  4388. + if (_PyGObject_Type == NULL) {
  4389. + PyErr_SetString(PyExc_ImportError,
  4390. + "cannot import name GObject from gobject");
  4391. + return ;
  4392. + }
  4393. + } else {
  4394. + PyErr_SetString(PyExc_ImportError,
  4395. + "could not import gobject");
  4396. + return ;
  4397. + }
  4398. +
  4399. +
  4400. +#line 113 "menu_merger.c"
  4401. + pygobject_register_class(d, "GarconMenuMerger", GARCON_TYPE_MENU_MERGER, &PyGarconMenuMerger_Type, Py_BuildValue("(O)", &PyGObject_Type));
  4402. +}
  4403. diff --git a/garcon/menu_merger.defs b/garcon/menu_merger.defs
  4404. new file mode 100644
  4405. index 0000000..4b935b4
  4406. --- /dev/null
  4407. +++ b/garcon/menu_merger.defs
  4408. @@ -0,0 +1,41 @@
  4409. +;; -*- scheme -*-
  4410. +; object definitions ...
  4411. +(define-object MenuMerger
  4412. + (in-module "Garcon")
  4413. + (parent "GObject")
  4414. + (c-name "GarconMenuMerger")
  4415. + (gtype-id "GARCON_TYPE_MENU_MERGER")
  4416. +)
  4417. +
  4418. +;; Enumerations and flags ...
  4419. +
  4420. +
  4421. +;; From garcon-menu-merger.h
  4422. +
  4423. +(define-function garcon_menu_merger_get_type
  4424. + (c-name "garcon_menu_merger_get_type")
  4425. + (return-type "GType")
  4426. +)
  4427. +
  4428. +(define-function garcon_menu_merger_new
  4429. + (c-name "garcon_menu_merger_new")
  4430. + (is-constructor-of "GarconMenuMerger")
  4431. + (return-type "GarconMenuMerger*")
  4432. + (parameters
  4433. + '("GarconMenuTreeProvider*" "provider")
  4434. + )
  4435. +)
  4436. +
  4437. +(define-method run
  4438. + (of-object "GarconMenuMerger")
  4439. + (c-name "garcon_menu_merger_run")
  4440. + (return-type "gboolean")
  4441. + (parameters
  4442. + '("GList**" "merge_files")
  4443. + '("GList**" "merge_dirs")
  4444. + '("GCancellable*" "cancellable")
  4445. + '("GError**" "error")
  4446. + )
  4447. +)
  4448. +
  4449. +
  4450. diff --git a/garcon/menu_merger.override b/garcon/menu_merger.override
  4451. new file mode 100644
  4452. index 0000000..cb67333
  4453. --- /dev/null
  4454. +++ b/garcon/menu_merger.override
  4455. @@ -0,0 +1,23 @@
  4456. +/* -*- Mode: C; c-basic-offset: 4 -*-
  4457. + *
  4458. + */
  4459. +%%
  4460. +headers
  4461. +#include "pygobject.h"
  4462. +#include <glib.h>
  4463. +#include <garcon/garcon.h>
  4464. +
  4465. +%%
  4466. +include
  4467. +%%
  4468. +modulename garcon
  4469. +%%
  4470. +import gobject.GObject as PyGObject_Type
  4471. +%%
  4472. +ignore
  4473. +%%
  4474. +ignore-glob
  4475. + *_get_type
  4476. +%%
  4477. +ignore-win32
  4478. +%%
  4479. diff --git a/garcon/menu_parser.c b/garcon/menu_parser.c
  4480. new file mode 100644
  4481. index 0000000..3ab4ab3
  4482. --- /dev/null
  4483. +++ b/garcon/menu_parser.c
  4484. @@ -0,0 +1,114 @@
  4485. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  4486. +
  4487. +#include <Python.h>
  4488. +
  4489. +
  4490. +
  4491. +#line 6 "menu_parser.override"
  4492. +#include "pygobject.h"
  4493. +#include <glib.h>
  4494. +#include <garcon/garcon.h>
  4495. +
  4496. +#line 13 "menu_parser.c"
  4497. +
  4498. +
  4499. +/* ---------- types from other modules ---------- */
  4500. +static PyTypeObject *_PyGObject_Type;
  4501. +#define PyGObject_Type (*_PyGObject_Type)
  4502. +
  4503. +
  4504. +/* ---------- forward type declarations ---------- */
  4505. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuParser_Type;
  4506. +
  4507. +#line 24 "menu_parser.c"
  4508. +
  4509. +
  4510. +
  4511. +/* ----------- GarconMenuParser ----------- */
  4512. +
  4513. +static int
  4514. +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs)
  4515. +{
  4516. + gchar buf[512];
  4517. +
  4518. + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name);
  4519. + PyErr_SetString(PyExc_NotImplementedError, buf);
  4520. + return -1;
  4521. +}
  4522. +
  4523. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuParser_Type = {
  4524. + PyObject_HEAD_INIT(NULL)
  4525. + 0, /* ob_size */
  4526. + "garcon.MenuParser", /* tp_name */
  4527. + sizeof(PyGObject), /* tp_basicsize */
  4528. + 0, /* tp_itemsize */
  4529. + /* methods */
  4530. + (destructor)0, /* tp_dealloc */
  4531. + (printfunc)0, /* tp_print */
  4532. + (getattrfunc)0, /* tp_getattr */
  4533. + (setattrfunc)0, /* tp_setattr */
  4534. + (cmpfunc)0, /* tp_compare */
  4535. + (reprfunc)0, /* tp_repr */
  4536. + (PyNumberMethods*)0, /* tp_as_number */
  4537. + (PySequenceMethods*)0, /* tp_as_sequence */
  4538. + (PyMappingMethods*)0, /* tp_as_mapping */
  4539. + (hashfunc)0, /* tp_hash */
  4540. + (ternaryfunc)0, /* tp_call */
  4541. + (reprfunc)0, /* tp_str */
  4542. + (getattrofunc)0, /* tp_getattro */
  4543. + (setattrofunc)0, /* tp_setattro */
  4544. + (PyBufferProcs*)0, /* tp_as_buffer */
  4545. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  4546. + NULL, /* Documentation string */
  4547. + (traverseproc)0, /* tp_traverse */
  4548. + (inquiry)0, /* tp_clear */
  4549. + (richcmpfunc)0, /* tp_richcompare */
  4550. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  4551. + (getiterfunc)0, /* tp_iter */
  4552. + (iternextfunc)0, /* tp_iternext */
  4553. + (struct PyMethodDef*)NULL, /* tp_methods */
  4554. + (struct PyMemberDef*)0, /* tp_members */
  4555. + (struct PyGetSetDef*)0, /* tp_getset */
  4556. + NULL, /* tp_base */
  4557. + NULL, /* tp_dict */
  4558. + (descrgetfunc)0, /* tp_descr_get */
  4559. + (descrsetfunc)0, /* tp_descr_set */
  4560. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  4561. + (initproc)pygobject_no_constructor, /* tp_init */
  4562. + (allocfunc)0, /* tp_alloc */
  4563. + (newfunc)0, /* tp_new */
  4564. + (freefunc)0, /* tp_free */
  4565. + (inquiry)0 /* tp_is_gc */
  4566. +};
  4567. +
  4568. +
  4569. +
  4570. +/* ----------- functions ----------- */
  4571. +
  4572. +const PyMethodDef pymenu_parser_functions[] = {
  4573. + { NULL, NULL, 0, NULL }
  4574. +};
  4575. +
  4576. +/* initialise stuff extension classes */
  4577. +void
  4578. +pymenu_parser_register_classes(PyObject *d)
  4579. +{
  4580. + PyObject *module;
  4581. +
  4582. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  4583. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  4584. + if (_PyGObject_Type == NULL) {
  4585. + PyErr_SetString(PyExc_ImportError,
  4586. + "cannot import name GObject from gobject");
  4587. + return ;
  4588. + }
  4589. + } else {
  4590. + PyErr_SetString(PyExc_ImportError,
  4591. + "could not import gobject");
  4592. + return ;
  4593. + }
  4594. +
  4595. +
  4596. +#line 113 "menu_parser.c"
  4597. + pygobject_register_class(d, "GarconMenuParser", GARCON_TYPE_MENU_PARSER, &PyGarconMenuParser_Type, Py_BuildValue("(O)", &PyGObject_Type));
  4598. +}
  4599. diff --git a/garcon/menu_parser.defs b/garcon/menu_parser.defs
  4600. new file mode 100644
  4601. index 0000000..2fbceda
  4602. --- /dev/null
  4603. +++ b/garcon/menu_parser.defs
  4604. @@ -0,0 +1,39 @@
  4605. +;; -*- scheme -*-
  4606. +; object definitions ...
  4607. +(define-object MenuParser
  4608. + (in-module "Garcon")
  4609. + (parent "GObject")
  4610. + (c-name "GarconMenuParser")
  4611. + (gtype-id "GARCON_TYPE_MENU_PARSER")
  4612. +)
  4613. +
  4614. +;; Enumerations and flags ...
  4615. +
  4616. +
  4617. +;; From garcon-menu-parser.h
  4618. +
  4619. +(define-function garcon_menu_parser_get_type
  4620. + (c-name "garcon_menu_parser_get_type")
  4621. + (return-type "GType")
  4622. +)
  4623. +
  4624. +(define-function garcon_menu_parser_new
  4625. + (c-name "garcon_menu_parser_new")
  4626. + (is-constructor-of "GarconMenuParser")
  4627. + (return-type "GarconMenuParser*")
  4628. + (parameters
  4629. + '("GFile*" "file")
  4630. + )
  4631. +)
  4632. +
  4633. +(define-method run
  4634. + (of-object "GarconMenuParser")
  4635. + (c-name "garcon_menu_parser_run")
  4636. + (return-type "gboolean")
  4637. + (parameters
  4638. + '("GCancellable*" "cancellable")
  4639. + '("GError**" "error")
  4640. + )
  4641. +)
  4642. +
  4643. +
  4644. diff --git a/garcon/menu_parser.override b/garcon/menu_parser.override
  4645. new file mode 100644
  4646. index 0000000..cb67333
  4647. --- /dev/null
  4648. +++ b/garcon/menu_parser.override
  4649. @@ -0,0 +1,23 @@
  4650. +/* -*- Mode: C; c-basic-offset: 4 -*-
  4651. + *
  4652. + */
  4653. +%%
  4654. +headers
  4655. +#include "pygobject.h"
  4656. +#include <glib.h>
  4657. +#include <garcon/garcon.h>
  4658. +
  4659. +%%
  4660. +include
  4661. +%%
  4662. +modulename garcon
  4663. +%%
  4664. +import gobject.GObject as PyGObject_Type
  4665. +%%
  4666. +ignore
  4667. +%%
  4668. +ignore-glob
  4669. + *_get_type
  4670. +%%
  4671. +ignore-win32
  4672. +%%
  4673. diff --git a/garcon/menu_separator.c b/garcon/menu_separator.c
  4674. new file mode 100644
  4675. index 0000000..32ffc6c
  4676. --- /dev/null
  4677. +++ b/garcon/menu_separator.c
  4678. @@ -0,0 +1,119 @@
  4679. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  4680. +
  4681. +#include <Python.h>
  4682. +
  4683. +
  4684. +
  4685. +#line 6 "menu_separator.override"
  4686. +#include "pygobject.h"
  4687. +#include <glib.h>
  4688. +#include <garcon/garcon.h>
  4689. +
  4690. +#line 13 "menu_separator.c"
  4691. +
  4692. +
  4693. +/* ---------- types from other modules ---------- */
  4694. +static PyTypeObject *_PyGObject_Type;
  4695. +#define PyGObject_Type (*_PyGObject_Type)
  4696. +
  4697. +
  4698. +/* ---------- forward type declarations ---------- */
  4699. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuSeparator_Type;
  4700. +
  4701. +#line 24 "menu_separator.c"
  4702. +
  4703. +
  4704. +
  4705. +/* ----------- GarconMenuSeparator ----------- */
  4706. +
  4707. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuSeparator_Type = {
  4708. + PyObject_HEAD_INIT(NULL)
  4709. + 0, /* ob_size */
  4710. + "garcon.MenuSeparator", /* tp_name */
  4711. + sizeof(PyGObject), /* tp_basicsize */
  4712. + 0, /* tp_itemsize */
  4713. + /* methods */
  4714. + (destructor)0, /* tp_dealloc */
  4715. + (printfunc)0, /* tp_print */
  4716. + (getattrfunc)0, /* tp_getattr */
  4717. + (setattrfunc)0, /* tp_setattr */
  4718. + (cmpfunc)0, /* tp_compare */
  4719. + (reprfunc)0, /* tp_repr */
  4720. + (PyNumberMethods*)0, /* tp_as_number */
  4721. + (PySequenceMethods*)0, /* tp_as_sequence */
  4722. + (PyMappingMethods*)0, /* tp_as_mapping */
  4723. + (hashfunc)0, /* tp_hash */
  4724. + (ternaryfunc)0, /* tp_call */
  4725. + (reprfunc)0, /* tp_str */
  4726. + (getattrofunc)0, /* tp_getattro */
  4727. + (setattrofunc)0, /* tp_setattro */
  4728. + (PyBufferProcs*)0, /* tp_as_buffer */
  4729. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  4730. + NULL, /* Documentation string */
  4731. + (traverseproc)0, /* tp_traverse */
  4732. + (inquiry)0, /* tp_clear */
  4733. + (richcmpfunc)0, /* tp_richcompare */
  4734. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  4735. + (getiterfunc)0, /* tp_iter */
  4736. + (iternextfunc)0, /* tp_iternext */
  4737. + (struct PyMethodDef*)NULL, /* tp_methods */
  4738. + (struct PyMemberDef*)0, /* tp_members */
  4739. + (struct PyGetSetDef*)0, /* tp_getset */
  4740. + NULL, /* tp_base */
  4741. + NULL, /* tp_dict */
  4742. + (descrgetfunc)0, /* tp_descr_get */
  4743. + (descrsetfunc)0, /* tp_descr_set */
  4744. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  4745. + (initproc)0, /* tp_init */
  4746. + (allocfunc)0, /* tp_alloc */
  4747. + (newfunc)0, /* tp_new */
  4748. + (freefunc)0, /* tp_free */
  4749. + (inquiry)0 /* tp_is_gc */
  4750. +};
  4751. +
  4752. +
  4753. +
  4754. +/* ----------- functions ----------- */
  4755. +
  4756. +static PyObject *
  4757. +_wrap_garcon_menu_separator_get_default(PyObject *self)
  4758. +{
  4759. + GarconMenuSeparator *ret;
  4760. +
  4761. +
  4762. + ret = garcon_menu_separator_get_default();
  4763. +
  4764. + /* pygobject_new handles NULL checking */
  4765. + return pygobject_new((GObject *)ret);
  4766. +}
  4767. +
  4768. +const PyMethodDef pymenu_separator_functions[] = {
  4769. + { "garcon_menu_separator_get_default", (PyCFunction)_wrap_garcon_menu_separator_get_default, METH_NOARGS,
  4770. + NULL },
  4771. + { NULL, NULL, 0, NULL }
  4772. +};
  4773. +
  4774. +/* initialise stuff extension classes */
  4775. +void
  4776. +pymenu_separator_register_classes(PyObject *d)
  4777. +{
  4778. + PyObject *module;
  4779. +
  4780. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  4781. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  4782. + if (_PyGObject_Type == NULL) {
  4783. + PyErr_SetString(PyExc_ImportError,
  4784. + "cannot import name GObject from gobject");
  4785. + return ;
  4786. + }
  4787. + } else {
  4788. + PyErr_SetString(PyExc_ImportError,
  4789. + "could not import gobject");
  4790. + return ;
  4791. + }
  4792. +
  4793. +
  4794. +#line 117 "menu_separator.c"
  4795. + pygobject_register_class(d, "GarconMenuSeparator", GARCON_TYPE_MENU_SEPARATOR, &PyGarconMenuSeparator_Type, Py_BuildValue("(O)", &PyGObject_Type));
  4796. + pyg_set_object_has_new_constructor(GARCON_TYPE_MENU_SEPARATOR);
  4797. +}
  4798. diff --git a/garcon/menu_separator.defs b/garcon/menu_separator.defs
  4799. new file mode 100644
  4800. index 0000000..457c623
  4801. --- /dev/null
  4802. +++ b/garcon/menu_separator.defs
  4803. @@ -0,0 +1,25 @@
  4804. +;; -*- scheme -*-
  4805. +; object definitions ...
  4806. +(define-object MenuSeparator
  4807. + (in-module "Garcon")
  4808. + (parent "GObject")
  4809. + (c-name "GarconMenuSeparator")
  4810. + (gtype-id "GARCON_TYPE_MENU_SEPARATOR")
  4811. +)
  4812. +
  4813. +;; Enumerations and flags ...
  4814. +
  4815. +
  4816. +;; From garcon-menu-separator.h
  4817. +
  4818. +(define-function garcon_menu_separator_get_type
  4819. + (c-name "garcon_menu_separator_get_type")
  4820. + (return-type "GType")
  4821. +)
  4822. +
  4823. +(define-function garcon_menu_separator_get_default
  4824. + (c-name "garcon_menu_separator_get_default")
  4825. + (return-type "GarconMenuSeparator*")
  4826. +)
  4827. +
  4828. +
  4829. diff --git a/garcon/menu_separator.override b/garcon/menu_separator.override
  4830. new file mode 100644
  4831. index 0000000..cb67333
  4832. --- /dev/null
  4833. +++ b/garcon/menu_separator.override
  4834. @@ -0,0 +1,23 @@
  4835. +/* -*- Mode: C; c-basic-offset: 4 -*-
  4836. + *
  4837. + */
  4838. +%%
  4839. +headers
  4840. +#include "pygobject.h"
  4841. +#include <glib.h>
  4842. +#include <garcon/garcon.h>
  4843. +
  4844. +%%
  4845. +include
  4846. +%%
  4847. +modulename garcon
  4848. +%%
  4849. +import gobject.GObject as PyGObject_Type
  4850. +%%
  4851. +ignore
  4852. +%%
  4853. +ignore-glob
  4854. + *_get_type
  4855. +%%
  4856. +ignore-win32
  4857. +%%
  4858. diff --git a/garcon/menu_tree_provider.c b/garcon/menu_tree_provider.c
  4859. new file mode 100644
  4860. index 0000000..9c86536
  4861. --- /dev/null
  4862. +++ b/garcon/menu_tree_provider.c
  4863. @@ -0,0 +1,104 @@
  4864. +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
  4865. +
  4866. +#include <Python.h>
  4867. +
  4868. +
  4869. +
  4870. +#line 6 "menu_tree_provider.override"
  4871. +#include "pygobject.h"
  4872. +#include <glib.h>
  4873. +#include <garcon/garcon.h>
  4874. +
  4875. +#line 13 "menu_tree_provider.c"
  4876. +
  4877. +
  4878. +/* ---------- types from other modules ---------- */
  4879. +static PyTypeObject *_PyGObject_Type;
  4880. +#define PyGObject_Type (*_PyGObject_Type)
  4881. +
  4882. +
  4883. +/* ---------- forward type declarations ---------- */
  4884. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuTreeProvider_Type;
  4885. +
  4886. +#line 24 "menu_tree_provider.c"
  4887. +
  4888. +
  4889. +
  4890. +/* ----------- GarconMenuTreeProvider ----------- */
  4891. +
  4892. +PyTypeObject G_GNUC_INTERNAL PyGarconMenuTreeProvider_Type = {
  4893. + PyObject_HEAD_INIT(NULL)
  4894. + 0, /* ob_size */
  4895. + "garcon.MenuTreeProvider", /* tp_name */
  4896. + sizeof(PyGObject), /* tp_basicsize */
  4897. + 0, /* tp_itemsize */
  4898. + /* methods */
  4899. + (destructor)0, /* tp_dealloc */
  4900. + (printfunc)0, /* tp_print */
  4901. + (getattrfunc)0, /* tp_getattr */
  4902. + (setattrfunc)0, /* tp_setattr */
  4903. + (cmpfunc)0, /* tp_compare */
  4904. + (reprfunc)0, /* tp_repr */
  4905. + (PyNumberMethods*)0, /* tp_as_number */
  4906. + (PySequenceMethods*)0, /* tp_as_sequence */
  4907. + (PyMappingMethods*)0, /* tp_as_mapping */
  4908. + (hashfunc)0, /* tp_hash */
  4909. + (ternaryfunc)0, /* tp_call */
  4910. + (reprfunc)0, /* tp_str */
  4911. + (getattrofunc)0, /* tp_getattro */
  4912. + (setattrofunc)0, /* tp_setattro */
  4913. + (PyBufferProcs*)0, /* tp_as_buffer */
  4914. + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
  4915. + NULL, /* Documentation string */
  4916. + (traverseproc)0, /* tp_traverse */
  4917. + (inquiry)0, /* tp_clear */
  4918. + (richcmpfunc)0, /* tp_richcompare */
  4919. + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */
  4920. + (getiterfunc)0, /* tp_iter */
  4921. + (iternextfunc)0, /* tp_iternext */
  4922. + (struct PyMethodDef*)NULL, /* tp_methods */
  4923. + (struct PyMemberDef*)0, /* tp_members */
  4924. + (struct PyGetSetDef*)0, /* tp_getset */
  4925. + NULL, /* tp_base */
  4926. + NULL, /* tp_dict */
  4927. + (descrgetfunc)0, /* tp_descr_get */
  4928. + (descrsetfunc)0, /* tp_descr_set */
  4929. + offsetof(PyGObject, inst_dict), /* tp_dictoffset */
  4930. + (initproc)0, /* tp_init */
  4931. + (allocfunc)0, /* tp_alloc */
  4932. + (newfunc)0, /* tp_new */
  4933. + (freefunc)0, /* tp_free */
  4934. + (inquiry)0 /* tp_is_gc */
  4935. +};
  4936. +
  4937. +
  4938. +
  4939. +/* ----------- functions ----------- */
  4940. +
  4941. +const PyMethodDef pymenu_tree_provider_functions[] = {
  4942. + { NULL, NULL, 0, NULL }
  4943. +};
  4944. +
  4945. +/* initialise stuff extension classes */
  4946. +void
  4947. +pymenu_tree_provider_register_classes(PyObject *d)
  4948. +{
  4949. + PyObject *module;
  4950. +
  4951. + if ((module = PyImport_ImportModule("gobject")) != NULL) {
  4952. + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
  4953. + if (_PyGObject_Type == NULL) {
  4954. + PyErr_SetString(PyExc_ImportError,
  4955. + "cannot import name GObject from gobject");
  4956. + return ;
  4957. + }
  4958. + } else {
  4959. + PyErr_SetString(PyExc_ImportError,
  4960. + "could not import gobject");
  4961. + return ;
  4962. + }
  4963. +
  4964. +
  4965. +#line 103 "menu_tree_provider.c"
  4966. + pygobject_register_class(d, "GarconMenuTreeProvider", GARCON_TYPE_MENU_TREE_PROVIDER, &PyGarconMenuTreeProvider_Type, NULL);
  4967. +}
  4968. diff --git a/garcon/menu_tree_provider.defs b/garcon/menu_tree_provider.defs
  4969. new file mode 100644
  4970. index 0000000..af6576b
  4971. --- /dev/null
  4972. +++ b/garcon/menu_tree_provider.defs
  4973. @@ -0,0 +1,31 @@
  4974. +;; -*- scheme -*-
  4975. +; object definitions ...
  4976. +(define-object MenuTreeProvider
  4977. + (in-module "Garcon")
  4978. + (c-name "GarconMenuTreeProvider")
  4979. + (gtype-id "GARCON_TYPE_MENU_TREE_PROVIDER")
  4980. +)
  4981. +
  4982. +;; Enumerations and flags ...
  4983. +
  4984. +
  4985. +;; From garcon-menu-tree-provider.h
  4986. +
  4987. +(define-function garcon_menu_tree_provider_get_type
  4988. + (c-name "garcon_menu_tree_provider_get_type")
  4989. + (return-type "GType")
  4990. +)
  4991. +
  4992. +(define-method get_tree
  4993. + (of-object "GarconMenuTreeProvider")
  4994. + (c-name "garcon_menu_tree_provider_get_tree")
  4995. + (return-type "GNode*")
  4996. +)
  4997. +
  4998. +(define-method get_file
  4999. + (of-object "GarconMenuTreeProvider")
  5000. + (c-name "garcon_menu_tree_provider_get_file")
  5001. + (return-type "GFile*")
  5002. +)
  5003. +
  5004. +
  5005. diff --git a/garcon/menu_tree_provider.override b/garcon/menu_tree_provider.override
  5006. new file mode 100644
  5007. index 0000000..cb67333
  5008. --- /dev/null
  5009. +++ b/garcon/menu_tree_provider.override
  5010. @@ -0,0 +1,23 @@
  5011. +/* -*- Mode: C; c-basic-offset: 4 -*-
  5012. + *
  5013. + */
  5014. +%%
  5015. +headers
  5016. +#include "pygobject.h"
  5017. +#include <glib.h>
  5018. +#include <garcon/garcon.h>
  5019. +
  5020. +%%
  5021. +include
  5022. +%%
  5023. +modulename garcon
  5024. +%%
  5025. +import gobject.GObject as PyGObject_Type
  5026. +%%
  5027. +ignore
  5028. +%%
  5029. +ignore-glob
  5030. + *_get_type
  5031. +%%
  5032. +ignore-win32
  5033. +%%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement