summaryrefslogtreecommitdiff
path: root/plugin-loaders/python/bindings/plumautils.override
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-06 14:42:18 +0300
committermonsta <[email protected]>2016-11-06 14:42:18 +0300
commit65371f53dbb06180b750dad7c19e7bcf0f8651d6 (patch)
tree0b387d0a17207e13ce662da55970c97b50bc55db /plugin-loaders/python/bindings/plumautils.override
parent7dd02941b3647477dfe0cf8177c2eeff8bfe7b84 (diff)
downloadpluma-65371f53dbb06180b750dad7c19e7bcf0f8651d6.tar.bz2
pluma-65371f53dbb06180b750dad7c19e7bcf0f8651d6.tar.xz
drop Python plugins support and --enable-python build option
it requires PyGTK so won't even build with GTK+3 but keep plugins themselves for future porting to libpeas
Diffstat (limited to 'plugin-loaders/python/bindings/plumautils.override')
-rw-r--r--plugin-loaders/python/bindings/plumautils.override85
1 files changed, 0 insertions, 85 deletions
diff --git a/plugin-loaders/python/bindings/plumautils.override b/plugin-loaders/python/bindings/plumautils.override
deleted file mode 100644
index 3b2116e9..00000000
--- a/plugin-loaders/python/bindings/plumautils.override
+++ /dev/null
@@ -1,85 +0,0 @@
-%%
-headers
-#define NO_IMPORT_PYGOBJECT
-#define NO_IMPORT_PYGTK
-#include <pygobject.h>
-#include <pygtk/pygtk.h>
-
-#include "pluma-utils.h"
-
-void pyplumautils_register_classes (PyObject *d);
-void pyplumautils_add_constants (PyObject *module, const gchar *strip_prefix);
-
-%%
-modulename pluma.utils
-%%
-import gtk.Widget as PyGtkWidget_Type
-import gtk.TreeView as PyGtkTreeView_Type
-import gtk.Menu as PyGtkMenu_Type
-%%
-ignore-glob
- _*
-%%
-override pluma_utils_menu_position_under_widget kwargs
-static PyObject *
-_wrap_pluma_utils_menu_position_under_widget (PyObject *self,
- PyObject *args,
- PyObject *kwargs)
-{
- static char *kwlist[] = { "menu", "widget", NULL };
- PyObject *py_menu, *py_widget;
- GtkMenu *menu;
- GtkWidget *widget;
- gint x, y;
- gboolean push_in;
- PyObject *tuple;
-
- if (!PyArg_ParseTupleAndKeywords (args, kwargs,
- "O!O!", kwlist,
- &PyGtkMenu_Type, &py_menu,
- &PyGtkWidget_Type, &py_widget))
- return NULL;
-
- menu = GTK_MENU (pygobject_get (py_menu));
- widget = GTK_WIDGET (pygobject_get (py_widget));
-
- pluma_utils_menu_position_under_widget (menu, &x, &y, &push_in, widget);
-
- tuple = PyTuple_New (3);
- PyTuple_SetItem (tuple, 0, PyInt_FromLong (x));
- PyTuple_SetItem (tuple, 1, PyInt_FromLong (y));
- PyTuple_SetItem (tuple, 2, PyBool_FromLong (push_in));
- return tuple;
-}
-%%
-override pluma_utils_menu_position_under_tree_view kwargs
-static PyObject *
-_wrap_pluma_utils_menu_position_under_tree_view (PyObject *self,
- PyObject *args,
- PyObject *kwargs)
-{
- static char *kwlist[] = { "menu", "tree_view", NULL };
- PyObject *py_menu, *py_view;
- GtkMenu *menu;
- GtkTreeView *view;
- gint x, y;
- gboolean push_in;
- PyObject *tuple;
-
- if (!PyArg_ParseTupleAndKeywords (args, kwargs,
- "O!O!", kwlist,
- &PyGtkMenu_Type, &py_menu,
- &PyGtkTreeView_Type, &py_view))
- return NULL;
-
- menu = GTK_MENU (pygobject_get (py_menu));
- view = GTK_TREE_VIEW (pygobject_get (py_view));
-
- pluma_utils_menu_position_under_widget (menu, &x, &y, &push_in, view);
-
- tuple = PyTuple_New (3);
- PyTuple_SetItem (tuple, 0, PyInt_FromLong (x));
- PyTuple_SetItem (tuple, 1, PyInt_FromLong (y));
- PyTuple_SetItem (tuple, 2, PyBool_FromLong (push_in));
- return tuple;
-}