summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.c
diff options
context:
space:
mode:
authorHidetoshi Tajima <tajima@src.gnome.org>2002-08-14 15:11:41 +0000
committerHidetoshi Tajima <tajima@src.gnome.org>2002-08-14 15:11:41 +0000
commit3c6c7909cb839ca13a3571fdde1354839d57b0b2 (patch)
treea41920cc895f21316aa3fb54fd4dea0f465b3700 /gtk/gtkselection.c
parente874a29c8ab7260b78a6fa1d2a2d2b00e63eea7a (diff)
downloadgtk+-3c6c7909cb839ca13a3571fdde1354839d57b0b2.tar.gz
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)
Diffstat (limited to 'gtk/gtkselection.c')
-rw-r--r--gtk/gtkselection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index b7abd47d05..f12e36d718 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -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;
}
/*************************************************************