pygobject r955 - in trunk: . glib gobject
- From: paulp svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r955 - in trunk: . glib gobject
- Date: Wed, 27 Aug 2008 22:20:34 +0000 (UTC)
Author: paulp
Date: Wed Aug 27 22:20:34 2008
New Revision: 955
URL: http://svn.gnome.org/viewvc/pygobject?rev=955&view=rev
Log:
Mark pyglib_notify_on_enabling_threads() as private (also rename).
Modified:
trunk/ChangeLog
trunk/glib/pyglib.c
trunk/glib/pyglib.h
trunk/gobject/gobjectmodule.c
Modified: trunk/glib/pyglib.c
==============================================================================
--- trunk/glib/pyglib.c (original)
+++ trunk/glib/pyglib.c Wed Aug 27 22:20:34 2008
@@ -137,7 +137,7 @@
}
void
-pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback)
+_pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback)
{
/* Ignore, threads cannot be enabled. */
}
@@ -174,7 +174,7 @@
}
void
-pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback)
+_pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback)
{
if (callback && !pyglib_threads_enabled())
thread_enabling_callbacks = g_slist_append(thread_enabling_callbacks, callback);
Modified: trunk/glib/pyglib.h
==============================================================================
--- trunk/glib/pyglib.h (original)
+++ trunk/glib/pyglib.h Wed Aug 27 22:20:34 2008
@@ -36,7 +36,6 @@
PyGILState_STATE pyglib_gil_state_ensure(void);
void pyglib_gil_state_release(PyGILState_STATE state);
int pyglib_enable_threads(void);
-void pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback);
gboolean pyglib_error_check(GError **error);
gboolean pyglib_gerror_exception_check(GError **error);
PyObject *pyglib_register_exception_for_domain(gchar *name,
@@ -52,6 +51,9 @@
GOptionGroup * pyglib_option_group_transfer_group(PyObject *self);
PyObject * pyglib_float_from_timeval(GTimeVal timeval);
+/* Private: for gobject <-> glib interaction only. */
+void _pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback);
+
#define pyglib_begin_allow_threads \
G_STMT_START { \
PyThreadState *_save = NULL; \
Modified: trunk/gobject/gobjectmodule.c
==============================================================================
--- trunk/gobject/gobjectmodule.c (original)
+++ trunk/gobject/gobjectmodule.c Wed Aug 27 22:20:34 2008
@@ -2602,6 +2602,6 @@
PyDict_GetItemString(d, "signal_accumulator_true_handled");
pygobject_api_functions.threads_enabled = pyglib_threads_enabled();
- pyglib_notify_on_enabling_threads(pyg_note_threads_enabled);
+ _pyglib_notify_on_enabling_threads(pyg_note_threads_enabled);
}
PYGLIB_MODULE_END
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]