only unref those handlers that have not yet been disconnected (finally

Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
        handlers that have not yet been disconnected (finally managed to
        trigger the gtk_signal_handler_unref() paranoid warning).

Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
        width and height which is -1 and not -2.
This commit is contained in:
Tim Janik 1998-10-12 06:01:09 +00:00 committed by Tim Janik
parent 3e4c74d7ef
commit 128cb63dcc
9 changed files with 85 additions and 6 deletions

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1,3 +1,14 @@
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
handlers that have not yet been disconnected (finally managed to
trigger the gtk_signal_handler_unref() paranoid warning).
Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
width and height which is -1 and not -2.
Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
* HACKING

View File

@ -1151,11 +1151,13 @@ gtk_signal_handlers_destroy (GtkObject *object)
GtkHandler *next;
next = handler->next;
gtk_signal_handler_unref (handler, object);
if (handler->id > 0)
gtk_signal_handler_unref (handler, object);
handler = next;
}
handler = gtk_object_get_data_by_id (object, handler_quark);
gtk_signal_handler_unref (handler, object);
if (handler->id > 0)
gtk_signal_handler_unref (handler, object);
}
}

View File

@ -839,28 +839,28 @@ gtk_widget_get_arg (GtkObject *object,
case ARG_X:
aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
if (!aux_info)
GTK_VALUE_INT (*arg) = -2;
GTK_VALUE_INT (*arg) = -1;
else
GTK_VALUE_INT (*arg) = aux_info->x;
break;
case ARG_Y:
aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
if (!aux_info)
GTK_VALUE_INT (*arg) = -2;
GTK_VALUE_INT (*arg) = -1;
else
GTK_VALUE_INT (*arg) = aux_info->y;
break;
case ARG_WIDTH:
aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
if (!aux_info)
GTK_VALUE_INT (*arg) = -2;
GTK_VALUE_INT (*arg) = -1;
else
GTK_VALUE_INT (*arg) = aux_info->width;
break;
case ARG_HEIGHT:
aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
if (!aux_info)
GTK_VALUE_INT (*arg) = -2;
GTK_VALUE_INT (*arg) = -1;
else
GTK_VALUE_INT (*arg) = aux_info->height;
break;