[Xfce4-commits] <pyxfce:master> remove unused files from 'pyxfce/panel'.

Danny Milosavljevic noreply at xfce.org
Sun Dec 26 20:10:02 CET 2010


Updating branch refs/heads/master
         to 77c0630a736158bbac5a82b38e64d63b22def281 (commit)
       from e8ae0bda3e33f0bde4ae46fc45848f575c3679aa (commit)

commit 77c0630a736158bbac5a82b38e64d63b22def281
Author: Danny Milosavljevic <dannym at xfce.org>
Date:   Sun Dec 26 20:06:23 2010 +0100

    remove unused files from 'pyxfce/panel'.

 panel/Makefile.am         |    2 -
 panel/enum_types.c        |   55 ---------------------------------------------
 panel/enum_types.defs     |   18 --------------
 panel/enum_types.override |   25 --------------------
 4 files changed, 0 insertions(+), 100 deletions(-)

diff --git a/panel/Makefile.am b/panel/Makefile.am
index 892262b..c2ec5c9 100644
--- a/panel/Makefile.am
+++ b/panel/Makefile.am
@@ -20,7 +20,6 @@ _panel_la_LIBADD = $(MIGHTY_MOUSE_LIBS) $(PYTHON_LIBS)
 _panel_la_SOURCES = \
 	arrow_button.c \
 	enums.c \
-	enum_types.c \
 	external_plugin.c \
 	itembar.c \
 	plugin_iface.c \
@@ -31,7 +30,6 @@ defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs
 defs_DATA = \
 	arrow_button.defs \
 	enums.defs \
-	enum_types.defs \
 	external_plugin.defs \
 	itembar.defs \
 	plugin_iface.defs \
diff --git a/panel/enum_types.c b/panel/enum_types.c
deleted file mode 100644
index 79feb24..0000000
--- a/panel/enum_types.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */
-
-#include <Python.h>
-
-
-
-#line 6 "enum_types.override"
-#include "pygobject.h"
-#include <gtk/gtk.h>
-#include <libxfce4panel/libxfce4panel-enum-types.h>
-
-extern PyTypeObject PyGtkWidget_Type;
-
-#line 15 "enum_types.c"
-
-
-/* ---------- types from other modules ---------- */
-static PyTypeObject *_PyGObject_Type;
-#define PyGObject_Type (*_PyGObject_Type)
-
-
-/* ---------- forward type declarations ---------- */
-
-#line 25 "enum_types.c"
-
-
-
-/* ----------- functions ----------- */
-
-const PyMethodDef pyenum_types_functions[] = {
-    { NULL, NULL, 0, NULL }
-};
-
-/* initialise stuff extension classes */
-void
-pyenum_types_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 55 "enum_types.c"
-}
diff --git a/panel/enum_types.defs b/panel/enum_types.defs
deleted file mode 100644
index 68184d8..0000000
--- a/panel/enum_types.defs
+++ /dev/null
@@ -1,18 +0,0 @@
-;; -*- scheme -*-
-; object definitions ...
-;; Enumerations and flags ...
-
-
-;; From /usr/local/include/xfce4/libxfce4panel/xfce-panel-enum-types.h
-
-(define-function xfce_handle_style_get_type
-  (c-name "xfce_handle_style_get_type")
-  (return-type "GType")
-)
-
-(define-function xfce_screen_position_get_type
-  (c-name "xfce_screen_position_get_type")
-  (return-type "GType")
-)
-
-
diff --git a/panel/enum_types.override b/panel/enum_types.override
deleted file mode 100644
index 096d70e..0000000
--- a/panel/enum_types.override
+++ /dev/null
@@ -1,25 +0,0 @@
-/* -*- Mode: C; c-basic-offset: 4 -*-
- *
- */
-%%
-headers
-#include "pygobject.h"
-#include <gtk/gtk.h>
-#include <libxfce4panel/libxfce4panel-enum-types.h>
-
-extern PyTypeObject PyGtkWidget_Type;
-
-%%
-include
-%%
-modulename enumtypes
-%%
-import gobject.GObject as PyGObject_Type
-%%
-ignore
-%%
-ignore-glob
-  *_get_type
-%%
-ignore-win32
-%%



More information about the Xfce4-commits mailing list