gedit r6737 - in trunk: . plugin-loaders/python/bindings
- From: jessevdk svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6737 - in trunk: . plugin-loaders/python/bindings
- Date: Sun, 28 Dec 2008 11:48:49 +0000 (UTC)
Author: jessevdk
Date: Sun Dec 28 11:48:48 2008
New Revision: 6737
URL: http://svn.gnome.org/viewvc/gedit?rev=6737&view=rev
Log:
* plugin-loaders/python/bindings/gedit.override: Added custom
wrapper for gedit_statusbar_flash_message to avoid formatting
security problems (fixes #565778)
Modified:
trunk/ChangeLog
trunk/plugin-loaders/python/bindings/gedit.override
Modified: trunk/plugin-loaders/python/bindings/gedit.override
==============================================================================
--- trunk/plugin-loaders/python/bindings/gedit.override (original)
+++ trunk/plugin-loaders/python/bindings/gedit.override Sun Dec 28 11:48:48 2008
@@ -440,3 +440,20 @@
return Py_None;
}
%%
+override gedit_statusbar_flash_message kwargs
+static PyObject *
+_wrap_gedit_statusbar_flash_message(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+ static char *kwlist[] = { "context_id", "message", NULL };
+ int context_id;
+ char *message;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,"is:GeditStatusbar.flash_message", kwlist, &context_id, &message))
+ return NULL;
+
+ gedit_statusbar_flash_message(GEDIT_STATUSBAR(self->obj), context_id, "%s", message);
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+%%
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]