Skip to content

Commit

Permalink
Fix a segfault in signalmanager when open project dialogs.
Browse files Browse the repository at this point in the history
  • Loading branch information
codebrainz committed Sep 16, 2011
1 parent 9048fe5 commit c923a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geany/signalmanager.py
Expand Up @@ -37,9 +37,9 @@ class SignalManager(gobject.GObject):
'project-close': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
()),
'project-dialog-confirmed': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_OBJECT,)),
(gobject.TYPE_PYOBJECT,)),
'project-dialog-create': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_OBJECT,)),
(gobject.TYPE_PYOBJECT,)),
'project-open': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_PYOBJECT,)),
'project-save': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
Expand Down
2 changes: 1 addition & 1 deletion src/signalmanager.c
Expand Up @@ -206,7 +206,7 @@ static void on_project_dialog_confirmed(GObject *geany_object, GtkWidget *notebo
static void on_project_dialog_create(GObject *geany_object, GtkWidget *notebook, SignalManager *man)
{
PyObject *gob = (PyObject *) pygobject_new(G_OBJECT(notebook));
g_signal_emit_by_name(man->obj, "project-dialog-confirmed", gob);
g_signal_emit_by_name(man->obj, "project-dialog-create", gob);
Py_XDECREF(gob);
}

Expand Down

0 comments on commit c923a8e

Please sign in to comment.