Use gdk_atom_intern_static_string() where appropriate.

* gtk/*.c:  Use gdk_atom_intern_static_string() where
	appropriate.
This commit is contained in:
Matthias Clasen
2005-09-11 05:48:27 +00:00
parent d715dcaf40
commit af89d145f7
20 changed files with 86 additions and 98 deletions

View File

@ -6156,7 +6156,7 @@ gtk_tree_view_drag_data_get (GtkWidget *widget,
goto done;
/* If drag_data_get does nothing, try providing row data. */
if (selection_data->target == gdk_atom_intern ("GTK_TREE_MODEL_ROW", FALSE))
if (selection_data->target == gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW"))
{
gtk_tree_set_row_drag_data (selection_data,
model,
@ -6266,7 +6266,7 @@ gtk_tree_view_drag_motion (GtkWidget *widget,
g_timeout_add (150, scroll_row_timeout, tree_view);
}
if (target == gdk_atom_intern ("GTK_TREE_MODEL_ROW", FALSE))
if (target == gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW"))
{
/* Request data so we can use the source row when
* determining whether to accept the drop