Commit 3c6c7909 authored by Hidetoshi Tajima's avatar Hidetoshi Tajima

initialize gtk_selection_atoms only once at the 1st call. set length of

	* gtk/gtkselection.c (gtk_selection_init): initialize
	gtk_selection_atoms only once at the 1st call.
	* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
	set length of selection data from number of read bytes (#90595)
parent e874a29c
Wed Aug 14 08:07:53 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)
2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
......
Wed Aug 14 08:07:53 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)
2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
......
Wed Aug 14 08:07:53 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)
2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
......
Wed Aug 14 08:07:53 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)
2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
......
Wed Aug 14 08:07:53 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)
2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
......
Wed Aug 14 08:07:53 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)
2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
......
......@@ -297,8 +297,8 @@ gdk_selection_property_get (GdkWindow *requestor,
*ret_format = prop_format;
/* Add on an extra byte to handle null termination. X guarantees
that t will be 1 longer than nbytes and null terminated */
length = nbytes + 1;
that t will be 1 longer than nitems and null terminated */
length = nitems + 1;
if (data)
{
......
......@@ -1004,6 +1004,8 @@ gtk_selection_init (void)
gtk_selection_atoms[MULTIPLE] = gdk_atom_intern ("MULTIPLE", FALSE);
gtk_selection_atoms[TIMESTAMP] = gdk_atom_intern ("TIMESTAMP", FALSE);
gtk_selection_atoms[TARGETS] = gdk_atom_intern ("TARGETS", FALSE);
initialize = FALSE;
}
/*************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment