diff --git a/AUTHORS b/AUTHORS index 9af38bb..208cc67 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1,2 @@ Danny Milosavljevic +Raphael Groner diff --git a/Makefile.am b/Makefile.am index 29d7729..fb3a744 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,8 +13,8 @@ if HAVE_MIGHTY_MOUSE SUBDIR_MIGHTY_MOUSE = panel endif -SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) menu -DIST_SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) menu +SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) garcon +DIST_SUBDIRS = ui util xfconf $(SUBDIR_MIGHTY_MOUSE) garcon PLATFORM_VERSION = 4.2 PLATFORM_WIN32 = diff --git a/__init__.py b/__init__.py index f4c653d..a8d6286 100644 --- a/__init__.py +++ b/__init__.py @@ -1,2 +1,2 @@ -__all__ = [ "ui", "menu", "panel", "util", "xfconf" ] +__all__ = [ "ui", "garcon", "panel", "util", "xfconf" ] diff --git a/configure.ac b/configure.ac index 0044183..71c9ad7 100644 --- a/configure.ac +++ b/configure.ac @@ -5,11 +5,11 @@ AC_CONFIG_MACRO_DIR([m4]) ACLOCAL_AMFLAGS = -I m4 m4_define(pyxfce_major_version, 4) -m4_define(pyxfce_minor_version, 4) +m4_define(pyxfce_minor_version, 10) m4_define(pyxfce_micro_version, 0) m4_define(pyxfce_version, pyxfce_major_version.pyxfce_minor_version.pyxfce_micro_version) -m4_define(xfce_required_version, 4.4.0) +m4_define(xfce_required_version, 4.10.0) AC_INIT(pyxfce, pyxfce_version, []) AC_CONFIG_MACRO_DIR([m4]) @@ -46,7 +46,7 @@ export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) BM_DEPEND([XFCE4_UTIL], [libxfce4util-1.0], [4.1.0]) BM_DEPEND([XFCE4_XFCONF], [libxfconf-0], [4.6.2]) BM_DEPEND([XFCE4_UI], [libxfce4ui-1], [4.7.5]) -BM_DEPEND([XFCE4_MENU], [libxfce4menu-0.1], [4.6.1]) +BM_DEPEND([GARCON], [garcon-1], [0.1.8]) dnl new panel @@ -90,6 +90,6 @@ AC_CONFIG_FILES( panel/Makefile util/Makefile xfconf/Makefile - menu/Makefile + garcon/Makefile ) AC_OUTPUT diff --git a/garcon/Makefile.am b/garcon/Makefile.am new file mode 100644 index 0000000..b139962 --- /dev/null +++ b/garcon/Makefile.am @@ -0,0 +1,88 @@ +@SET_MAKE@ + +PLATFORM_VERSION = 4.2 + +CODEGEN_PATH = @CODEGEN_PATH@ + +common_ldflags = -module -avoid-version -export-symbols-regex init_garcon +if PLATFORM_WIN32 +common_ldflags += -no-undefined +endif + +INCLUDES = $(PYTHON_INCLUDES) + +pyxfceexecdir = $(pyexecdir)/garcon +pyxfceexec_LTLIBRARIES = _garcon.la +pyxfceexec_PYTHON = garcon.py + +_garcon_la_CFLAGS = $(GARCON_CFLAGS) $(PYTHON_CFLAGS) $(PYGTK_CFLAGS) +_garcon_la_LDFLAGS = $(common_ldflags) +_garcon_la_LIBADD = $(GARCON_LIBS) +#-export-symbols-regex +_garcon_la_SOURCES = \ + config.c \ + environment.c \ + garcon.c \ + marshal.c \ + menu_directory.c \ + menu_element.c \ + menu.c \ + menu_item_cache.c \ + menu_item.c \ + menu_item_pool.c \ + menu_merger.c \ + menu_parser.c \ + menu_separator.c \ + menu_tree_provider.c \ + garconmodule.c + +defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs +defs_DATA = \ + config.defs \ + environment.defs \ + garcon.defs \ + marshal.defs \ + menu_directory.defs \ + menu_element.defs \ + menu.defs \ + menu_item_cache.defs \ + menu_item.defs \ + menu_item_pool.defs \ + menu_merger.defs \ + menu_parser.defs \ + menu_separator.defs \ + menu_tree_provider.defs + +garcon_overrides = \ + config.override \ + environment.override \ + garcon.override \ + marshal.override \ + menu_directory.override \ + menu_element.override \ + menu.override \ + menu_item_cache.override \ + menu_item.override \ + menu_item_pool.override \ + menu_merger.override \ + menu_parser.override \ + menu_separator.override + +EXTRA_DIST = $(defs_DATA) $(garcon_overrides) gen + +nodist__garcon_la_SOURCES = + +PYGTK_DEFS="`pkg-config --variable=defsdir pygtk-2.0`" + +.defs.c: + (cd $(srcdir) \ + && $(PYTHON) $(CODEGEN_PATH)/codegen.py \ + $(PYGTK_CODEGEN_DEFINES) \ + --override $*.override \ + --register $(PYGTK_DEFS)/gtk-types.defs \ + --register $(PYGTK_DEFS)/gdk-types.defs \ + --register ../util/desktopentry.defs \ + --prefix py$* $*.defs) > gen-$*.c \ + && cp gen-$*.c $*.c \ + && rm -f gen-$*.c + diff --git a/garcon/Makefile.am.orig b/garcon/Makefile.am.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/Makefile.in b/garcon/Makefile.in new file mode 100644 index 0000000..1e09cde --- /dev/null +++ b/garcon/Makefile.in @@ -0,0 +1,824 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@PLATFORM_WIN32_TRUE@am__append_1 = -no-undefined +subdir = garcon +DIST_COMMON = $(pyxfceexec_PYTHON) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/debug.m4 \ + $(top_srcdir)/m4/depends.m4 $(top_srcdir)/m4/jhflags.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/python.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(pyxfceexecdir)" \ + "$(DESTDIR)$(pyxfceexecdir)" "$(DESTDIR)$(defsdir)" +LTLIBRARIES = $(pyxfceexec_LTLIBRARIES) +am__DEPENDENCIES_1 = +_garcon_la_DEPENDENCIES = $(am__DEPENDENCIES_1) +am__garcon_la_OBJECTS = _garcon_la-config.lo _garcon_la-environment.lo \ + _garcon_la-garcon.lo _garcon_la-marshal.lo \ + _garcon_la-menu_directory.lo _garcon_la-menu_element.lo \ + _garcon_la-menu.lo _garcon_la-menu_item_cache.lo \ + _garcon_la-menu_item.lo _garcon_la-menu_item_pool.lo \ + _garcon_la-menu_merger.lo _garcon_la-menu_parser.lo \ + _garcon_la-menu_separator.lo _garcon_la-menu_tree_provider.lo \ + _garcon_la-garconmodule.lo +nodist__garcon_la_OBJECTS = +_garcon_la_OBJECTS = $(am__garcon_la_OBJECTS) \ + $(nodist__garcon_la_OBJECTS) +_garcon_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(_garcon_la_CFLAGS) \ + $(CFLAGS) $(_garcon_la_LDFLAGS) $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I.@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(_garcon_la_SOURCES) $(nodist__garcon_la_SOURCES) +DIST_SOURCES = $(_garcon_la_SOURCES) +py_compile = $(top_srcdir)/py-compile +DATA = $(defs_DATA) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CODEGEN_PATH = @CODEGEN_PATH@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GARCON_CFLAGS = @GARCON_CFLAGS@ +GARCON_LIBS = @GARCON_LIBS@ +GARCON_REQUIRED_VERSION = @GARCON_REQUIRED_VERSION@ +GREP = @GREP@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MIGHTY_MOUSE_CFLAGS = @MIGHTY_MOUSE_CFLAGS@ +MIGHTY_MOUSE_LIBS = @MIGHTY_MOUSE_LIBS@ +MIGHTY_MOUSE_REQUIRED_VERSION = @MIGHTY_MOUSE_REQUIRED_VERSION@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +PYGTK_CFLAGS = @PYGTK_CFLAGS@ +PYGTK_LIBS = @PYGTK_LIBS@ +PYGTK_REQUIRED_VERSION = @PYGTK_REQUIRED_VERSION@ +PYTHON = @PYTHON@ +PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ +PYTHON_INCLUDES = @PYTHON_INCLUDES@ +PYTHON_PLATFORM = @PYTHON_PLATFORM@ +PYTHON_PREFIX = @PYTHON_PREFIX@ +PYTHON_VERSION = @PYTHON_VERSION@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XFCE4_UI_CFLAGS = @XFCE4_UI_CFLAGS@ +XFCE4_UI_LIBS = @XFCE4_UI_LIBS@ +XFCE4_UI_REQUIRED_VERSION = @XFCE4_UI_REQUIRED_VERSION@ +XFCE4_UTIL_CFLAGS = @XFCE4_UTIL_CFLAGS@ +XFCE4_UTIL_LIBS = @XFCE4_UTIL_LIBS@ +XFCE4_UTIL_REQUIRED_VERSION = @XFCE4_UTIL_REQUIRED_VERSION@ +XFCE4_XFCONF_CFLAGS = @XFCE4_XFCONF_CFLAGS@ +XFCE4_XFCONF_LIBS = @XFCE4_XFCONF_LIBS@ +XFCE4_XFCONF_REQUIRED_VERSION = @XFCE4_XFCONF_REQUIRED_VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +pkgpyexecdir = @pkgpyexecdir@ +pkgpythondir = @pkgpythondir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +pyexecdir = @pyexecdir@ +pythondir = @pythondir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +PLATFORM_VERSION = 4.2 +common_ldflags = -module -avoid-version -export-symbols-regex \ + init_garcon $(am__append_1) +INCLUDES = $(PYTHON_INCLUDES) +pyxfceexecdir = $(pyexecdir)/garcon +pyxfceexec_LTLIBRARIES = _garcon.la +pyxfceexec_PYTHON = garcon.py +_garcon_la_CFLAGS = $(GARCON_CFLAGS) $(PYTHON_CFLAGS) $(PYGTK_CFLAGS) +_garcon_la_LDFLAGS = $(common_ldflags) +_garcon_la_LIBADD = $(GARCON_LIBS) +#-export-symbols-regex +_garcon_la_SOURCES = \ + config.c \ + environment.c \ + garcon.c \ + marshal.c \ + menu_directory.c \ + menu_element.c \ + menu.c \ + menu_item_cache.c \ + menu_item.c \ + menu_item_pool.c \ + menu_merger.c \ + menu_parser.c \ + menu_separator.c \ + menu_tree_provider.c \ + garconmodule.c + +defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs +defs_DATA = \ + config.defs \ + environment.defs \ + garcon.defs \ + marshal.defs \ + menu_directory.defs \ + menu_element.defs \ + menu.defs \ + menu_item_cache.defs \ + menu_item.defs \ + menu_item_pool.defs \ + menu_merger.defs \ + menu_parser.defs \ + menu_separator.defs \ + menu_tree_provider.defs + +garcon_overrides = \ + config.override \ + environment.override \ + garcon.override \ + marshal.override \ + menu_directory.override \ + menu_element.override \ + menu.override \ + menu_item_cache.override \ + menu_item.override \ + menu_item_pool.override \ + menu_merger.override \ + menu_parser.override \ + menu_separator.override + +EXTRA_DIST = $(defs_DATA) $(garcon_overrides) gen +nodist__garcon_la_SOURCES = +PYGTK_DEFS = "`pkg-config --variable=defsdir pygtk-2.0`" +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .defs .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign garcon/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign garcon/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-pyxfceexecLTLIBRARIES: $(pyxfceexec_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pyxfceexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pyxfceexecdir)" + @list='$(pyxfceexec_LTLIBRARIES)'; test -n "$(pyxfceexecdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pyxfceexecdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pyxfceexecdir)"; \ + } + +uninstall-pyxfceexecLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pyxfceexec_LTLIBRARIES)'; test -n "$(pyxfceexecdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyxfceexecdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyxfceexecdir)/$$f"; \ + done + +clean-pyxfceexecLTLIBRARIES: + -test -z "$(pyxfceexec_LTLIBRARIES)" || rm -f $(pyxfceexec_LTLIBRARIES) + @list='$(pyxfceexec_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +_garcon.la: $(_garcon_la_OBJECTS) $(_garcon_la_DEPENDENCIES) + $(_garcon_la_LINK) -rpath $(pyxfceexecdir) $(_garcon_la_OBJECTS) $(_garcon_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-config.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-environment.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-garcon.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-garconmodule.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-marshal.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_directory.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_element.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_item.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_item_cache.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_item_pool.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_merger.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_parser.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_separator.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_garcon_la-menu_tree_provider.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +_garcon_la-config.lo: config.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-config.Tpo $(DEPDIR)/_garcon_la-config.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='config.c' object='_garcon_la-config.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-environment.lo: environment.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-environment.Tpo $(DEPDIR)/_garcon_la-environment.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='environment.c' object='_garcon_la-environment.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-garcon.lo: garcon.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-garcon.Tpo $(DEPDIR)/_garcon_la-garcon.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='garcon.c' object='_garcon_la-garcon.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-marshal.lo: marshal.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-marshal.Tpo $(DEPDIR)/_garcon_la-marshal.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='marshal.c' object='_garcon_la-marshal.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_directory.lo: menu_directory.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_directory.Tpo $(DEPDIR)/_garcon_la-menu_directory.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_directory.c' object='_garcon_la-menu_directory.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_element.lo: menu_element.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_element.Tpo $(DEPDIR)/_garcon_la-menu_element.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_element.c' object='_garcon_la-menu_element.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu.lo: menu.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu.Tpo $(DEPDIR)/_garcon_la-menu.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu.c' object='_garcon_la-menu.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_item_cache.lo: menu_item_cache.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_item_cache.Tpo $(DEPDIR)/_garcon_la-menu_item_cache.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_item_cache.c' object='_garcon_la-menu_item_cache.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_item.lo: menu_item.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_item.Tpo $(DEPDIR)/_garcon_la-menu_item.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_item.c' object='_garcon_la-menu_item.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_item_pool.lo: menu_item_pool.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_item_pool.Tpo $(DEPDIR)/_garcon_la-menu_item_pool.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_item_pool.c' object='_garcon_la-menu_item_pool.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_merger.lo: menu_merger.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_merger.Tpo $(DEPDIR)/_garcon_la-menu_merger.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_merger.c' object='_garcon_la-menu_merger.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_parser.lo: menu_parser.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_parser.Tpo $(DEPDIR)/_garcon_la-menu_parser.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_parser.c' object='_garcon_la-menu_parser.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_separator.lo: menu_separator.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_separator.Tpo $(DEPDIR)/_garcon_la-menu_separator.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_separator.c' object='_garcon_la-menu_separator.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-menu_tree_provider.lo: menu_tree_provider.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-menu_tree_provider.Tpo $(DEPDIR)/_garcon_la-menu_tree_provider.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menu_tree_provider.c' object='_garcon_la-menu_tree_provider.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +_garcon_la-garconmodule.lo: garconmodule.c +@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 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/_garcon_la-garconmodule.Tpo $(DEPDIR)/_garcon_la-garconmodule.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='garconmodule.c' object='_garcon_la-garconmodule.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@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 + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-pyxfceexecPYTHON: $(pyxfceexec_PYTHON) + @$(NORMAL_INSTALL) + test -z "$(pyxfceexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pyxfceexecdir)" + @list='$(pyxfceexec_PYTHON)'; dlist=; list2=; test -n "$(pyxfceexecdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \ + if test -f $$b$$p; then \ + $(am__strip_dir) \ + dlist="$$dlist $$f"; \ + list2="$$list2 $$b$$p"; \ + else :; fi; \ + done; \ + for file in $$list2; do echo $$file; done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pyxfceexecdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pyxfceexecdir)" || exit $$?; \ + done || exit $$?; \ + if test -n "$$dlist"; then \ + if test -z "$(DESTDIR)"; then \ + PYTHON=$(PYTHON) $(py_compile) --basedir "$(pyxfceexecdir)" $$dlist; \ + else \ + PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pyxfceexecdir)" $$dlist; \ + fi; \ + else :; fi + +uninstall-pyxfceexecPYTHON: + @$(NORMAL_UNINSTALL) + @list='$(pyxfceexec_PYTHON)'; test -n "$(pyxfceexecdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + filesc=`echo "$$files" | sed 's|$$|c|'`; \ + fileso=`echo "$$files" | sed 's|$$|o|'`; \ + echo " ( cd '$(DESTDIR)$(pyxfceexecdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pyxfceexecdir)" && rm -f $$files || exit $$?; \ + echo " ( cd '$(DESTDIR)$(pyxfceexecdir)' && rm -f" $$filesc ")"; \ + cd "$(DESTDIR)$(pyxfceexecdir)" && rm -f $$filesc || exit $$?; \ + echo " ( cd '$(DESTDIR)$(pyxfceexecdir)' && rm -f" $$fileso ")"; \ + cd "$(DESTDIR)$(pyxfceexecdir)" && rm -f $$fileso +install-defsDATA: $(defs_DATA) + @$(NORMAL_INSTALL) + test -z "$(defsdir)" || $(MKDIR_P) "$(DESTDIR)$(defsdir)" + @list='$(defs_DATA)'; test -n "$(defsdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(defsdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(defsdir)" || exit $$?; \ + done + +uninstall-defsDATA: + @$(NORMAL_UNINSTALL) + @list='$(defs_DATA)'; test -n "$(defsdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(defsdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(defsdir)" && rm -f $$files + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(pyxfceexecdir)" "$(DESTDIR)$(pyxfceexecdir)" "$(DESTDIR)$(defsdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pyxfceexecLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-defsDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pyxfceexecLTLIBRARIES \ + install-pyxfceexecPYTHON + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-defsDATA uninstall-pyxfceexecLTLIBRARIES \ + uninstall-pyxfceexecPYTHON + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pyxfceexecLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-defsDATA install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-pyxfceexecLTLIBRARIES \ + install-pyxfceexecPYTHON install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-defsDATA \ + uninstall-pyxfceexecLTLIBRARIES uninstall-pyxfceexecPYTHON + +@SET_MAKE@ + +.defs.c: + (cd $(srcdir) \ + && $(PYTHON) $(CODEGEN_PATH)/codegen.py \ + $(PYGTK_CODEGEN_DEFINES) \ + --override $*.override \ + --register $(PYGTK_DEFS)/gtk-types.defs \ + --register $(PYGTK_DEFS)/gdk-types.defs \ + --register ../util/desktopentry.defs \ + --prefix py$* $*.defs) > gen-$*.c \ + && cp gen-$*.c $*.c \ + && rm -f gen-$*.c + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/garcon/Makefile.in.orig b/garcon/Makefile.in.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/config.c b/garcon/config.c new file mode 100644 index 0000000..cba4ff2 --- /dev/null +++ b/garcon/config.c @@ -0,0 +1,127 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "config.override" +#include "pygobject.h" +#include +#include + +#line 13 "config.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ + +#line 23 "config.c" + + + +/* ----------- functions ----------- */ + +static PyObject * +_wrap_garcon_check_version(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "required_major", "required_minor", "required_micro", NULL }; + PyObject *py_required_major = NULL, *py_required_minor = NULL, *py_required_micro = NULL; + const gchar *ret; + guint required_major = 0, required_minor = 0, required_micro = 0; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"OOO:garcon_check_version", kwlist, &py_required_major, &py_required_minor, &py_required_micro)) + return NULL; + if (py_required_major) { + if (PyLong_Check(py_required_major)) + required_major = PyLong_AsUnsignedLong(py_required_major); + else if (PyInt_Check(py_required_major)) + required_major = PyInt_AsLong(py_required_major); + else + PyErr_SetString(PyExc_TypeError, "Parameter 'required_major' must be an int or a long"); + if (PyErr_Occurred()) + return NULL; + } + if (py_required_minor) { + if (PyLong_Check(py_required_minor)) + required_minor = PyLong_AsUnsignedLong(py_required_minor); + else if (PyInt_Check(py_required_minor)) + required_minor = PyInt_AsLong(py_required_minor); + else + PyErr_SetString(PyExc_TypeError, "Parameter 'required_minor' must be an int or a long"); + if (PyErr_Occurred()) + return NULL; + } + if (py_required_micro) { + if (PyLong_Check(py_required_micro)) + required_micro = PyLong_AsUnsignedLong(py_required_micro); + else if (PyInt_Check(py_required_micro)) + required_micro = PyInt_AsLong(py_required_micro); + else + PyErr_SetString(PyExc_TypeError, "Parameter 'required_micro' must be an int or a long"); + if (PyErr_Occurred()) + return NULL; + } + + ret = garcon_check_version(required_major, required_minor, required_micro); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_config_lookup(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "filename", NULL }; + char *filename; + gchar *ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_config_lookup", kwlist, &filename)) + return NULL; + + ret = garcon_config_lookup(filename); + + if (ret) { + PyObject *py_ret = PyString_FromString(ret); + g_free(ret); + return py_ret; + } + Py_INCREF(Py_None); + return Py_None; +} + +const PyMethodDef pyconfig_functions[] = { + { "garcon_check_version", (PyCFunction)_wrap_garcon_check_version, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "garcon_config_lookup", (PyCFunction)_wrap_garcon_config_lookup, METH_VARARGS|METH_KEYWORDS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pyconfig_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 127 "config.c" +} diff --git a/garcon/config.c.orig b/garcon/config.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/config.defs b/garcon/config.defs new file mode 100644 index 0000000..95994de --- /dev/null +++ b/garcon/config.defs @@ -0,0 +1,34 @@ +;; -*- scheme -*- +; object definitions ... +;; Enumerations and flags ... + + +;; From garcon-config.h + +(define-function garcon_check_version + (c-name "garcon_check_version") + (return-type "const-gchar*") + (parameters + '("guint" "required_major") + '("guint" "required_minor") + '("guint" "required_micro") + ) +) + +(define-function garcon_config_lookup + (c-name "garcon_config_lookup") + (return-type "gchar*") + (parameters + '("const-gchar*" "filename") + ) +) + +(define-function garcon_config_build_paths + (c-name "garcon_config_build_paths") + (return-type "gchar**") + (parameters + '("const-gchar*" "filename") + ) +) + + diff --git a/garcon/config.defs.orig b/garcon/config.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/config.override b/garcon/config.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/config.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/config.override.orig b/garcon/config.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/environment.c b/garcon/environment.c new file mode 100644 index 0000000..90c31a9 --- /dev/null +++ b/garcon/environment.c @@ -0,0 +1,86 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "environment.override" +#include "pygobject.h" +#include +#include + +#line 13 "environment.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ + +#line 23 "environment.c" + + + +/* ----------- functions ----------- */ + +static PyObject * +_wrap_garcon_set_environment(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "env", NULL }; + char *env; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_set_environment", kwlist, &env)) + return NULL; + + garcon_set_environment(env); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_get_environment(PyObject *self) +{ + const gchar *ret; + + + ret = garcon_get_environment(); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +const PyMethodDef pyenvironment_functions[] = { + { "garcon_set_environment", (PyCFunction)_wrap_garcon_set_environment, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "garcon_get_environment", (PyCFunction)_wrap_garcon_get_environment, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pyenvironment_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 86 "environment.c" +} diff --git a/garcon/environment.c.orig b/garcon/environment.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/environment.defs b/garcon/environment.defs new file mode 100644 index 0000000..e4e2c94 --- /dev/null +++ b/garcon/environment.defs @@ -0,0 +1,21 @@ +;; -*- scheme -*- +; object definitions ... +;; Enumerations and flags ... + + +;; From garcon-environment.h + +(define-function garcon_set_environment + (c-name "garcon_set_environment") + (return-type "none") + (parameters + '("const-gchar*" "env") + ) +) + +(define-function garcon_get_environment + (c-name "garcon_get_environment") + (return-type "const-gchar*") +) + + diff --git a/garcon/environment.defs.orig b/garcon/environment.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/environment.override b/garcon/environment.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/environment.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/environment.override.orig b/garcon/environment.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/garcon.c b/garcon/garcon.c new file mode 100644 index 0000000..9aef147 --- /dev/null +++ b/garcon/garcon.c @@ -0,0 +1,53 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "garcon.override" +#include "pygobject.h" +#include +#include + +#line 13 "garcon.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ + +#line 23 "garcon.c" + + + +/* ----------- functions ----------- */ + +const PyMethodDef pygarcon_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pygarcon_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 53 "garcon.c" +} diff --git a/garcon/garcon.c.orig b/garcon/garcon.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/garcon.defs b/garcon/garcon.defs new file mode 100644 index 0000000..cc70655 --- /dev/null +++ b/garcon/garcon.defs @@ -0,0 +1,8 @@ +;; -*- scheme -*- +; object definitions ... +;; Enumerations and flags ... + + +;; From garcon.h + + diff --git a/garcon/garcon.defs.orig b/garcon/garcon.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/garcon.override b/garcon/garcon.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/garcon.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/garcon.override.orig b/garcon/garcon.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/garcon.py b/garcon/garcon.py new file mode 100644 index 0000000..5c4e0c8 --- /dev/null +++ b/garcon/garcon.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python + +from _garcon import * + diff --git a/garcon/garcon.py.orig b/garcon/garcon.py.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/garconmodule.c b/garcon/garconmodule.c new file mode 100644 index 0000000..2bc7af8 --- /dev/null +++ b/garcon/garconmodule.c @@ -0,0 +1,117 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +/* include this first, before NO_IMPORT_PYGOBJECT is defined */ +#include +#include + +#include + +extern PyMethodDef pyconfig_functions[]; +extern PyMethodDef pyenvironment_functions[]; +extern PyMethodDef pygarcon_functions[]; +extern PyMethodDef pymarshal_functions[]; +extern PyMethodDef pymenu_directory_functions[]; +extern PyMethodDef pymenu_element_functions[]; +extern PyMethodDef pymenu_functions[]; +extern PyMethodDef pymenu_item_cache_functions[]; +extern PyMethodDef pymenu_item_functions[]; +extern PyMethodDef pymenu_item_pool_functions[]; +extern PyMethodDef pymenu_merger_functions[]; +extern PyMethodDef pymenu_parser_functions[]; +extern PyMethodDef pymenu_separator_functions[]; +extern PyMethodDef pymenu_tree_provider_functions[]; + +void pyconfig_register_classes(PyObject *d); +void pyenvironment_register_classes(PyObject *d); +void pygarcon_register_classes(PyObject *d); +void pymarshal_register_classes(PyObject *d); +void pymenu_directory_register_classes(PyObject *d); +void pymenu_element_register_classes(PyObject *d); +void pymenu_functionsregister_classes(PyObject *d); +void pymenu_item_cache_register_classes(PyObject *d); +void pymenu_item_register_classes(PyObject *d); +void pymenu_item_pool_register_classes(PyObject *d); +void pymenu_merger_register_classes(PyObject *d); +void pymenu_parser_register_classes(PyObject *d); +void pymenu_separator_register_classes(PyObject *d); +void pymenu_tree_provider_register_classes(PyObject *d); + + +static PyMethodDef all_functions[1000]; + +static PyMethodDef* each_functions[] = { + pyconfig_functions, + pyenvironment_functions, + pygarcon_functions, + pymarshal_functions, + pymenu_directory_functions, + pymenu_element_functions, + pymenu_functions, + pymenu_item_cache_functions, + pymenu_item_functions, + pymenu_item_pool_functions, + pymenu_merger_functions, + pymenu_parser_functions, + pymenu_separator_functions, + pymenu_tree_provider_functions +}; + +static void +my_register1() +{ + PyObject *m, *d; + int i; + int j; + int cnt; + + cnt = 0; + + for(i = 0; i < sizeof(each_functions) / sizeof(each_functions[0]); i++) { + for(j = 0; each_functions[i][j].ml_name != NULL; j++) { + if (cnt >= sizeof(all_functions) / sizeof(all_functions[0])) { + fprintf (stderr, "pyxfce: Internal Error: too many functions"); + exit (1); + } + + all_functions[cnt++] = each_functions[i][j]; + } + } + + m = Py_InitModule("_garcon", all_functions); + + d = PyModule_GetDict(m); + pyconfig_register_classes(d); + pyenvironment_register_classes(d); + pygarcon_register_classes(d); + pymarshal_register_classes(d); + pymenu_directory_register_classes(d); + pymenu_element_register_classes(d); + pymenu_functionsregister_classes(d); + pymenu_item_cache_register_classes(d); + pymenu_item_register_classes(d); + pymenu_item_pool_register_classes(d); + pymenu_merger_register_classes(d); + pymenu_parser_register_classes(d); + pymenu_separator_register_classes(d); + pymenu_tree_provider_register_classes(d); +} + +DL_EXPORT(void) +init_garcon(void) +{ + /* set the default python encoding to utf-8 */ + PyUnicode_SetDefaultEncoding("utf-8"); + + init_pygobject (); + + my_register1 (); +} + + diff --git a/garcon/garconmodule.c.orig b/garcon/garconmodule.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/gen b/garcon/gen new file mode 100644 index 0000000..6ad0cf8 --- /dev/null +++ b/garcon/gen @@ -0,0 +1,42 @@ +#!/bin/sh + +mod="garcon" +lib=$mod-1 + +inc="`pkg-config --variable=includedir $lib`" +h2def="`pkg-config --variable=codegendir pygtk-2.0`"/h2def.py + +rm -f *.defs *.override +for s in "${inc}"/$lib/$mod/*.h +do + if [ "${s%-private.h}" != "${s}" ] + then + continue + fi + t="${s##*/}" + + t="${t%.h}" + + if [ "${t%-menu-node}" = "$t" ] + then + echo $t + defs="${t/-/_}.defs" + defs="${defs/-/_}" + defs="${defs/-/_}" + defs="${defs/-/_}" + defs="${defs/-/_}" + # doesn't work: python -m codegen.h2def "$s" >"${defs}" + python $h2def "$s" >"${defs}" + + sed "s,@module@,$mod,g" ../tmpl.override > ${defs%.defs}.override + fi +done + +for s in *.defs *.override +do + t="${s#garcon_}" + if [ "$t" != "$s" ] + then + mv "$s" "$t" + fi +done diff --git a/garcon/gen.orig b/garcon/gen.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/marshal.c b/garcon/marshal.c new file mode 100644 index 0000000..a73f033 --- /dev/null +++ b/garcon/marshal.c @@ -0,0 +1,53 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "marshal.override" +#include "pygobject.h" +#include +#include + +#line 13 "marshal.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ + +#line 23 "marshal.c" + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymarshal_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymarshal_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 53 "marshal.c" +} diff --git a/garcon/marshal.c.orig b/garcon/marshal.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/marshal.defs b/garcon/marshal.defs new file mode 100644 index 0000000..d6e03e1 --- /dev/null +++ b/garcon/marshal.defs @@ -0,0 +1,8 @@ +;; -*- scheme -*- +; object definitions ... +;; Enumerations and flags ... + + +;; From garcon-marshal.h + + diff --git a/garcon/marshal.defs.orig b/garcon/marshal.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/marshal.override b/garcon/marshal.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/marshal.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/marshal.override.orig b/garcon/marshal.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu.c b/garcon/menu.c new file mode 100644 index 0000000..7940b23 --- /dev/null +++ b/garcon/menu.c @@ -0,0 +1,199 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenu_Type; + +#line 24 "menu.c" + + + +/* ----------- GarconMenu ----------- */ + +static int +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs) +{ + gchar buf[512]; + + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name); + PyErr_SetString(PyExc_NotImplementedError, buf); + return -1; +} + +static PyObject * +_wrap_garcon_menu_add_menu(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "submenu", NULL }; + PyGObject *submenu; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:Garcon.Menu.add_menu", kwlist, &PyGarconMenu_Type, &submenu)) + return NULL; + + garcon_menu_add_menu(GARCON_MENU(self->obj), GARCON_MENU(submenu->obj)); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_get_menu_with_name(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "name", NULL }; + char *name; + GarconMenu *ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.Menu.get_menu_with_name", kwlist, &name)) + return NULL; + + ret = garcon_menu_get_menu_with_name(GARCON_MENU(self->obj), name); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +static PyObject * +_wrap_garcon_menu_get_parent(PyGObject *self) +{ + GarconMenu *ret; + + + ret = garcon_menu_get_parent(GARCON_MENU(self->obj)); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +static const PyMethodDef _PyGarconMenu_methods[] = { + { "add_menu", (PyCFunction)_wrap_garcon_menu_add_menu, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_menu_with_name", (PyCFunction)_wrap_garcon_menu_get_menu_with_name, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_parent", (PyCFunction)_wrap_garcon_menu_get_parent, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +PyTypeObject G_GNUC_INTERNAL PyGarconMenu_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.Menu", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)_PyGarconMenu_methods, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)pygobject_no_constructor, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +static PyObject * +_wrap_garcon_menu_new_for_path(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "filename", NULL }; + char *filename; + GarconMenu *ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_menu_new_for_path", kwlist, &filename)) + return NULL; + + ret = garcon_menu_new_for_path(filename); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +static PyObject * +_wrap_garcon_menu_new_applications(PyObject *self) +{ + GarconMenu *ret; + + + ret = garcon_menu_new_applications(); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +const PyMethodDef pymenu_functions[] = { + { "garcon_menu_new_for_path", (PyCFunction)_wrap_garcon_menu_new_for_path, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "garcon_menu_new_applications", (PyCFunction)_wrap_garcon_menu_new_applications, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 198 "menu.c" + pygobject_register_class(d, "GarconMenu", GARCON_TYPE_MENU, &PyGarconMenu_Type, Py_BuildValue("(O)", &PyGObject_Type)); +} diff --git a/garcon/menu.c.orig b/garcon/menu.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu.defs b/garcon/menu.defs new file mode 100644 index 0000000..84b7f76 --- /dev/null +++ b/garcon/menu.defs @@ -0,0 +1,112 @@ +;; -*- scheme -*- +; object definitions ... +(define-object Menu + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenu") + (gtype-id "GARCON_TYPE_MENU") +) + +;; Enumerations and flags ... + + +;; From garcon-menu.h + +(define-function garcon_menu_get_type + (c-name "garcon_menu_get_type") + (return-type "GType") +) + +(define-function garcon_menu_new + (c-name "garcon_menu_new") + (is-constructor-of "GarconMenu") + (return-type "GarconMenu*") + (parameters + '("GFile*" "file") + ) +) + +(define-function garcon_menu_new_for_path + (c-name "garcon_menu_new_for_path") + (return-type "GarconMenu*") + (parameters + '("const-gchar*" "filename") + ) +) + +(define-function garcon_menu_new_applications + (c-name "garcon_menu_new_applications") + (return-type "GarconMenu*") +) + +(define-method load + (of-object "GarconMenu") + (c-name "garcon_menu_load") + (return-type "gboolean") + (parameters + '("GCancellable*" "cancellable") + '("GError**" "error") + ) +) + +(define-method get_file + (of-object "GarconMenu") + (c-name "garcon_menu_get_file") + (return-type "GFile*") +) + +(define-method get_directory + (of-object "GarconMenu") + (c-name "garcon_menu_get_directory") + (return-type "GarconMenuDirectory*") +) + +(define-method get_menus + (of-object "GarconMenu") + (c-name "garcon_menu_get_menus") + (return-type "GList*") +) + +(define-method add_menu + (of-object "GarconMenu") + (c-name "garcon_menu_add_menu") + (return-type "none") + (parameters + '("GarconMenu*" "submenu") + ) +) + +(define-method get_menu_with_name + (of-object "GarconMenu") + (c-name "garcon_menu_get_menu_with_name") + (return-type "GarconMenu*") + (parameters + '("const-gchar*" "name") + ) +) + +(define-method get_parent + (of-object "GarconMenu") + (c-name "garcon_menu_get_parent") + (return-type "GarconMenu*") +) + +(define-method get_item_pool + (of-object "GarconMenu") + (c-name "garcon_menu_get_item_pool") + (return-type "GarconMenuItemPool*") +) + +(define-method get_items + (of-object "GarconMenu") + (c-name "garcon_menu_get_items") + (return-type "GList*") +) + +(define-method get_elements + (of-object "GarconMenu") + (c-name "garcon_menu_get_elements") + (return-type "GList*") +) + + diff --git a/garcon/menu.defs.orig b/garcon/menu.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu.override b/garcon/menu.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu.override.orig b/garcon/menu.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_directory.c b/garcon/menu_directory.c new file mode 100644 index 0000000..999ad08 --- /dev/null +++ b/garcon/menu_directory.c @@ -0,0 +1,308 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_directory.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_directory.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuDirectory_Type; + +#line 24 "menu_directory.c" + + + +/* ----------- GarconMenuDirectory ----------- */ + +static int +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs) +{ + gchar buf[512]; + + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name); + PyErr_SetString(PyExc_NotImplementedError, buf); + return -1; +} + +static PyObject * +_wrap_garcon_menu_directory_get_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_directory_get_name(GARCON_MENU_DIRECTORY(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_set_name(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "name", NULL }; + char *name; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuDirectory.set_name", kwlist, &name)) + return NULL; + + garcon_menu_directory_set_name(GARCON_MENU_DIRECTORY(self->obj), name); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_get_comment(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_directory_get_comment(GARCON_MENU_DIRECTORY(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_set_comment(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "comment", NULL }; + char *comment; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuDirectory.set_comment", kwlist, &comment)) + return NULL; + + garcon_menu_directory_set_comment(GARCON_MENU_DIRECTORY(self->obj), comment); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_get_icon_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_directory_get_icon_name(GARCON_MENU_DIRECTORY(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_set_icon_name(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "icon", NULL }; + char *icon; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuDirectory.set_icon_name", kwlist, &icon)) + return NULL; + + garcon_menu_directory_set_icon_name(GARCON_MENU_DIRECTORY(self->obj), icon); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_get_no_display(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_directory_get_no_display(GARCON_MENU_DIRECTORY(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_directory_set_no_display(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "no_display", NULL }; + int no_display; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuDirectory.set_no_display", kwlist, &no_display)) + return NULL; + + garcon_menu_directory_set_no_display(GARCON_MENU_DIRECTORY(self->obj), no_display); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_directory_get_hidden(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_directory_get_hidden(GARCON_MENU_DIRECTORY(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_directory_get_show_in_environment(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_directory_get_show_in_environment(GARCON_MENU_DIRECTORY(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_directory_get_visible(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_directory_get_visible(GARCON_MENU_DIRECTORY(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_directory_equal(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "other", NULL }; + PyGObject *other; + int ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:Garcon.MenuDirectory.equal", kwlist, &PyGarconMenuDirectory_Type, &other)) + return NULL; + + ret = garcon_menu_directory_equal(GARCON_MENU_DIRECTORY(self->obj), GARCON_MENU_DIRECTORY(other->obj)); + + return PyBool_FromLong(ret); + +} + +static const PyMethodDef _PyGarconMenuDirectory_methods[] = { + { "get_name", (PyCFunction)_wrap_garcon_menu_directory_get_name, METH_NOARGS, + NULL }, + { "set_name", (PyCFunction)_wrap_garcon_menu_directory_set_name, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_comment", (PyCFunction)_wrap_garcon_menu_directory_get_comment, METH_NOARGS, + NULL }, + { "set_comment", (PyCFunction)_wrap_garcon_menu_directory_set_comment, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_icon_name", (PyCFunction)_wrap_garcon_menu_directory_get_icon_name, METH_NOARGS, + NULL }, + { "set_icon_name", (PyCFunction)_wrap_garcon_menu_directory_set_icon_name, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_no_display", (PyCFunction)_wrap_garcon_menu_directory_get_no_display, METH_NOARGS, + NULL }, + { "set_no_display", (PyCFunction)_wrap_garcon_menu_directory_set_no_display, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_hidden", (PyCFunction)_wrap_garcon_menu_directory_get_hidden, METH_NOARGS, + NULL }, + { "get_show_in_environment", (PyCFunction)_wrap_garcon_menu_directory_get_show_in_environment, METH_NOARGS, + NULL }, + { "get_visible", (PyCFunction)_wrap_garcon_menu_directory_get_visible, METH_NOARGS, + NULL }, + { "equal", (PyCFunction)_wrap_garcon_menu_directory_equal, METH_VARARGS|METH_KEYWORDS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuDirectory_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuDirectory", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)_PyGarconMenuDirectory_methods, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)pygobject_no_constructor, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymenu_directory_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_directory_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 307 "menu_directory.c" + pygobject_register_class(d, "GarconMenuDirectory", GARCON_TYPE_MENU_DIRECTORY, &PyGarconMenuDirectory_Type, Py_BuildValue("(O)", &PyGObject_Type)); +} diff --git a/garcon/menu_directory.c.orig b/garcon/menu_directory.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_directory.defs b/garcon/menu_directory.defs new file mode 100644 index 0000000..1ca4d2b --- /dev/null +++ b/garcon/menu_directory.defs @@ -0,0 +1,122 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuDirectory + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenuDirectory") + (gtype-id "GARCON_TYPE_MENU_DIRECTORY") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-directory.h + +(define-function garcon_menu_directory_get_type + (c-name "garcon_menu_directory_get_type") + (return-type "GType") +) + +(define-function garcon_menu_directory_new + (c-name "garcon_menu_directory_new") + (is-constructor-of "GarconMenuDirectory") + (return-type "GarconMenuDirectory*") + (parameters + '("GFile*" "file") + ) +) + +(define-method get_file + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_file") + (return-type "GFile*") +) + +(define-method get_name + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_name") + (return-type "const-gchar*") +) + +(define-method set_name + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_set_name") + (return-type "none") + (parameters + '("const-gchar*" "name") + ) +) + +(define-method get_comment + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_comment") + (return-type "const-gchar*") +) + +(define-method set_comment + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_set_comment") + (return-type "none") + (parameters + '("const-gchar*" "comment") + ) +) + +(define-method get_icon_name + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_icon_name") + (return-type "const-gchar*") +) + +(define-method set_icon_name + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_set_icon_name") + (return-type "none") + (parameters + '("const-gchar*" "icon") + ) +) + +(define-method get_no_display + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_no_display") + (return-type "gboolean") +) + +(define-method set_no_display + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_set_no_display") + (return-type "none") + (parameters + '("gboolean" "no_display") + ) +) + +(define-method get_hidden + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_hidden") + (return-type "gboolean") +) + +(define-method get_show_in_environment + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_show_in_environment") + (return-type "gboolean") +) + +(define-method get_visible + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_get_visible") + (return-type "gboolean") +) + +(define-method equal + (of-object "GarconMenuDirectory") + (c-name "garcon_menu_directory_equal") + (return-type "gboolean") + (parameters + '("GarconMenuDirectory*" "other") + ) +) + + diff --git a/garcon/menu_directory.defs.orig b/garcon/menu_directory.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_directory.override b/garcon/menu_directory.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_directory.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_directory.override.orig b/garcon/menu_directory.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_element.c b/garcon/menu_element.c new file mode 100644 index 0000000..18e38f7 --- /dev/null +++ b/garcon/menu_element.c @@ -0,0 +1,216 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_element.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_element.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuElement_Type; + +#line 24 "menu_element.c" + + + +/* ----------- GarconMenuElement ----------- */ + +static PyObject * +_wrap_garcon_menu_element_get_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_element_get_name(GARCON_MENU_ELEMENT(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_element_get_comment(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_element_get_comment(GARCON_MENU_ELEMENT(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_element_get_icon_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_element_get_icon_name(GARCON_MENU_ELEMENT(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_element_get_visible(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_element_get_visible(GARCON_MENU_ELEMENT(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_element_get_show_in_environment(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_element_get_show_in_environment(GARCON_MENU_ELEMENT(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_element_get_no_display(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_element_get_no_display(GARCON_MENU_ELEMENT(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_element_equal(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "b", NULL }; + PyGObject *b; + int ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:Garcon.MenuElement.equal", kwlist, &PyGarconMenuElement_Type, &b)) + return NULL; + + ret = garcon_menu_element_equal(GARCON_MENU_ELEMENT(self->obj), GARCON_MENU_ELEMENT(b->obj)); + + return PyBool_FromLong(ret); + +} + +static const PyMethodDef _PyGarconMenuElement_methods[] = { + { "get_name", (PyCFunction)_wrap_garcon_menu_element_get_name, METH_NOARGS, + NULL }, + { "get_comment", (PyCFunction)_wrap_garcon_menu_element_get_comment, METH_NOARGS, + NULL }, + { "get_icon_name", (PyCFunction)_wrap_garcon_menu_element_get_icon_name, METH_NOARGS, + NULL }, + { "get_visible", (PyCFunction)_wrap_garcon_menu_element_get_visible, METH_NOARGS, + NULL }, + { "get_show_in_environment", (PyCFunction)_wrap_garcon_menu_element_get_show_in_environment, METH_NOARGS, + NULL }, + { "get_no_display", (PyCFunction)_wrap_garcon_menu_element_get_no_display, METH_NOARGS, + NULL }, + { "equal", (PyCFunction)_wrap_garcon_menu_element_equal, METH_VARARGS|METH_KEYWORDS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuElement_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuElement", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)_PyGarconMenuElement_methods, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)0, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymenu_element_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_element_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 215 "menu_element.c" + pygobject_register_class(d, "GarconMenuElement", GARCON_TYPE_MENU_ELEMENT, &PyGarconMenuElement_Type, NULL); +} diff --git a/garcon/menu_element.c.orig b/garcon/menu_element.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_element.defs b/garcon/menu_element.defs new file mode 100644 index 0000000..60128e5 --- /dev/null +++ b/garcon/menu_element.defs @@ -0,0 +1,64 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuElement + (in-module "Garcon") + (c-name "GarconMenuElement") + (gtype-id "GARCON_TYPE_MENU_ELEMENT") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-element.h + +(define-function garcon_menu_element_get_type + (c-name "garcon_menu_element_get_type") + (return-type "GType") +) + +(define-method get_name + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_get_name") + (return-type "const-gchar*") +) + +(define-method get_comment + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_get_comment") + (return-type "const-gchar*") +) + +(define-method get_icon_name + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_get_icon_name") + (return-type "const-gchar*") +) + +(define-method get_visible + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_get_visible") + (return-type "gboolean") +) + +(define-method get_show_in_environment + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_get_show_in_environment") + (return-type "gboolean") +) + +(define-method get_no_display + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_get_no_display") + (return-type "gboolean") +) + +(define-method equal + (of-object "GarconMenuElement") + (c-name "garcon_menu_element_equal") + (return-type "gboolean") + (parameters + '("GarconMenuElement*" "b") + ) +) + + diff --git a/garcon/menu_element.defs.orig b/garcon/menu_element.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_element.override b/garcon/menu_element.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_element.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_element.override.orig b/garcon/menu_element.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item.c b/garcon/menu_item.c new file mode 100644 index 0000000..2a7e570 --- /dev/null +++ b/garcon/menu_item.c @@ -0,0 +1,668 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_item.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_item.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItem_Type; + +#line 24 "menu_item.c" + + + +/* ----------- GarconMenuItem ----------- */ + +static int +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs) +{ + gchar buf[512]; + + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name); + PyErr_SetString(PyExc_NotImplementedError, buf); + return -1; +} + +static PyObject * +_wrap_garcon_menu_item_get_uri(PyGObject *self) +{ + gchar *ret; + + + ret = garcon_menu_item_get_uri(GARCON_MENU_ITEM(self->obj)); + + if (ret) { + PyObject *py_ret = PyString_FromString(ret); + g_free(ret); + return py_ret; + } + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_desktop_id(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_desktop_id(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_desktop_id(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "desktop_id", NULL }; + char *desktop_id; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_desktop_id", kwlist, &desktop_id)) + return NULL; + + garcon_menu_item_set_desktop_id(GARCON_MENU_ITEM(self->obj), desktop_id); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_command(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_command(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_command(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "command", NULL }; + char *command; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_command", kwlist, &command)) + return NULL; + + garcon_menu_item_set_command(GARCON_MENU_ITEM(self->obj), command); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_try_exec(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_try_exec(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_try_exec(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "try_exec", NULL }; + char *try_exec; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_try_exec", kwlist, &try_exec)) + return NULL; + + garcon_menu_item_set_try_exec(GARCON_MENU_ITEM(self->obj), try_exec); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_name(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_name(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "name", NULL }; + char *name; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_name", kwlist, &name)) + return NULL; + + garcon_menu_item_set_name(GARCON_MENU_ITEM(self->obj), name); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_generic_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_generic_name(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_generic_name(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "generic_name", NULL }; + char *generic_name; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_generic_name", kwlist, &generic_name)) + return NULL; + + garcon_menu_item_set_generic_name(GARCON_MENU_ITEM(self->obj), generic_name); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_comment(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_comment(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_comment(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "comment", NULL }; + char *comment; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_comment", kwlist, &comment)) + return NULL; + + garcon_menu_item_set_comment(GARCON_MENU_ITEM(self->obj), comment); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_icon_name(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_icon_name(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_icon_name(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "icon_name", NULL }; + char *icon_name; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_icon_name", kwlist, &icon_name)) + return NULL; + + garcon_menu_item_set_icon_name(GARCON_MENU_ITEM(self->obj), icon_name); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_path(PyGObject *self) +{ + const gchar *ret; + + + ret = garcon_menu_item_get_path(GARCON_MENU_ITEM(self->obj)); + + if (ret) + return PyString_FromString(ret); + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_set_path(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "path", NULL }; + char *path; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.set_path", kwlist, &path)) + return NULL; + + garcon_menu_item_set_path(GARCON_MENU_ITEM(self->obj), path); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_hidden(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_get_hidden(GARCON_MENU_ITEM(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_set_hidden(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "hidden", NULL }; + int hidden; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_hidden", kwlist, &hidden)) + return NULL; + + garcon_menu_item_set_hidden(GARCON_MENU_ITEM(self->obj), hidden); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_requires_terminal(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_requires_terminal(GARCON_MENU_ITEM(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_set_requires_terminal(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "requires_terminal", NULL }; + int requires_terminal; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_requires_terminal", kwlist, &requires_terminal)) + return NULL; + + garcon_menu_item_set_requires_terminal(GARCON_MENU_ITEM(self->obj), requires_terminal); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_no_display(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_get_no_display(GARCON_MENU_ITEM(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_set_no_display(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "no_display", NULL }; + int no_display; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_no_display", kwlist, &no_display)) + return NULL; + + garcon_menu_item_set_no_display(GARCON_MENU_ITEM(self->obj), no_display); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_supports_startup_notification(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_supports_startup_notification(GARCON_MENU_ITEM(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_set_supports_startup_notification(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "supports_startup_notification", NULL }; + int supports_startup_notification; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"i:Garcon.MenuItem.set_supports_startup_notification", kwlist, &supports_startup_notification)) + return NULL; + + garcon_menu_item_set_supports_startup_notification(GARCON_MENU_ITEM(self->obj), supports_startup_notification); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_has_category(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "category", NULL }; + char *category; + int ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:Garcon.MenuItem.has_category", kwlist, &category)) + return NULL; + + ret = garcon_menu_item_has_category(GARCON_MENU_ITEM(self->obj), category); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_get_show_in_environment(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_get_show_in_environment(GARCON_MENU_ITEM(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_only_show_in_environment(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_only_show_in_environment(GARCON_MENU_ITEM(self->obj)); + + return PyBool_FromLong(ret); + +} + +static PyObject * +_wrap_garcon_menu_item_ref(PyGObject *self) +{ + + garcon_menu_item_ref(GARCON_MENU_ITEM(self->obj)); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_unref(PyGObject *self) +{ + + garcon_menu_item_unref(GARCON_MENU_ITEM(self->obj)); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_get_allocated(PyGObject *self) +{ + int ret; + + + ret = garcon_menu_item_get_allocated(GARCON_MENU_ITEM(self->obj)); + + return PyInt_FromLong(ret); +} + +static PyObject * +_wrap_garcon_menu_item_increment_allocated(PyGObject *self) +{ + + garcon_menu_item_increment_allocated(GARCON_MENU_ITEM(self->obj)); + + Py_INCREF(Py_None); + return Py_None; +} + +static PyObject * +_wrap_garcon_menu_item_decrement_allocated(PyGObject *self) +{ + + garcon_menu_item_decrement_allocated(GARCON_MENU_ITEM(self->obj)); + + Py_INCREF(Py_None); + return Py_None; +} + +static const PyMethodDef _PyGarconMenuItem_methods[] = { + { "get_uri", (PyCFunction)_wrap_garcon_menu_item_get_uri, METH_NOARGS, + NULL }, + { "get_desktop_id", (PyCFunction)_wrap_garcon_menu_item_get_desktop_id, METH_NOARGS, + NULL }, + { "set_desktop_id", (PyCFunction)_wrap_garcon_menu_item_set_desktop_id, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_command", (PyCFunction)_wrap_garcon_menu_item_get_command, METH_NOARGS, + NULL }, + { "set_command", (PyCFunction)_wrap_garcon_menu_item_set_command, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_try_exec", (PyCFunction)_wrap_garcon_menu_item_get_try_exec, METH_NOARGS, + NULL }, + { "set_try_exec", (PyCFunction)_wrap_garcon_menu_item_set_try_exec, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_name", (PyCFunction)_wrap_garcon_menu_item_get_name, METH_NOARGS, + NULL }, + { "set_name", (PyCFunction)_wrap_garcon_menu_item_set_name, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_generic_name", (PyCFunction)_wrap_garcon_menu_item_get_generic_name, METH_NOARGS, + NULL }, + { "set_generic_name", (PyCFunction)_wrap_garcon_menu_item_set_generic_name, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_comment", (PyCFunction)_wrap_garcon_menu_item_get_comment, METH_NOARGS, + NULL }, + { "set_comment", (PyCFunction)_wrap_garcon_menu_item_set_comment, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_icon_name", (PyCFunction)_wrap_garcon_menu_item_get_icon_name, METH_NOARGS, + NULL }, + { "set_icon_name", (PyCFunction)_wrap_garcon_menu_item_set_icon_name, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_path", (PyCFunction)_wrap_garcon_menu_item_get_path, METH_NOARGS, + NULL }, + { "set_path", (PyCFunction)_wrap_garcon_menu_item_set_path, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_hidden", (PyCFunction)_wrap_garcon_menu_item_get_hidden, METH_NOARGS, + NULL }, + { "set_hidden", (PyCFunction)_wrap_garcon_menu_item_set_hidden, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "requires_terminal", (PyCFunction)_wrap_garcon_menu_item_requires_terminal, METH_NOARGS, + NULL }, + { "set_requires_terminal", (PyCFunction)_wrap_garcon_menu_item_set_requires_terminal, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_no_display", (PyCFunction)_wrap_garcon_menu_item_get_no_display, METH_NOARGS, + NULL }, + { "set_no_display", (PyCFunction)_wrap_garcon_menu_item_set_no_display, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "supports_startup_notification", (PyCFunction)_wrap_garcon_menu_item_supports_startup_notification, METH_NOARGS, + NULL }, + { "set_supports_startup_notification", (PyCFunction)_wrap_garcon_menu_item_set_supports_startup_notification, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "has_category", (PyCFunction)_wrap_garcon_menu_item_has_category, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "get_show_in_environment", (PyCFunction)_wrap_garcon_menu_item_get_show_in_environment, METH_NOARGS, + NULL }, + { "only_show_in_environment", (PyCFunction)_wrap_garcon_menu_item_only_show_in_environment, METH_NOARGS, + NULL }, + { "ref", (PyCFunction)_wrap_garcon_menu_item_ref, METH_NOARGS, + NULL }, + { "unref", (PyCFunction)_wrap_garcon_menu_item_unref, METH_NOARGS, + NULL }, + { "get_allocated", (PyCFunction)_wrap_garcon_menu_item_get_allocated, METH_NOARGS, + NULL }, + { "increment_allocated", (PyCFunction)_wrap_garcon_menu_item_increment_allocated, METH_NOARGS, + NULL }, + { "decrement_allocated", (PyCFunction)_wrap_garcon_menu_item_decrement_allocated, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItem_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuItem", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)_PyGarconMenuItem_methods, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)pygobject_no_constructor, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +static PyObject * +_wrap_garcon_menu_item_new_for_path(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "filename", NULL }; + char *filename; + GarconMenuItem *ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_menu_item_new_for_path", kwlist, &filename)) + return NULL; + + ret = garcon_menu_item_new_for_path(filename); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +static PyObject * +_wrap_garcon_menu_item_new_for_uri(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "uri", NULL }; + char *uri; + GarconMenuItem *ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"s:garcon_menu_item_new_for_uri", kwlist, &uri)) + return NULL; + + ret = garcon_menu_item_new_for_uri(uri); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +const PyMethodDef pymenu_item_functions[] = { + { "garcon_menu_item_new_for_path", (PyCFunction)_wrap_garcon_menu_item_new_for_path, METH_VARARGS|METH_KEYWORDS, + NULL }, + { "garcon_menu_item_new_for_uri", (PyCFunction)_wrap_garcon_menu_item_new_for_uri, METH_VARARGS|METH_KEYWORDS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_item_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 667 "menu_item.c" + pygobject_register_class(d, "GarconMenuItem", GARCON_TYPE_MENU_ITEM, &PyGarconMenuItem_Type, Py_BuildValue("(O)", &PyGObject_Type)); +} diff --git a/garcon/menu_item.c.orig b/garcon/menu_item.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item.defs b/garcon/menu_item.defs new file mode 100644 index 0000000..cec561a --- /dev/null +++ b/garcon/menu_item.defs @@ -0,0 +1,324 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuItem + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenuItem") + (gtype-id "GARCON_TYPE_MENU_ITEM") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-item.h + +(define-function garcon_menu_item_get_type + (c-name "garcon_menu_item_get_type") + (return-type "GType") +) + +(define-function garcon_menu_item_new + (c-name "garcon_menu_item_new") + (is-constructor-of "GarconMenuItem") + (return-type "GarconMenuItem*") + (parameters + '("GFile*" "file") + ) +) + +(define-function garcon_menu_item_new_for_path + (c-name "garcon_menu_item_new_for_path") + (return-type "GarconMenuItem*") + (parameters + '("const-gchar*" "filename") + ) +) + +(define-function garcon_menu_item_new_for_uri + (c-name "garcon_menu_item_new_for_uri") + (return-type "GarconMenuItem*") + (parameters + '("const-gchar*" "uri") + ) +) + +(define-method reload + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_reload") + (return-type "gboolean") + (parameters + '("gboolean*" "affects_the_outside") + '("GError**" "error") + ) +) + +(define-method reload_from_file + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_reload_from_file") + (return-type "gboolean") + (parameters + '("GFile*" "file") + '("gboolean*" "affects_the_outside") + '("GError**" "error") + ) +) + +(define-method get_file + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_file") + (return-type "GFile*") +) + +(define-method get_uri + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_uri") + (return-type "gchar*") +) + +(define-method get_desktop_id + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_desktop_id") + (return-type "const-gchar*") +) + +(define-method set_desktop_id + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_desktop_id") + (return-type "none") + (parameters + '("const-gchar*" "desktop_id") + ) +) + +(define-method get_command + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_command") + (return-type "const-gchar*") +) + +(define-method set_command + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_command") + (return-type "none") + (parameters + '("const-gchar*" "command") + ) +) + +(define-method get_try_exec + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_try_exec") + (return-type "const-gchar*") +) + +(define-method set_try_exec + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_try_exec") + (return-type "none") + (parameters + '("const-gchar*" "try_exec") + ) +) + +(define-method get_name + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_name") + (return-type "const-gchar*") +) + +(define-method set_name + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_name") + (return-type "none") + (parameters + '("const-gchar*" "name") + ) +) + +(define-method get_generic_name + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_generic_name") + (return-type "const-gchar*") +) + +(define-method set_generic_name + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_generic_name") + (return-type "none") + (parameters + '("const-gchar*" "generic_name") + ) +) + +(define-method get_comment + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_comment") + (return-type "const-gchar*") +) + +(define-method set_comment + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_comment") + (return-type "none") + (parameters + '("const-gchar*" "comment") + ) +) + +(define-method get_icon_name + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_icon_name") + (return-type "const-gchar*") +) + +(define-method set_icon_name + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_icon_name") + (return-type "none") + (parameters + '("const-gchar*" "icon_name") + ) +) + +(define-method get_path + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_path") + (return-type "const-gchar*") +) + +(define-method set_path + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_path") + (return-type "none") + (parameters + '("const-gchar*" "path") + ) +) + +(define-method get_hidden + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_hidden") + (return-type "gboolean") +) + +(define-method set_hidden + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_hidden") + (return-type "none") + (parameters + '("gboolean" "hidden") + ) +) + +(define-method requires_terminal + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_requires_terminal") + (return-type "gboolean") +) + +(define-method set_requires_terminal + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_requires_terminal") + (return-type "none") + (parameters + '("gboolean" "requires_terminal") + ) +) + +(define-method get_no_display + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_no_display") + (return-type "gboolean") +) + +(define-method set_no_display + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_no_display") + (return-type "none") + (parameters + '("gboolean" "no_display") + ) +) + +(define-method supports_startup_notification + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_supports_startup_notification") + (return-type "gboolean") +) + +(define-method set_supports_startup_notification + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_supports_startup_notification") + (return-type "none") + (parameters + '("gboolean" "supports_startup_notification") + ) +) + +(define-method get_categories + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_categories") + (return-type "GList*") +) + +(define-method set_categories + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_set_categories") + (return-type "none") + (parameters + '("GList*" "categories") + ) +) + +(define-method has_category + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_has_category") + (return-type "gboolean") + (parameters + '("const-gchar*" "category") + ) +) + +(define-method get_show_in_environment + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_show_in_environment") + (return-type "gboolean") +) + +(define-method only_show_in_environment + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_only_show_in_environment") + (return-type "gboolean") +) + +(define-method ref + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_ref") + (return-type "none") +) + +(define-method unref + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_unref") + (return-type "none") +) + +(define-method get_allocated + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_get_allocated") + (return-type "gint") +) + +(define-method increment_allocated + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_increment_allocated") + (return-type "none") +) + +(define-method decrement_allocated + (of-object "GarconMenuItem") + (c-name "garcon_menu_item_decrement_allocated") + (return-type "none") +) + + diff --git a/garcon/menu_item.defs.orig b/garcon/menu_item.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item.override b/garcon/menu_item.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_item.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_item.override.orig b/garcon/menu_item.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item_cache.c b/garcon/menu_item_cache.c new file mode 100644 index 0000000..d265142 --- /dev/null +++ b/garcon/menu_item_cache.c @@ -0,0 +1,135 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_item_cache.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_item_cache.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItemCache_Type; + +#line 24 "menu_item_cache.c" + + + +/* ----------- GarconMenuItemCache ----------- */ + +static PyObject * +_wrap_garcon_menu_item_cache_invalidate(PyGObject *self) +{ + + garcon_menu_item_cache_invalidate(GARCON_MENU_ITEM_CACHE(self->obj)); + + Py_INCREF(Py_None); + return Py_None; +} + +static const PyMethodDef _PyGarconMenuItemCache_methods[] = { + { "invalidate", (PyCFunction)_wrap_garcon_menu_item_cache_invalidate, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuItemCache_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuItemCache", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)_PyGarconMenuItemCache_methods, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)0, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +static PyObject * +_wrap_garcon_menu_item_cache_get_default(PyObject *self) +{ + GarconMenuItemCache *ret; + + + ret = garcon_menu_item_cache_get_default(); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +const PyMethodDef pymenu_item_cache_functions[] = { + { "garcon_menu_item_cache_get_default", (PyCFunction)_wrap_garcon_menu_item_cache_get_default, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_item_cache_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 133 "menu_item_cache.c" + pygobject_register_class(d, "GarconMenuItemCache", GARCON_TYPE_MENU_ITEM_CACHE, &PyGarconMenuItemCache_Type, Py_BuildValue("(O)", &PyGObject_Type)); + pyg_set_object_has_new_constructor(GARCON_TYPE_MENU_ITEM_CACHE); +} diff --git a/garcon/menu_item_cache.c.orig b/garcon/menu_item_cache.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item_cache.defs b/garcon/menu_item_cache.defs new file mode 100644 index 0000000..e8a8086 --- /dev/null +++ b/garcon/menu_item_cache.defs @@ -0,0 +1,60 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuItemCache + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenuItemCache") + (gtype-id "GARCON_TYPE_MENU_ITEM_CACHE") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-item-cache.h + +(define-function garcon_menu_item_cache_get_type + (c-name "garcon_menu_item_cache_get_type") + (return-type "GType") +) + +(define-function garcon_menu_item_cache_get_default + (c-name "garcon_menu_item_cache_get_default") + (return-type "GarconMenuItemCache*") +) + +(define-method lookup + (of-object "GarconMenuItemCache") + (c-name "garcon_menu_item_cache_lookup") + (return-type "GarconMenuItem*") + (parameters + '("const-gchar*" "uri") + '("const-gchar*" "desktop_id") + ) +) + +(define-method foreach + (of-object "GarconMenuItemCache") + (c-name "garcon_menu_item_cache_foreach") + (return-type "none") + (parameters + '("GHFunc" "func") + '("gpointer" "user_data") + ) +) + +(define-method invalidate + (of-object "GarconMenuItemCache") + (c-name "garcon_menu_item_cache_invalidate") + (return-type "none") +) + +(define-method invalidate_file + (of-object "GarconMenuItemCache") + (c-name "garcon_menu_item_cache_invalidate_file") + (return-type "none") + (parameters + '("GFile*" "file") + ) +) + + diff --git a/garcon/menu_item_cache.defs.orig b/garcon/menu_item_cache.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item_cache.override b/garcon/menu_item_cache.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_item_cache.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_item_cache.override.orig b/garcon/menu_item_cache.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item_pool.c b/garcon/menu_item_pool.c new file mode 100644 index 0000000..6712ce5 --- /dev/null +++ b/garcon/menu_item_pool.c @@ -0,0 +1,53 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_item_pool.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_item_pool.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ + +#line 23 "menu_item_pool.c" + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymenu_item_pool_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_item_pool_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 53 "menu_item_pool.c" +} diff --git a/garcon/menu_item_pool.c.orig b/garcon/menu_item_pool.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item_pool.defs b/garcon/menu_item_pool.defs new file mode 100644 index 0000000..5c1767a --- /dev/null +++ b/garcon/menu_item_pool.defs @@ -0,0 +1,77 @@ +;; -*- scheme -*- +; object definitions ... +;; Enumerations and flags ... + + +;; From garcon-menu-item-pool.h + +(define-function garcon_menu_item_pool_get_type + (c-name "garcon_menu_item_pool_get_type") + (return-type "GType") +) + +(define-function garcon_menu_item_pool_new + (c-name "garcon_menu_item_pool_new") + (is-constructor-of "GarconMenuItemPool") + (return-type "GarconMenuItemPool*") +) + +(define-method insert + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_insert") + (return-type "none") + (parameters + '("GarconMenuItem*" "item") + ) +) + +(define-method lookup + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_lookup") + (return-type "GarconMenuItem*") + (parameters + '("const-gchar*" "desktop_id") + ) +) + +(define-method lookup_file + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_lookup_file") + (return-type "GarconMenuItem*") + (parameters + '("GFile*" "file") + ) +) + +(define-method foreach + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_foreach") + (return-type "none") + (parameters + '("GHFunc" "func") + '("gpointer" "user_data") + ) +) + +(define-method apply_exclude_rule + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_apply_exclude_rule") + (return-type "none") + (parameters + '("GNode*" "node") + ) +) + +(define-method get_empty + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_get_empty") + (return-type "gboolean") +) + +(define-method clear + (of-object "GarconMenuItemPool") + (c-name "garcon_menu_item_pool_clear") + (return-type "none") +) + + diff --git a/garcon/menu_item_pool.defs.orig b/garcon/menu_item_pool.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_item_pool.override b/garcon/menu_item_pool.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_item_pool.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_item_pool.override.orig b/garcon/menu_item_pool.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_merger.c b/garcon/menu_merger.c new file mode 100644 index 0000000..b0fc676 --- /dev/null +++ b/garcon/menu_merger.c @@ -0,0 +1,114 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_merger.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_merger.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuMerger_Type; + +#line 24 "menu_merger.c" + + + +/* ----------- GarconMenuMerger ----------- */ + +static int +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs) +{ + gchar buf[512]; + + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name); + PyErr_SetString(PyExc_NotImplementedError, buf); + return -1; +} + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuMerger_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuMerger", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)NULL, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)pygobject_no_constructor, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymenu_merger_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_merger_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 113 "menu_merger.c" + pygobject_register_class(d, "GarconMenuMerger", GARCON_TYPE_MENU_MERGER, &PyGarconMenuMerger_Type, Py_BuildValue("(O)", &PyGObject_Type)); +} diff --git a/garcon/menu_merger.c.orig b/garcon/menu_merger.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_merger.defs b/garcon/menu_merger.defs new file mode 100644 index 0000000..4b935b4 --- /dev/null +++ b/garcon/menu_merger.defs @@ -0,0 +1,41 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuMerger + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenuMerger") + (gtype-id "GARCON_TYPE_MENU_MERGER") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-merger.h + +(define-function garcon_menu_merger_get_type + (c-name "garcon_menu_merger_get_type") + (return-type "GType") +) + +(define-function garcon_menu_merger_new + (c-name "garcon_menu_merger_new") + (is-constructor-of "GarconMenuMerger") + (return-type "GarconMenuMerger*") + (parameters + '("GarconMenuTreeProvider*" "provider") + ) +) + +(define-method run + (of-object "GarconMenuMerger") + (c-name "garcon_menu_merger_run") + (return-type "gboolean") + (parameters + '("GList**" "merge_files") + '("GList**" "merge_dirs") + '("GCancellable*" "cancellable") + '("GError**" "error") + ) +) + + diff --git a/garcon/menu_merger.defs.orig b/garcon/menu_merger.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_merger.override b/garcon/menu_merger.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_merger.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_merger.override.orig b/garcon/menu_merger.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_parser.c b/garcon/menu_parser.c new file mode 100644 index 0000000..3ab4ab3 --- /dev/null +++ b/garcon/menu_parser.c @@ -0,0 +1,114 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_parser.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_parser.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuParser_Type; + +#line 24 "menu_parser.c" + + + +/* ----------- GarconMenuParser ----------- */ + +static int +pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs) +{ + gchar buf[512]; + + g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name); + PyErr_SetString(PyExc_NotImplementedError, buf); + return -1; +} + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuParser_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuParser", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)NULL, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)pygobject_no_constructor, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymenu_parser_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_parser_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 113 "menu_parser.c" + pygobject_register_class(d, "GarconMenuParser", GARCON_TYPE_MENU_PARSER, &PyGarconMenuParser_Type, Py_BuildValue("(O)", &PyGObject_Type)); +} diff --git a/garcon/menu_parser.c.orig b/garcon/menu_parser.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_parser.defs b/garcon/menu_parser.defs new file mode 100644 index 0000000..2fbceda --- /dev/null +++ b/garcon/menu_parser.defs @@ -0,0 +1,39 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuParser + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenuParser") + (gtype-id "GARCON_TYPE_MENU_PARSER") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-parser.h + +(define-function garcon_menu_parser_get_type + (c-name "garcon_menu_parser_get_type") + (return-type "GType") +) + +(define-function garcon_menu_parser_new + (c-name "garcon_menu_parser_new") + (is-constructor-of "GarconMenuParser") + (return-type "GarconMenuParser*") + (parameters + '("GFile*" "file") + ) +) + +(define-method run + (of-object "GarconMenuParser") + (c-name "garcon_menu_parser_run") + (return-type "gboolean") + (parameters + '("GCancellable*" "cancellable") + '("GError**" "error") + ) +) + + diff --git a/garcon/menu_parser.defs.orig b/garcon/menu_parser.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_parser.override b/garcon/menu_parser.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_parser.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_parser.override.orig b/garcon/menu_parser.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_separator.c b/garcon/menu_separator.c new file mode 100644 index 0000000..32ffc6c --- /dev/null +++ b/garcon/menu_separator.c @@ -0,0 +1,119 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_separator.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_separator.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuSeparator_Type; + +#line 24 "menu_separator.c" + + + +/* ----------- GarconMenuSeparator ----------- */ + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuSeparator_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuSeparator", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)NULL, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)0, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +static PyObject * +_wrap_garcon_menu_separator_get_default(PyObject *self) +{ + GarconMenuSeparator *ret; + + + ret = garcon_menu_separator_get_default(); + + /* pygobject_new handles NULL checking */ + return pygobject_new((GObject *)ret); +} + +const PyMethodDef pymenu_separator_functions[] = { + { "garcon_menu_separator_get_default", (PyCFunction)_wrap_garcon_menu_separator_get_default, METH_NOARGS, + NULL }, + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_separator_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 117 "menu_separator.c" + pygobject_register_class(d, "GarconMenuSeparator", GARCON_TYPE_MENU_SEPARATOR, &PyGarconMenuSeparator_Type, Py_BuildValue("(O)", &PyGObject_Type)); + pyg_set_object_has_new_constructor(GARCON_TYPE_MENU_SEPARATOR); +} diff --git a/garcon/menu_separator.c.orig b/garcon/menu_separator.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_separator.defs b/garcon/menu_separator.defs new file mode 100644 index 0000000..457c623 --- /dev/null +++ b/garcon/menu_separator.defs @@ -0,0 +1,25 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuSeparator + (in-module "Garcon") + (parent "GObject") + (c-name "GarconMenuSeparator") + (gtype-id "GARCON_TYPE_MENU_SEPARATOR") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-separator.h + +(define-function garcon_menu_separator_get_type + (c-name "garcon_menu_separator_get_type") + (return-type "GType") +) + +(define-function garcon_menu_separator_get_default + (c-name "garcon_menu_separator_get_default") + (return-type "GarconMenuSeparator*") +) + + diff --git a/garcon/menu_separator.defs.orig b/garcon/menu_separator.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_separator.override b/garcon/menu_separator.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_separator.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_separator.override.orig b/garcon/menu_separator.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_tree_provider.c b/garcon/menu_tree_provider.c new file mode 100644 index 0000000..9c86536 --- /dev/null +++ b/garcon/menu_tree_provider.c @@ -0,0 +1,104 @@ +/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ + +#include + + + +#line 6 "menu_tree_provider.override" +#include "pygobject.h" +#include +#include + +#line 13 "menu_tree_provider.c" + + +/* ---------- types from other modules ---------- */ +static PyTypeObject *_PyGObject_Type; +#define PyGObject_Type (*_PyGObject_Type) + + +/* ---------- forward type declarations ---------- */ +PyTypeObject G_GNUC_INTERNAL PyGarconMenuTreeProvider_Type; + +#line 24 "menu_tree_provider.c" + + + +/* ----------- GarconMenuTreeProvider ----------- */ + +PyTypeObject G_GNUC_INTERNAL PyGarconMenuTreeProvider_Type = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + "garcon.MenuTreeProvider", /* tp_name */ + sizeof(PyGObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + /* methods */ + (destructor)0, /* tp_dealloc */ + (printfunc)0, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)0, /* tp_compare */ + (reprfunc)0, /* tp_repr */ + (PyNumberMethods*)0, /* tp_as_number */ + (PySequenceMethods*)0, /* tp_as_sequence */ + (PyMappingMethods*)0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)0, /* tp_str */ + (getattrofunc)0, /* tp_getattro */ + (setattrofunc)0, /* tp_setattro */ + (PyBufferProcs*)0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ + NULL, /* Documentation string */ + (traverseproc)0, /* tp_traverse */ + (inquiry)0, /* tp_clear */ + (richcmpfunc)0, /* tp_richcompare */ + offsetof(PyGObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)0, /* tp_iter */ + (iternextfunc)0, /* tp_iternext */ + (struct PyMethodDef*)NULL, /* tp_methods */ + (struct PyMemberDef*)0, /* tp_members */ + (struct PyGetSetDef*)0, /* tp_getset */ + NULL, /* tp_base */ + NULL, /* tp_dict */ + (descrgetfunc)0, /* tp_descr_get */ + (descrsetfunc)0, /* tp_descr_set */ + offsetof(PyGObject, inst_dict), /* tp_dictoffset */ + (initproc)0, /* tp_init */ + (allocfunc)0, /* tp_alloc */ + (newfunc)0, /* tp_new */ + (freefunc)0, /* tp_free */ + (inquiry)0 /* tp_is_gc */ +}; + + + +/* ----------- functions ----------- */ + +const PyMethodDef pymenu_tree_provider_functions[] = { + { NULL, NULL, 0, NULL } +}; + +/* initialise stuff extension classes */ +void +pymenu_tree_provider_register_classes(PyObject *d) +{ + PyObject *module; + + if ((module = PyImport_ImportModule("gobject")) != NULL) { + _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject"); + if (_PyGObject_Type == NULL) { + PyErr_SetString(PyExc_ImportError, + "cannot import name GObject from gobject"); + return ; + } + } else { + PyErr_SetString(PyExc_ImportError, + "could not import gobject"); + return ; + } + + +#line 103 "menu_tree_provider.c" + pygobject_register_class(d, "GarconMenuTreeProvider", GARCON_TYPE_MENU_TREE_PROVIDER, &PyGarconMenuTreeProvider_Type, NULL); +} diff --git a/garcon/menu_tree_provider.c.orig b/garcon/menu_tree_provider.c.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_tree_provider.defs b/garcon/menu_tree_provider.defs new file mode 100644 index 0000000..af6576b --- /dev/null +++ b/garcon/menu_tree_provider.defs @@ -0,0 +1,31 @@ +;; -*- scheme -*- +; object definitions ... +(define-object MenuTreeProvider + (in-module "Garcon") + (c-name "GarconMenuTreeProvider") + (gtype-id "GARCON_TYPE_MENU_TREE_PROVIDER") +) + +;; Enumerations and flags ... + + +;; From garcon-menu-tree-provider.h + +(define-function garcon_menu_tree_provider_get_type + (c-name "garcon_menu_tree_provider_get_type") + (return-type "GType") +) + +(define-method get_tree + (of-object "GarconMenuTreeProvider") + (c-name "garcon_menu_tree_provider_get_tree") + (return-type "GNode*") +) + +(define-method get_file + (of-object "GarconMenuTreeProvider") + (c-name "garcon_menu_tree_provider_get_file") + (return-type "GFile*") +) + + diff --git a/garcon/menu_tree_provider.defs.orig b/garcon/menu_tree_provider.defs.orig new file mode 100644 index 0000000..e69de29 diff --git a/garcon/menu_tree_provider.override b/garcon/menu_tree_provider.override new file mode 100644 index 0000000..cb67333 --- /dev/null +++ b/garcon/menu_tree_provider.override @@ -0,0 +1,23 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * + */ +%% +headers +#include "pygobject.h" +#include +#include + +%% +include +%% +modulename garcon +%% +import gobject.GObject as PyGObject_Type +%% +ignore +%% +ignore-glob + *_get_type +%% +ignore-win32 +%% diff --git a/garcon/menu_tree_provider.override.orig b/garcon/menu_tree_provider.override.orig new file mode 100644 index 0000000..e69de29 diff --git a/menu/Makefile.am b/menu/Makefile.am deleted file mode 100644 index 0701ebb..0000000 --- a/menu/Makefile.am +++ /dev/null @@ -1,101 +0,0 @@ -@SET_MAKE@ - -PLATFORM_VERSION = 4.2 - -CODEGEN_PATH = @CODEGEN_PATH@ - -common_ldflags = -module -avoid-version -export-symbols-regex init_menu -if PLATFORM_WIN32 -common_ldflags += -no-undefined -endif - -INCLUDES = $(PYTHON_INCLUDES) - -pyxfceexecdir = $(pyexecdir)/xfce4 -pyxfceexec_LTLIBRARIES = _menu.la -pyxfceexec_PYTHON = menu.py - -_menu_la_CFLAGS = $(XFCE4_MENU_CFLAGS) $(PYTHON_CFLAGS) $(PYGTK_CFLAGS) -_menu_la_LDFLAGS = $(common_ldflags) -_menu_la_LIBADD = $(XFCE4_MENU_LIBS) -#-export-symbols-regex -_menu_la_SOURCES = \ - libxfce4menu_config.c \ - libxfce4menu.c \ - menu_and_rules.c \ - menu_directory.c \ - menu_element.c \ - menu_environment.c \ - menu_item_cache.c \ - menu_item.c \ - menu_item_pool.c \ - menu_layout.c \ - menu_monitor.c \ - menu_move.c \ - menu_not_rules.c \ - menu_or_rules.c \ - menu.c \ - menu_rules.c \ - menu_separator.c \ - menu_standard_rules.c \ - menumodule.c - -defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs -defs_DATA = \ - libxfce4menu_config.defs \ - libxfce4menu.defs \ - menu_and_rules.defs \ - menu_directory.defs \ - menu_element.defs \ - menu_environment.defs \ - menu_item_cache.defs \ - menu_item.defs \ - menu_item_pool.defs \ - menu_layout.defs \ - menu_monitor.defs \ - menu_move.defs \ - menu_not_rules.defs \ - menu_or_rules.defs \ - menu.defs \ - menu_rules.defs \ - menu_separator.defs \ - menu_standard_rules.defs - -menu_overrides = \ - libxfce4menu_config.override \ - libxfce4menu.override \ - menu_and_rules.override \ - menu_directory.override \ - menu_element.override \ - menu_environment.override \ - menu_item_cache.override \ - menu_item.override \ - menu_item_pool.override \ - menu_layout.override \ - menu_monitor.override \ - menu_move.override \ - menu_not_rules.override \ - menu_or_rules.override \ - menu.override \ - menu_rules.override \ - menu_separator.override \ - menu_standard_rules.override - -EXTRA_DIST = $(defs_DATA) $(menu_overrides) gen - -nodist__menu_la_SOURCES = - -PYGTK_DEFS="`pkg-config --variable=defsdir pygtk-2.0`" - -.defs.c: - (cd $(srcdir) \ - && $(PYTHON) $(CODEGEN_PATH)/codegen.py \ - $(PYGTK_CODEGEN_DEFINES) \ - --override $*.override \ - --register $(PYGTK_DEFS)/gtk-types.defs \ - --register $(PYGTK_DEFS)/gdk-types.defs \ - --register ../util/desktopentry.defs \ - --prefix py$* $*.defs) > gen-$*.c \ - && cp gen-$*.c $*.c \ - && rm -f gen-$*.c - diff --git a/menu/gen b/menu/gen deleted file mode 100755 index a4e22f5..0000000 --- a/menu/gen +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -inc="`pkg-config --variable=includedir libxfce4menu-0.1`"/xfce4 - -for s in "${inc}"/libxfce4menu-0.1/libxfce4menu/*.h -do - if [ "${s%-private.h}" != "${s}" ] - then - continue - fi - t="${s##*/}" - - t="${t%.h}" - - if [ "${t#netk-}" = "$t" ] - then - defs="${t/-/_}.defs" - defs="${defs/-/_}" - defs="${defs/-/_}" - defs="${defs/-/_}" - defs="${defs/-/_}" - # doesn't work: python -m codegen.h2def "$s" >"${defs}" - python2 /usr/lib/python2.6/site-packages/gtk-2.0/codegen/h2def.py "$s" >"${defs}" - fi -done - -for s in xfce_*.defs -do - t="${s#xfce_}" - mv "$s" "$t" -done diff --git a/menu/libxfce4menu.defs b/menu/libxfce4menu.defs deleted file mode 100644 index 346b83d..0000000 --- a/menu/libxfce4menu.defs +++ /dev/null @@ -1,8 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From libxfce4menu.h - - diff --git a/menu/libxfce4menu.override b/menu/libxfce4menu.override deleted file mode 100644 index 311f7e4..0000000 --- a/menu/libxfce4menu.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/libxfce4menu_config.defs b/menu/libxfce4menu_config.defs deleted file mode 100644 index 38a2343..0000000 --- a/menu/libxfce4menu_config.defs +++ /dev/null @@ -1,18 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From libxfce4menu-config.h - -(define-function libxfce4menu_check_version - (c-name "libxfce4menu_check_version") - (return-type "const-gchar*") - (parameters - '("guint" "required_major") - '("guint" "required_minor") - '("guint" "required_micro") - ) -) - - diff --git a/menu/libxfce4menu_config.override b/menu/libxfce4menu_config.override deleted file mode 100644 index 903f008..0000000 --- a/menu/libxfce4menu_config.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename config -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/libxfce4menu_enum_types.defs b/menu/libxfce4menu_enum_types.defs deleted file mode 100644 index 5532349..0000000 --- a/menu/libxfce4menu_enum_types.defs +++ /dev/null @@ -1,23 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From libxfce4menu-enum-types.h - -(define-function xfce_menu_layout_merge_type_get_type - (c-name "xfce_menu_layout_merge_type_get_type") - (return-type "GType") -) - -(define-function xfce_menu_layout_node_type_get_type - (c-name "xfce_menu_layout_node_type_get_type") - (return-type "GType") -) - -(define-function xfce_menu_monitor_flags_get_type - (c-name "xfce_menu_monitor_flags_get_type") - (return-type "GType") -) - - diff --git a/menu/menu.defs b/menu/menu.defs deleted file mode 100644 index 0677862..0000000 --- a/menu/menu.defs +++ /dev/null @@ -1,191 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu.h - -(define-function xfce_menu_init - (c-name "xfce_menu_init") - (return-type "none") - (parameters - '("const-gchar*" "env") - ) -) - -(define-function xfce_menu_shutdown - (c-name "xfce_menu_shutdown") - (return-type "none") -) - -(define-function xfce_menu_get_type - (c-name "xfce_menu_get_type") - (return-type "GType") -) - -(define-function xfce_menu_get_root - (c-name "xfce_menu_get_root") - (return-type "XfceMenu*") - (parameters - '("GError**" "error") - ) -) - -(define-function xfce_menu_new - (c-name "xfce_menu_new") - (is-constructor-of "XfceMenu") - (return-type "XfceMenu*") - (parameters - '("const-gchar*" "filename") - '("GError**" "error") - ) -) - -(define-method get_filename - (of-object "XfceMenu") - (c-name "xfce_menu_get_filename") - (return-type "const-gchar*") -) - -(define-method set_filename - (of-object "XfceMenu") - (c-name "xfce_menu_set_filename") - (return-type "none") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method get_name - (of-object "XfceMenu") - (c-name "xfce_menu_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "XfceMenu") - (c-name "xfce_menu_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_directory - (of-object "XfceMenu") - (c-name "xfce_menu_get_directory") - (return-type "XfceMenuDirectory*") -) - -(define-method set_directory - (of-object "XfceMenu") - (c-name "xfce_menu_set_directory") - (return-type "none") - (parameters - '("XfceMenuDirectory*" "directory") - ) -) - -(define-method get_directory_dirs - (of-object "XfceMenu") - (c-name "xfce_menu_get_directory_dirs") - (return-type "GSList*") -) - -(define-method get_legacy_dirs - (of-object "XfceMenu") - (c-name "xfce_menu_get_legacy_dirs") - (return-type "GSList*") -) - -(define-method get_app_dirs - (of-object "XfceMenu") - (c-name "xfce_menu_get_app_dirs") - (return-type "GSList*") -) - -(define-method get_only_unallocated - (of-object "XfceMenu") - (c-name "xfce_menu_get_only_unallocated") - (return-type "gboolean") -) - -(define-method set_only_unallocated - (of-object "XfceMenu") - (c-name "xfce_menu_set_only_unallocated") - (return-type "none") - (parameters - '("gboolean" "only_unallocated") - ) -) - -(define-method get_deleted - (of-object "XfceMenu") - (c-name "xfce_menu_get_deleted") - (return-type "gboolean") -) - -(define-method set_deleted - (of-object "XfceMenu") - (c-name "xfce_menu_set_deleted") - (return-type "none") - (parameters - '("gboolean" "deleted") - ) -) - -(define-method get_menus - (of-object "XfceMenu") - (c-name "xfce_menu_get_menus") - (return-type "GSList*") -) - -(define-method add_menu - (of-object "XfceMenu") - (c-name "xfce_menu_add_menu") - (return-type "none") - (parameters - '("XfceMenu*" "submenu") - ) -) - -(define-method get_menu_with_name - (of-object "XfceMenu") - (c-name "xfce_menu_get_menu_with_name") - (return-type "XfceMenu*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_parent - (of-object "XfceMenu") - (c-name "xfce_menu_get_parent") - (return-type "XfceMenu*") -) - -(define-method get_item_pool - (of-object "XfceMenu") - (c-name "xfce_menu_get_item_pool") - (return-type "XfceMenuItemPool*") -) - -(define-method get_items - (of-object "XfceMenu") - (c-name "xfce_menu_get_items") - (return-type "GSList*") -) - -(define-method has_layout - (of-object "XfceMenu") - (c-name "xfce_menu_has_layout") - (return-type "gboolean") -) - -(define-method get_layout_elements - (of-object "XfceMenu") - (c-name "xfce_menu_get_layout_elements") - (return-type "GSList*") -) - - diff --git a/menu/menu.override b/menu/menu.override deleted file mode 100644 index 311f7e4..0000000 --- a/menu/menu.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu.py b/menu/menu.py deleted file mode 100644 index f6c5978..0000000 --- a/menu/menu.py +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env python - -from _menu import * - diff --git a/menu/menu_and_rules.defs b/menu/menu_and_rules.defs deleted file mode 100644 index cf67280..0000000 --- a/menu/menu_and_rules.defs +++ /dev/null @@ -1,19 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-and-rules.h - -(define-function xfce_menu_and_rules_get_type - (c-name "xfce_menu_and_rules_get_type") - (return-type "GType") -) - -(define-function xfce_menu_and_rules_new - (c-name "xfce_menu_and_rules_new") - (is-constructor-of "XfceMenuAndRules") - (return-type "XfceMenuAndRules*") -) - - diff --git a/menu/menu_and_rules.override b/menu/menu_and_rules.override deleted file mode 100644 index 9cfe9d9..0000000 --- a/menu/menu_and_rules.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_and_rules -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_directory.defs b/menu/menu_directory.defs deleted file mode 100644 index e7982c3..0000000 --- a/menu/menu_directory.defs +++ /dev/null @@ -1,100 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-directory.h - -(define-function xfce_menu_directory_get_type - (c-name "xfce_menu_directory_get_type") - (return-type "GType") -) - -(define-method get_filename - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_get_filename") - (return-type "const-gchar*") -) - -(define-method set_filename - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_set_filename") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_comment - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_get_comment") - (return-type "const-gchar*") -) - -(define-method set_comment - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_set_comment") - (return-type "none") - (parameters - '("const-gchar*" "comment") - ) -) - -(define-method get_icon - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_get_icon") - (return-type "const-gchar*") -) - -(define-method set_icon - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_set_icon") - (return-type "none") - (parameters - '("const-gchar*" "icon") - ) -) - -(define-method get_no_display - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_get_no_display") - (return-type "gboolean") -) - -(define-method set_no_display - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_set_no_display") - (return-type "none") - (parameters - '("gboolean" "no_display") - ) -) - -(define-method get_hidden - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_get_hidden") - (return-type "gboolean") -) - -(define-method show_in_environment - (of-object "XfceMenuDirectory") - (c-name "xfce_menu_directory_show_in_environment") - (return-type "gboolean") -) - - diff --git a/menu/menu_directory.override b/menu/menu_directory.override deleted file mode 100644 index 121f8fd..0000000 --- a/menu/menu_directory.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_directory -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_element.defs b/menu/menu_element.defs deleted file mode 100644 index cda6c47..0000000 --- a/menu/menu_element.defs +++ /dev/null @@ -1,31 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -(define-object MenuElement - (in-module "Xfce") - (c-name "XfceMenuElement") - (gtype-id "XFCE_TYPE_MENU_ELEMENT") -) - -;; Enumerations and flags ... - - -;; From xfce-menu-element.h - -(define-function xfce_menu_element_get_type - (c-name "xfce_menu_element_get_type") - (return-type "GType") -) - -(define-method get_name - (of-object "XfceMenuElement") - (c-name "xfce_menu_element_get_name") - (return-type "const-gchar*") -) - -(define-method get_icon_name - (of-object "XfceMenuElement") - (c-name "xfce_menu_element_get_icon_name") - (return-type "const-gchar*") -) - - diff --git a/menu/menu_element.override b/menu/menu_element.override deleted file mode 100644 index f1c056a..0000000 --- a/menu/menu_element.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_element -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_environment.defs b/menu/menu_environment.defs deleted file mode 100644 index 12ec27e..0000000 --- a/menu/menu_environment.defs +++ /dev/null @@ -1,21 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-environment.h - -(define-function xfce_menu_set_environment - (c-name "xfce_menu_set_environment") - (return-type "none") - (parameters - '("const-gchar*" "env") - ) -) - -(define-function xfce_menu_get_environment - (c-name "xfce_menu_get_environment") - (return-type "const-gchar*") -) - - diff --git a/menu/menu_environment.override b/menu/menu_environment.override deleted file mode 100644 index 4383411..0000000 --- a/menu/menu_environment.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_environment -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_item.defs b/menu/menu_item.defs deleted file mode 100644 index f386d16..0000000 --- a/menu/menu_item.defs +++ /dev/null @@ -1,268 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-item.h - -(define-function xfce_menu_item_get_type - (c-name "xfce_menu_item_get_type") - (return-type "GType") -) - -(define-function xfce_menu_item_new - (c-name "xfce_menu_item_new") - (is-constructor-of "XfceMenuItem") - (return-type "XfceMenuItem*") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method get_desktop_id - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_desktop_id") - (return-type "const-gchar*") -) - -(define-method set_desktop_id - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_desktop_id") - (return-type "none") - (parameters - '("const-gchar*" "desktop_id") - ) -) - -(define-method get_filename - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_filename") - (return-type "const-gchar*") -) - -(define-method set_filename - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_filename") - (return-type "none") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method get_command - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_command") - (return-type "const-gchar*") -) - -(define-method set_command - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_command") - (return-type "none") - (parameters - '("const-gchar*" "command") - ) -) - -(define-method get_try_exec - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_try_exec") - (return-type "const-gchar*") -) - -(define-method set_try_exec - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_try_exec") - (return-type "none") - (parameters - '("const-gchar*" "try_exec") - ) -) - -(define-method get_name - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_generic_name - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_generic_name") - (return-type "const-gchar*") -) - -(define-method set_generic_name - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_generic_name") - (return-type "none") - (parameters - '("const-gchar*" "generic_name") - ) -) - -(define-method get_comment - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_comment") - (return-type "const-gchar*") -) - -(define-method set_comment - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_comment") - (return-type "none") - (parameters - '("const-gchar*" "comment") - ) -) - -(define-method get_icon_name - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_icon_name") - (return-type "const-gchar*") -) - -(define-method set_icon_name - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_icon_name") - (return-type "none") - (parameters - '("const-gchar*" "icon_name") - ) -) - -(define-method get_path - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_path") - (return-type "const-gchar*") -) - -(define-method set_path - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_path") - (return-type "none") - (parameters - '("const-gchar*" "path") - ) -) - -(define-method requires_terminal - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_requires_terminal") - (return-type "gboolean") -) - -(define-method set_requires_terminal - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_requires_terminal") - (return-type "none") - (parameters - '("gboolean" "requires_terminal") - ) -) - -(define-method get_no_display - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_no_display") - (return-type "gboolean") -) - -(define-method set_no_display - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_no_display") - (return-type "none") - (parameters - '("gboolean" "no_display") - ) -) - -(define-method supports_startup_notification - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_supports_startup_notification") - (return-type "gboolean") -) - -(define-method set_supports_startup_notification - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_supports_startup_notification") - (return-type "none") - (parameters - '("gboolean" "supports_startup_notification") - ) -) - -(define-method get_categories - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_categories") - (return-type "GList*") -) - -(define-method set_categories - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_set_categories") - (return-type "none") - (parameters - '("GList*" "categories") - ) -) - -(define-method has_category - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_has_category") - (return-type "gboolean") - (parameters - '("const-gchar*" "category") - ) -) - -(define-method show_in_environment - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_show_in_environment") - (return-type "gboolean") -) - -(define-method only_show_in_environment - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_only_show_in_environment") - (return-type "gboolean") -) - -(define-method ref - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_ref") - (return-type "none") -) - -(define-method unref - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_unref") - (return-type "none") -) - -(define-method get_allocated - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_get_allocated") - (return-type "gint") -) - -(define-method increment_allocated - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_increment_allocated") - (return-type "none") -) - -(define-method decrement_allocated - (of-object "XfceMenuItem") - (c-name "xfce_menu_item_decrement_allocated") - (return-type "none") -) - - diff --git a/menu/menu_item.override b/menu/menu_item.override deleted file mode 100644 index f59800b..0000000 --- a/menu/menu_item.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_item -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_item_cache.defs b/menu/menu_item_cache.defs deleted file mode 100644 index b82954f..0000000 --- a/menu/menu_item_cache.defs +++ /dev/null @@ -1,44 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-item-cache.h - -(define-function xfce_menu_item_cache_get_type - (c-name "xfce_menu_item_cache_get_type") - (return-type "GType") -) - -(define-function xfce_menu_item_cache_get_default - (c-name "xfce_menu_item_cache_get_default") - (return-type "XfceMenuItemCache*") -) - -(define-method lookup - (of-object "XfceMenuItemCache") - (c-name "xfce_menu_item_cache_lookup") - (return-type "XfceMenuItem*") - (parameters - '("const-gchar*" "filename") - '("const-gchar*" "desktop_id") - ) -) - -(define-method foreach - (of-object "XfceMenuItemCache") - (c-name "xfce_menu_item_cache_foreach") - (return-type "none") - (parameters - '("GHFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-method invalidate - (of-object "XfceMenuItemCache") - (c-name "xfce_menu_item_cache_invalidate") - (return-type "none") -) - - diff --git a/menu/menu_item_cache.override b/menu/menu_item_cache.override deleted file mode 100644 index 7268f70..0000000 --- a/menu/menu_item_cache.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_item_cache -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_item_pool.defs b/menu/menu_item_pool.defs deleted file mode 100644 index d1a3264..0000000 --- a/menu/menu_item_pool.defs +++ /dev/null @@ -1,62 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-item-pool.h - -(define-function xfce_menu_item_pool_get_type - (c-name "xfce_menu_item_pool_get_type") - (return-type "GType") -) - -(define-function xfce_menu_item_pool_new - (c-name "xfce_menu_item_pool_new") - (is-constructor-of "XfceMenuItemPool") - (return-type "XfceMenuItemPool*") -) - -(define-method insert - (of-object "XfceMenuItemPool") - (c-name "xfce_menu_item_pool_insert") - (return-type "none") - (parameters - '("XfceMenuItem*" "item") - ) -) - -(define-method lookup - (of-object "XfceMenuItemPool") - (c-name "xfce_menu_item_pool_lookup") - (return-type "XfceMenuItem*") - (parameters - '("const-gchar*" "desktop_id") - ) -) - -(define-method foreach - (of-object "XfceMenuItemPool") - (c-name "xfce_menu_item_pool_foreach") - (return-type "none") - (parameters - '("GHFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-method apply_exclude_rule - (of-object "XfceMenuItemPool") - (c-name "xfce_menu_item_pool_apply_exclude_rule") - (return-type "none") - (parameters - '("XfceMenuStandardRules*" "rule") - ) -) - -(define-method get_empty - (of-object "XfceMenuItemPool") - (c-name "xfce_menu_item_pool_get_empty") - (return-type "gboolean") -) - - diff --git a/menu/menu_item_pool.override b/menu/menu_item_pool.override deleted file mode 100644 index 60832e3..0000000 --- a/menu/menu_item_pool.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_item_pool -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_layout.defs b/menu/menu_layout.defs deleted file mode 100644 index 1b6e29c..0000000 --- a/menu/menu_layout.defs +++ /dev/null @@ -1,124 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - -(define-enum MenuLayoutMergeType - (in-module "Xfce") - (c-name "XfceMenuLayoutMergeType") - (gtype-id "XFCE_TYPE_MENU_LAYOUT_MERGE_TYPE") - (values - '("menus" "XFCE_MENU_LAYOUT_MERGE_MENUS") - '("files" "XFCE_MENU_LAYOUT_MERGE_FILES") - '("all" "XFCE_MENU_LAYOUT_MERGE_ALL") - ) -) - -(define-enum MenuLayoutNodeType - (in-module "Xfce") - (c-name "XfceMenuLayoutNodeType") - (gtype-id "XFCE_TYPE_MENU_LAYOUT_NODE_TYPE") - (values - '("invalid" "XFCE_MENU_LAYOUT_NODE_INVALID") - '("filename" "XFCE_MENU_LAYOUT_NODE_FILENAME") - '("menuname" "XFCE_MENU_LAYOUT_NODE_MENUNAME") - '("separator" "XFCE_MENU_LAYOUT_NODE_SEPARATOR") - '("merge" "XFCE_MENU_LAYOUT_NODE_MERGE") - ) -) - - -;; From xfce-menu-layout.h - -(define-function xfce_menu_layout_get_type - (c-name "xfce_menu_layout_get_type") - (return-type "GType") -) - -(define-function xfce_menu_layout_new - (c-name "xfce_menu_layout_new") - (is-constructor-of "XfceMenuLayout") - (return-type "XfceMenuLayout*") -) - -(define-method add_filename - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_add_filename") - (return-type "none") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method add_menuname - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_add_menuname") - (return-type "none") - (parameters - '("const-gchar*" "menuname") - ) -) - -(define-method add_separator - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_add_separator") - (return-type "none") -) - -(define-method add_merge - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_add_merge") - (return-type "none") - (parameters - '("XfceMenuLayoutMergeType" "type") - ) -) - -(define-method get_nodes - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_get_nodes") - (return-type "GSList*") -) - -(define-method get_filename_used - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_get_filename_used") - (return-type "gboolean") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method get_menuname_used - (of-object "XfceMenuLayout") - (c-name "xfce_menu_layout_get_menuname_used") - (return-type "gboolean") - (parameters - '("const-gchar*" "menuname") - ) -) - -(define-method get_type - (of-object "XfceMenuLayoutNode") - (c-name "xfce_menu_layout_node_get_type") - (return-type "XfceMenuLayoutNodeType") -) - -(define-method get_filename - (of-object "XfceMenuLayoutNode") - (c-name "xfce_menu_layout_node_get_filename") - (return-type "const-gchar*") -) - -(define-method get_menuname - (of-object "XfceMenuLayoutNode") - (c-name "xfce_menu_layout_node_get_menuname") - (return-type "const-gchar*") -) - -(define-method get_merge_type - (of-object "XfceMenuLayoutNode") - (c-name "xfce_menu_layout_node_get_merge_type") - (return-type "XfceMenuLayoutMergeType") -) - - diff --git a/menu/menu_layout.override b/menu/menu_layout.override deleted file mode 100644 index f961c4c..0000000 --- a/menu/menu_layout.override +++ /dev/null @@ -1,25 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include -#define XFCE_TYPE_MENU_LAYOUT_TYPE XFCE_TYPE_MENU_LAYOUT -#define XFCE_MENU_LAYOUT_TYPE XFCE_MENU_LAYOUT - -%% -include -%% -modulename menu_layout -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_monitor.defs b/menu/menu_monitor.defs deleted file mode 100644 index 1f1dcc4..0000000 --- a/menu/menu_monitor.defs +++ /dev/null @@ -1,104 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - -(define-flags MenuMonitorFlags - (in-module "Xfce") - (c-name "XfceMenuMonitorFlags") - (gtype-id "XFCE_TYPE_MENU_MONITOR_FLAGS") - (values - '("directories" "XFCE_MENU_MONITOR_DIRECTORIES") - '("menu-files" "XFCE_MENU_MONITOR_MENU_FILES") - '("directory-files" "XFCE_MENU_MONITOR_DIRECTORY_FILES") - '("desktop-files" "XFCE_MENU_MONITOR_DESKTOP_FILES") - ) -) - - -;; From xfce-menu-monitor.h - -(define-function xfce_menu_monitor_set_vtable - (c-name "xfce_menu_monitor_set_vtable") - (return-type "none") - (parameters - '("XfceMenuMonitorVTable*" "vtable") - '("gpointer" "user_data") - ) -) - -(define-method monitor_add_item - (of-object "XfceMenu") - (c-name "xfce_menu_monitor_add_item") - (return-type "gpointer") - (parameters - '("XfceMenuItem*" "item") - ) -) - -(define-method monitor_remove_item - (of-object "XfceMenu") - (c-name "xfce_menu_monitor_remove_item") - (return-type "none") - (parameters - '("XfceMenuItem*" "item") - ) -) - -(define-method monitor_add_directory - (of-object "XfceMenu") - (c-name "xfce_menu_monitor_add_directory") - (return-type "gpointer") - (parameters - '("const-gchar*" "directory") - ) -) - -(define-method monitor_remove_directory - (of-object "XfceMenu") - (c-name "xfce_menu_monitor_remove_directory") - (return-type "none") - (parameters - '("const-gchar*" "directory") - ) -) - -(define-method monitor_add_file - (of-object "XfceMenu") - (c-name "xfce_menu_monitor_add_file") - (return-type "gpointer") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method monitor_remove_file - (of-object "XfceMenu") - (c-name "xfce_menu_monitor_remove_file") - (return-type "none") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-function xfce_menu_monitor_set_flags - (c-name "xfce_menu_monitor_set_flags") - (return-type "none") - (parameters - '("XfceMenuMonitorFlags" "flags") - ) -) - -(define-function xfce_menu_monitor_get_flags - (c-name "xfce_menu_monitor_get_flags") - (return-type "XfceMenuMonitorFlags") -) - -(define-function xfce_menu_monitor_has_flags - (c-name "xfce_menu_monitor_has_flags") - (return-type "gboolean") - (parameters - '("XfceMenuMonitorFlags" "flags") - ) -) - - diff --git a/menu/menu_monitor.override b/menu/menu_monitor.override deleted file mode 100644 index 8cc881f..0000000 --- a/menu/menu_monitor.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_monitor -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_move.defs b/menu/menu_move.defs deleted file mode 100644 index 0154646..0000000 --- a/menu/menu_move.defs +++ /dev/null @@ -1,49 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-move.h - -(define-function xfce_menu_move_get_type - (c-name "xfce_menu_move_get_type") - (return-type "GType") -) - -(define-function xfce_menu_move_new - (c-name "xfce_menu_move_new") - (is-constructor-of "XfceMenuMove") - (return-type "XfceMenuMove*") -) - -(define-method get_old - (of-object "XfceMenuMove") - (c-name "xfce_menu_move_get_old") - (return-type "const-gchar*") -) - -(define-method set_old - (of-object "XfceMenuMove") - (c-name "xfce_menu_move_set_old") - (return-type "none") - (parameters - '("const-gchar*" "old") - ) -) - -(define-method get_new - (of-object "XfceMenuMove") - (c-name "xfce_menu_move_get_new") - (return-type "const-gchar*") -) - -(define-method set_new - (of-object "XfceMenuMove") - (c-name "xfce_menu_move_set_new") - (return-type "none") - (parameters - '("const-gchar*" "new") - ) -) - - diff --git a/menu/menu_move.override b/menu/menu_move.override deleted file mode 100644 index faecbdd..0000000 --- a/menu/menu_move.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_move -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_not_rules.defs b/menu/menu_not_rules.defs deleted file mode 100644 index 1675489..0000000 --- a/menu/menu_not_rules.defs +++ /dev/null @@ -1,19 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-not-rules.h - -(define-function xfce_menu_not_rules_get_type - (c-name "xfce_menu_not_rules_get_type") - (return-type "GType") -) - -(define-function xfce_menu_not_rules_new - (c-name "xfce_menu_not_rules_new") - (is-constructor-of "XfceMenuNotRules") - (return-type "XfceMenuNotRules*") -) - - diff --git a/menu/menu_not_rules.override b/menu/menu_not_rules.override deleted file mode 100644 index 44f096e..0000000 --- a/menu/menu_not_rules.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_not_rules -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_or_rules.defs b/menu/menu_or_rules.defs deleted file mode 100644 index 1a0cfa3..0000000 --- a/menu/menu_or_rules.defs +++ /dev/null @@ -1,19 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-or-rules.h - -(define-function xfce_menu_or_rules_get_type - (c-name "xfce_menu_or_rules_get_type") - (return-type "GType") -) - -(define-function xfce_menu_or_rules_new - (c-name "xfce_menu_or_rules_new") - (is-constructor-of "XfceMenuOrRules") - (return-type "XfceMenuOrRules*") -) - - diff --git a/menu/menu_or_rules.override b/menu/menu_or_rules.override deleted file mode 100644 index 959eda3..0000000 --- a/menu/menu_or_rules.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_or_rules -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_rules.defs b/menu/menu_rules.defs deleted file mode 100644 index 97b7b52..0000000 --- a/menu/menu_rules.defs +++ /dev/null @@ -1,61 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -(define-object MenuRules - (in-module "Xfce") - (c-name "XfceMenuRules") - (gtype-id "XFCE_TYPE_MENU_RULES") -) - -;; Enumerations and flags ... - - -;; From xfce-menu-rules.h - -(define-function xfce_menu_rules_get_type - (c-name "xfce_menu_rules_get_type") - (return-type "GType") -) - -(define-method match - (of-object "XfceMenuRules") - (c-name "xfce_menu_rules_match") - (return-type "gboolean") - (parameters - '("XfceMenuItem*" "item") - ) -) - -(define-method add_all - (of-object "XfceMenuRules") - (c-name "xfce_menu_rules_add_all") - (return-type "none") -) - -(define-method add_rules - (of-object "XfceMenuRules") - (c-name "xfce_menu_rules_add_rules") - (return-type "none") - (parameters - '("XfceMenuRules*" "additional_rules") - ) -) - -(define-method add_filename - (of-object "XfceMenuRules") - (c-name "xfce_menu_rules_add_filename") - (return-type "none") - (parameters - '("const-gchar*" "filename") - ) -) - -(define-method add_category - (of-object "XfceMenuRules") - (c-name "xfce_menu_rules_add_category") - (return-type "none") - (parameters - '("const-gchar*" "category") - ) -) - - diff --git a/menu/menu_rules.override b/menu/menu_rules.override deleted file mode 100644 index c1585d4..0000000 --- a/menu/menu_rules.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_rules -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_separator.defs b/menu/menu_separator.defs deleted file mode 100644 index 541f193..0000000 --- a/menu/menu_separator.defs +++ /dev/null @@ -1,18 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -;; Enumerations and flags ... - - -;; From xfce-menu-separator.h - -(define-function xfce_menu_separator_get_type - (c-name "xfce_menu_separator_get_type") - (return-type "GType") -) - -(define-function xfce_menu_separator_get_default - (c-name "xfce_menu_separator_get_default") - (return-type "XfceMenuSeparator*") -) - - diff --git a/menu/menu_separator.override b/menu/menu_separator.override deleted file mode 100644 index f5e7137..0000000 --- a/menu/menu_separator.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_separator -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menu_standard_rules.defs b/menu/menu_standard_rules.defs deleted file mode 100644 index 65f9b01..0000000 --- a/menu/menu_standard_rules.defs +++ /dev/null @@ -1,35 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -(define-object MenuStandardRules - (in-module "Xfce") - (parent "GObject") - (c-name "XfceMenuStandardRules") - (gtype-id "XFCE_TYPE_MENU_STANDARD_RULES") -) - -;; Enumerations and flags ... - - -;; From xfce-menu-standard-rules.h - -(define-function xfce_menu_standard_rules_get_type - (c-name "xfce_menu_standard_rules_get_type") - (return-type "GType") -) - -(define-method get_include - (of-object "XfceMenuStandardRules") - (c-name "xfce_menu_standard_rules_get_include") - (return-type "gboolean") -) - -(define-method set_include - (of-object "XfceMenuStandardRules") - (c-name "xfce_menu_standard_rules_set_include") - (return-type "none") - (parameters - '("gboolean" "include") - ) -) - - diff --git a/menu/menu_standard_rules.override b/menu/menu_standard_rules.override deleted file mode 100644 index 37230be..0000000 --- a/menu/menu_standard_rules.override +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - * - */ -%% -headers -#include "pygobject.h" -#include -#include - -%% -include -%% -modulename menu_standard_rules -%% -import gobject.GObject as PyGObject_Type -%% -ignore -%% -ignore-glob - *_get_type -%% -ignore-win32 -%% diff --git a/menu/menumodule.c b/menu/menumodule.c deleted file mode 100644 index cc04061..0000000 --- a/menu/menumodule.c +++ /dev/null @@ -1,141 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -/* include this first, before NO_IMPORT_PYGOBJECT is defined */ -#include -#include - -#include - -extern PyMethodDef pylibxfce4menu_functions[]; -extern PyMethodDef pylibxfce4menu_config_functions[]; -extern PyMethodDef pymenu_and_rules_functions[]; -extern PyMethodDef pymenu_functions[]; -extern PyMethodDef pymenu_directory_functions[]; -extern PyMethodDef pymenu_element_functions[]; -extern PyMethodDef pymenu_environment_functions[]; -extern PyMethodDef pymenu_item_functions[]; -extern PyMethodDef pymenu_item_cache_functions[]; -extern PyMethodDef pymenu_item_pool_functions[]; -extern PyMethodDef pymenu_layout_functions[]; -extern PyMethodDef pymenu_monitor_functions[]; -extern PyMethodDef pymenu_move_functions[]; -extern PyMethodDef pymenu_not_rules_functions[]; -extern PyMethodDef pymenu_or_rules_functions[]; -extern PyMethodDef pymenu_rules_functions[]; -extern PyMethodDef pymenu_separator_functions[]; -extern PyMethodDef pymenu_standard_rules_functions[]; - -void pylibxfce4menu_register_classes(PyObject *d); -void pylibxfce4menu_config_register_classes(PyObject *d); -void pymenu_and_rules_register_classes(PyObject *d); -void pymenu_register_classes(PyObject *d); -void pymenu_directory_register_classes(PyObject *d); -void pymenu_element_register_classes(PyObject *d); -void pymenu_environment_register_classes(PyObject *d); -void pymenu_item_register_classes(PyObject *d); -void pymenu_item_cache_register_classes(PyObject *d); -void pymenu_item_pool_register_classes(PyObject *d); -void pymenu_layout_register_classes(PyObject *d); -void pymenu_monitor_register_classes(PyObject *d); -void pymenu_move_register_classes(PyObject *d); -void pymenu_not_rules_register_classes(PyObject *d); -void pymenu_or_rules_register_classes(PyObject *d); -void pymenu_rules_register_classes(PyObject *d); -void pymenu_separator_register_classes(PyObject *d); -void pymenu_standard_rules_register_classes(PyObject *d); - -void pymenu_layout_add_constants(PyObject *module, const gchar *strip_prefix); -void pymenu_monitor_add_constants(PyObject *module, const gchar *strip_prefix); - - -static PyMethodDef all_functions[1000]; - -static PyMethodDef* each_functions[] = { - pylibxfce4menu_functions, - pylibxfce4menu_config_functions, - pymenu_and_rules_functions, - pymenu_functions, - pymenu_directory_functions, - pymenu_element_functions, - pymenu_environment_functions, - pymenu_item_functions, - pymenu_item_cache_functions, - pymenu_item_pool_functions, - pymenu_layout_functions, - pymenu_monitor_functions, - pymenu_move_functions, - pymenu_not_rules_functions, - pymenu_or_rules_functions, - pymenu_rules_functions, - pymenu_separator_functions, - pymenu_standard_rules_functions, -}; - -static void -my_register1() -{ - PyObject *m, *d; - int i; - int j; - int cnt; - - cnt = 0; - - for(i = 0; i < sizeof(each_functions) / sizeof(each_functions[0]); i++) { - for(j = 0; each_functions[i][j].ml_name != NULL; j++) { - if (cnt >= sizeof(all_functions) / sizeof(all_functions[0])) { - fprintf (stderr, "pyxfce: Internal Error: too many functions"); - exit (1); - } - - all_functions[cnt++] = each_functions[i][j]; - } - } - - m = Py_InitModule("_menu", all_functions); - - pymenu_layout_add_constants(m, "XFCE_"); - pymenu_monitor_add_constants(m, "XFCE_"); - - /*PyModule_AddStringConstant(m, "STARTUP_NOTIFICATION_ID_KEY", XFCE_STARTUP_NOTIFICATION_ENVIRONMENT_DESKTOP_STARTUP_ID);*/ - - d = PyModule_GetDict(m); - pylibxfce4menu_register_classes(d); - pylibxfce4menu_config_register_classes(d); - pymenu_and_rules_register_classes(d); - pymenu_register_classes(d); - pymenu_directory_register_classes(d); - pymenu_element_register_classes(d); - pymenu_environment_register_classes(d); - pymenu_item_register_classes(d); - pymenu_item_cache_register_classes(d); - pymenu_item_pool_register_classes(d); - pymenu_layout_register_classes(d); - pymenu_monitor_register_classes(d); - pymenu_move_register_classes(d); - pymenu_not_rules_register_classes(d); - pymenu_or_rules_register_classes(d); - pymenu_rules_register_classes(d); - pymenu_separator_register_classes(d); - pymenu_standard_rules_register_classes(d); -} - -DL_EXPORT(void) -init_menu(void) -{ - /* set the default python encoding to utf-8 */ - PyUnicode_SetDefaultEncoding("utf-8"); - - init_pygobject (); - - my_register1 (); -} - - diff --git a/panel/xfce-panel-macros-47.h b/panel/xfce-panel-macros-47.h index c7db7be..b534224 100644 --- a/panel/xfce-panel-macros-47.h +++ b/panel/xfce-panel-macros-47.h @@ -40,6 +40,19 @@ G_BEGIN_DECLS * * Since: 4.8 **/ + +/* FIXME[4.10]: + * PROVIDER_PROP_TYPE_SET_MODE replaces PROVIDER_PROP_TYPE_SET_ORIENTATION + case PROVIDER_PROP_TYPE_SET_MODE: \ + xfce_panel_plugin_provider_set_mode (provider, value); \ + break; \ + \ + case PROVIDER_PROP_TYPE_SET_ORIENTATION: \ + xfce_panel_plugin_provider_set_orientation (provider, value); \ + break; \ + \ +*/ + #define PYXFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL_BODY(construct_func) \ static GdkAtom _xpp_atom = GDK_NONE; \ static gdouble _xpp_alpha = 1.00; \ @@ -101,8 +114,8 @@ G_BEGIN_DECLS xfce_panel_plugin_provider_set_locked (provider, !!value); \ break; \ \ - case PROVIDER_PROP_TYPE_SET_ORIENTATION: \ - xfce_panel_plugin_provider_set_orientation (provider, value); \ + case PROVIDER_PROP_TYPE_SET_MODE: \ + xfce_panel_plugin_provider_set_mode (provider, value); \ break; \ \ case PROVIDER_PROP_TYPE_SET_SCREEN_POSITION: \