Commit 421f2118 authored by Vincent Untz's avatar Vincent Untz Committed by Vincent Untz
Browse files

use gdk_atom_intern_static_string() instead of gdk_atom_intern() ditto

2007-06-14  Vincent Untz  <vuntz@gnome.org>

	* launcher.c: (is_this_drop_ok), (drag_drop_cb): use
	gdk_atom_intern_static_string() instead of gdk_atom_intern()
	* panel-action-protocol.c: (panel_action_protocol_init): ditto
	* panel-background-monitor.c: (panel_background_monitor_init): ditto

svn path=/trunk/; revision=10457
parent 3d8254f1
2007-06-14 Vincent Untz <vuntz@gnome.org>
* launcher.c: (is_this_drop_ok), (drag_drop_cb): use
gdk_atom_intern_static_string() instead of gdk_atom_intern()
* panel-action-protocol.c: (panel_action_protocol_init): ditto
* panel-background-monitor.c: (panel_background_monitor_init): ditto
2007-06-14 Vincent Untz <vuntz@gnome.org>
 
Use new glib API where it makes sense.
......
......@@ -362,7 +362,7 @@ is_this_drop_ok (GtkWidget *widget,
return FALSE;
if (!text_uri_list)
text_uri_list = gdk_atom_intern ("text/uri-list", FALSE);
text_uri_list = gdk_atom_intern_static_string ("text/uri-list");
for (l = context->targets; l; l = l->next) {
if (GDK_POINTER_TO_ATOM (l->data) == text_uri_list)
......@@ -414,7 +414,7 @@ drag_drop_cb (GtkWidget *widget,
return FALSE;
if (text_uri_list == 0)
text_uri_list = gdk_atom_intern ("text/uri-list", FALSE);
text_uri_list = gdk_atom_intern_static_string ("text/uri-list");
gtk_drag_get_data (widget, context, text_uri_list, time);
......
......@@ -122,7 +122,7 @@ panel_action_protocol_init (void)
display = gdk_display_get_default ();
gdk_atom_gnome_panel_action =
gdk_atom_intern ("_GNOME_PANEL_ACTION", FALSE);
gdk_atom_intern_static_string ("_GNOME_PANEL_ACTION");
atom_gnome_panel_action =
XInternAtom (GDK_DISPLAY_XDISPLAY (display),
......
......@@ -124,7 +124,7 @@ panel_background_monitor_init (PanelBackgroundMonitor *monitor)
monitor->gdkwindow = NULL;
monitor->xwindow = None;
monitor->gdkatom = gdk_atom_intern ("_XROOTPMAP_ID", FALSE);
monitor->gdkatom = gdk_atom_intern_static_string ("_XROOTPMAP_ID");
monitor->xatom = gdk_x11_atom_to_xatom (monitor->gdkatom);
monitor->gdkpixmap = NULL;
......
Supports Markdown
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