forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
e874a29c8a
commit
3c6c7909cb
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -1,3 +1,10 @@
|
||||
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;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user