Commit efb221ac authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/widgets/gimpclipboard.c app/widgets/gimpdnd-xds.c use

2007-04-28  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpclipboard.c
	* app/widgets/gimpdnd-xds.c
	* plug-ins/helpbrowser/dialog.c: use 
gdk_atom_intern_static_string().


svn path=/trunk/; revision=22360
parent 7c1fc759
2007-04-28 Sven Neumann <sven@gimp.org>
* app/widgets/gimpclipboard.c
* app/widgets/gimpdnd-xds.c
* plug-ins/helpbrowser/dialog.c: use gdk_atom_intern_static_string().
2007-04-27 Sven Neumann <sven@gimp.org>
* app/core/gimppickable.[ch]: added get_pixel_at() method to the
......@@ -552,10 +552,10 @@ gimp_clipboard_wait_for_targets (Gimp *gimp,
if (clipboard)
{
GtkSelectionData *data;
GdkAtom atom = gdk_atom_intern_static_string ("TARGETS");
data = gtk_clipboard_wait_for_contents (clipboard, atom);
data = gtk_clipboard_wait_for_contents (clipboard,
gdk_atom_intern ("TARGETS",
FALSE));
if (data)
{
GdkAtom *targets;
......@@ -657,8 +657,8 @@ gimp_clipboard_wait_for_svg (Gimp *gimp)
if (targets)
{
GdkAtom svg_atom = gdk_atom_intern ("image/svg", FALSE);
GdkAtom svg_xml_atom = gdk_atom_intern ("image/svg+xml", FALSE);
GdkAtom svg_atom = gdk_atom_intern_static_string ("image/svg");
GdkAtom svg_xml_atom = gdk_atom_intern_static_string ("image/svg+xml");
gint i;
for (i = 0; i < n_targets; i++)
......
......@@ -80,11 +80,11 @@ gimp_dnd_xds_source_set (GdkDragContext *context,
D (g_printerr ("\ngimp_dnd_xds_source_set\n"));
property = gdk_atom_intern ("XdndDirectSave0", FALSE);
property = gdk_atom_intern_static_string ("XdndDirectSave0");
if (image)
{
GdkAtom type = gdk_atom_intern ("text/plain", FALSE);
GdkAtom type = gdk_atom_intern_static_string ("text/plain");
gchar *filename = gimp_image_get_filename (image);
gchar *basename;
......@@ -120,8 +120,8 @@ gimp_dnd_xds_save_image (GdkDragContext *context,
GtkSelectionData *selection)
{
GimpPlugInProcedure *proc;
GdkAtom property = gdk_atom_intern ("XdndDirectSave0", FALSE);
GdkAtom type = gdk_atom_intern ("text/plain", FALSE);
GdkAtom property;
GdkAtom type;
gint length;
guchar *data;
gchar *uri;
......@@ -132,6 +132,9 @@ gimp_dnd_xds_save_image (GdkDragContext *context,
D (g_printerr ("\ngimp_dnd_xds_save_image\n"));
property = gdk_atom_intern_static_string ("XdndDirectSave0");
type = gdk_atom_intern_static_string ("text/plain");
if (! gdk_property_get (context->source_window, property, type,
0, MAX_URI_LEN, FALSE,
NULL, NULL, &length, &data))
......
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* The GIMP Help Browser
* GIMP Help Browser
* Copyright (C) 1999-2005 Sven Neumann <sven@gimp.org>
* Michael Natterer <mitch@gimp.org>
*
......@@ -955,7 +955,8 @@ drag_data_get (GtkWidget *widget,
if (! current_uri)
return;
if (selection_data->target == gdk_atom_intern ("text/uri-list", FALSE))
if (selection_data->target ==
gdk_atom_intern_static_string ("text/uri-list"))
{
gchar *uris[2];
......@@ -964,7 +965,8 @@ drag_data_get (GtkWidget *widget,
gtk_selection_data_set_uris (selection_data, uris);
}
else if (selection_data->target == gdk_atom_intern ("_NETSCAPE_URL", FALSE))
else if (selection_data->target ==
gdk_atom_intern_static_string ("_NETSCAPE_URL"))
{
gtk_selection_data_set (selection_data,
selection_data->target,
......
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