nul-terminate the target atoms. (#132656, Christian Persch)
Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkselection.c (gtk_selection_default_handler): nul-terminate the target atoms. (#132656, Christian Persch)
This commit is contained in:
parent
598eebb8bf
commit
0cad69fcdd
16
ChangeLog
16
ChangeLog
@ -1,14 +1,20 @@
|
|||||||
|
Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkselection.c (gtk_selection_default_handler):
|
||||||
|
nul-terminate the target atoms. (#132656, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): Don't leak
|
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||||
path if we bail out early. (#132505, Christian Persch)
|
Don't leak path if we bail out early. (#132505, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do reference
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
|
||||||
counting on the user_data that is shared between multiple signal handlers,
|
reference counting on the user_data that is shared between
|
||||||
to avoid calling the destroy notify multiple times. (#132447, Adam Hooper)
|
multiple signal handlers, to avoid calling the destroy notify
|
||||||
|
multiple times. (#132447, Adam Hooper)
|
||||||
|
|
||||||
2004-01-28 Hans Breuer <hans@breuer.org>
|
2004-01-28 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,14 +1,20 @@
|
|||||||
|
Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkselection.c (gtk_selection_default_handler):
|
||||||
|
nul-terminate the target atoms. (#132656, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): Don't leak
|
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||||
path if we bail out early. (#132505, Christian Persch)
|
Don't leak path if we bail out early. (#132505, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do reference
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
|
||||||
counting on the user_data that is shared between multiple signal handlers,
|
reference counting on the user_data that is shared between
|
||||||
to avoid calling the destroy notify multiple times. (#132447, Adam Hooper)
|
multiple signal handlers, to avoid calling the destroy notify
|
||||||
|
multiple times. (#132447, Adam Hooper)
|
||||||
|
|
||||||
2004-01-28 Hans Breuer <hans@breuer.org>
|
2004-01-28 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,14 +1,20 @@
|
|||||||
|
Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkselection.c (gtk_selection_default_handler):
|
||||||
|
nul-terminate the target atoms. (#132656, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): Don't leak
|
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||||
path if we bail out early. (#132505, Christian Persch)
|
Don't leak path if we bail out early. (#132505, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do reference
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
|
||||||
counting on the user_data that is shared between multiple signal handlers,
|
reference counting on the user_data that is shared between
|
||||||
to avoid calling the destroy notify multiple times. (#132447, Adam Hooper)
|
multiple signal handlers, to avoid calling the destroy notify
|
||||||
|
multiple times. (#132447, Adam Hooper)
|
||||||
|
|
||||||
2004-01-28 Hans Breuer <hans@breuer.org>
|
2004-01-28 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,14 +1,20 @@
|
|||||||
|
Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkselection.c (gtk_selection_default_handler):
|
||||||
|
nul-terminate the target atoms. (#132656, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): Don't leak
|
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||||
path if we bail out early. (#132505, Christian Persch)
|
Don't leak path if we bail out early. (#132505, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do reference
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
|
||||||
counting on the user_data that is shared between multiple signal handlers,
|
reference counting on the user_data that is shared between
|
||||||
to avoid calling the destroy notify multiple times. (#132447, Adam Hooper)
|
multiple signal handlers, to avoid calling the destroy notify
|
||||||
|
multiple times. (#132447, Adam Hooper)
|
||||||
|
|
||||||
2004-01-28 Hans Breuer <hans@breuer.org>
|
2004-01-28 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,14 +1,20 @@
|
|||||||
|
Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkselection.c (gtk_selection_default_handler):
|
||||||
|
nul-terminate the target atoms. (#132656, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): Don't leak
|
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||||
path if we bail out early. (#132505, Christian Persch)
|
Don't leak path if we bail out early. (#132505, Christian Persch)
|
||||||
|
|
||||||
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do reference
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
|
||||||
counting on the user_data that is shared between multiple signal handlers,
|
reference counting on the user_data that is shared between
|
||||||
to avoid calling the destroy notify multiple times. (#132447, Adam Hooper)
|
multiple signal handlers, to avoid calling the destroy notify
|
||||||
|
multiple times. (#132447, Adam Hooper)
|
||||||
|
|
||||||
2004-01-28 Hans Breuer <hans@breuer.org>
|
2004-01-28 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1885,8 +1885,11 @@ gtk_selection_default_handler (GtkWidget *widget,
|
|||||||
data->format = 32;
|
data->format = 32;
|
||||||
data->length = count * sizeof (GdkAtom);
|
data->length = count * sizeof (GdkAtom);
|
||||||
|
|
||||||
p = g_new (GdkAtom, count);
|
/* selection data is always terminated by a trailing \0
|
||||||
|
*/
|
||||||
|
p = g_malloc (data->length + 1);
|
||||||
data->data = (guchar *)p;
|
data->data = (guchar *)p;
|
||||||
|
data->data[data->length] = '\0';
|
||||||
|
|
||||||
*p++ = gtk_selection_atoms[TIMESTAMP];
|
*p++ = gtk_selection_atoms[TIMESTAMP];
|
||||||
*p++ = gtk_selection_atoms[TARGETS];
|
*p++ = gtk_selection_atoms[TARGETS];
|
||||||
|
Loading…
Reference in New Issue
Block a user