51 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* -*- Mode: C; c-basic-offset: 4 -*- */
 | 
						|
%%
 | 
						|
headers
 | 
						|
#include <Python.h>
 | 
						|
 | 
						|
#define NO_IMPORT_PYGOBJECT
 | 
						|
#include <pygobject.h>
 | 
						|
 | 
						|
#include <gtkmozembed.h>
 | 
						|
 | 
						|
%%
 | 
						|
import gobject.GObject as PyGObject_Type
 | 
						|
import gtk.Object as PyGtkObject_Type
 | 
						|
import gtk.Bin as PyGtkBin_Type
 | 
						|
%%
 | 
						|
ignore-glob
 | 
						|
  *_get_type
 | 
						|
  _*
 | 
						|
%%
 | 
						|
override gtk_moz_embed_set_comp_path_deprecated kwargs
 | 
						|
static PyObject *
 | 
						|
_wrap_gtk_moz_embed_set_comp_path_deprecated(PyObject *self, PyObject *args, PyObject *kwargs)
 | 
						|
{
 | 
						|
    static char *kwlist[] = { "aPath", NULL };
 | 
						|
    char *aPath;
 | 
						|
 | 
						|
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s:gtk_moz_embed_set_comp_path", kwlist, &aPath))
 | 
						|
        return NULL;
 | 
						|
    if (PyErr_Warn(PyExc_DeprecationWarning, "renamed to gtkmozembed.set_comp_path") < 0)
 | 
						|
        return NULL;
 | 
						|
    gtk_moz_embed_set_comp_path(aPath);
 | 
						|
    Py_INCREF(Py_None);
 | 
						|
    return Py_None;
 | 
						|
}
 | 
						|
%%
 | 
						|
override gtk_moz_embed_set_profile_path_deprecated kwargs
 | 
						|
static PyObject *
 | 
						|
_wrap_gtk_moz_embed_set_profile_path_deprecated(PyObject *self, PyObject *args, PyObject *kwargs)
 | 
						|
{
 | 
						|
    static char *kwlist[] = { "aDir", "aName", NULL };
 | 
						|
    char *aDir, *aName;
 | 
						|
 | 
						|
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ss:gtk_moz_embed_set_profile_path", kwlist, &aDir, &aName))
 | 
						|
        return NULL;
 | 
						|
    if (PyErr_Warn(PyExc_DeprecationWarning, "renamed to gtkmozembed.set_profile_path") < 0)
 | 
						|
        return NULL;
 | 
						|
    gtk_moz_embed_set_profile_path(aDir, aName);
 | 
						|
    Py_INCREF(Py_None);
 | 
						|
    return Py_None;
 | 
						|
}
 |