From d2c71ff53b42afec6bf4ebca3bcf801dce5cfbb2 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 20 Jul 2004 11:05:41 +0000 Subject: Simplify, fix name in exceptions and remove warning. * gtk/gtk.override (_wrap_gtk_file_chooser_dialog_new): Simplify, fix name in exceptions and remove warning. * gobject/pygenum.c (pyg_enum_from_gtype): Fall back to int for unregistered enums. * gobject/pygflags.c (pyg_flags_from_gtype): Ditto * gobject/gobjectmodule.c (initgobject): Rename back to MainLoop, MainContext --- gobject/gobjectmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gobject/gobjectmodule.c') diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 9de16a5..6027254 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -1843,8 +1843,8 @@ initgobject(void) PyGFlags_Type.tp_base = &PyInt_Type; REGISTER_GTYPE(d, PyGFlags_Type, "GFlags", G_TYPE_FLAGS); - REGISTER_TYPE(d, PyGMainLoop_Type, "GMainLoop"); - REGISTER_TYPE(d, PyGMainContext_Type, "GMainContext"); + REGISTER_TYPE(d, PyGMainLoop_Type, "MainLoop"); + REGISTER_TYPE(d, PyGMainContext_Type, "MainContext"); /* glib version */ tuple = Py_BuildValue ("(iii)", glib_major_version, glib_minor_version, -- cgit