summaryrefslogtreecommitdiff
path: root/gdk/gdkproperty.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-09-11 05:39:45 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-09-11 05:39:45 +0000
commit797c2e6a4597cf9f9b3b3785e5304845b2f217a7 (patch)
tree4de337cec62dd7f91b35cc367f88b08d5999f172 /gdk/gdkproperty.h
parent07600fb107101c81ca15255a6f1932fabc735351 (diff)
downloadgtk+-797c2e6a4597cf9f9b3b3785e5304845b2f217a7.tar.gz
New function to avoid pointless strdups when creating atoms from static
2005-09-11 Matthias Clasen <mclasen@redhat.com> * gdk/gdk.symbols: * gdk/gdkproperty.h: * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): New function to avoid pointless strdups when creating atoms from static strings. * gdk/x11/gdkdisplay-x11.c: * gdk/x11/gdkdnd-x11.c: * gdk/x11/gdkevents-x11.c: * gdk/x11/gdkmain-x11.c: * gdk/x11/gdkproperty-x11.c: * gdk/x11/gdkselection-x11.c: * gdk/x11/gdkwindow-x11.c: Use gdk_atom_intern_static_string() where appropriate.
Diffstat (limited to 'gdk/gdkproperty.h')
-rw-r--r--gdk/gdkproperty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkproperty.h b/gdk/gdkproperty.h
index 9d72eed92b..81b6c540b7 100644
--- a/gdk/gdkproperty.h
+++ b/gdk/gdkproperty.h
@@ -40,6 +40,7 @@ typedef enum
GdkAtom gdk_atom_intern (const gchar *atom_name,
gboolean only_if_exists);
+GdkAtom gdk_atom_intern_static_string (const gchar *atom_name);
gchar* gdk_atom_name (GdkAtom atom);
gboolean gdk_property_get (GdkWindow *window,