summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-12-13 23:39:03 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-12-13 23:39:03 -0500
commit54a62731916bbf724b53f0c9fc2bd1addb85802f (patch)
tree78318499de3a787d6ea9952d786ea966d60a124c /gtk/gtknotebook.c
parent4c083c1ed42a3ebae97a96fc11ef1113ad769f15 (diff)
downloadgtk+-54a62731916bbf724b53f0c9fc2bd1addb85802f.tar.gz
Drop gdk_atom_intern
Atoms are just interned strings now, so we can just use g_intern_string.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 6adc286de9..49d0c58f0f 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3087,7 +3087,7 @@ gtk_notebook_drag_motion (GtkWidget *widget,
stop_scrolling (notebook);
target = gtk_drag_dest_find_target (widget, context, NULL);
- tab_target = gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB");
+ tab_target = g_intern_static_string ("GTK_NOTEBOOK_TAB");
if (target == tab_target)
{
@@ -3172,7 +3172,7 @@ gtk_notebook_drag_drop (GtkWidget *widget,
GdkAtom target, tab_target;
target = gtk_drag_dest_find_target (widget, context, NULL);
- tab_target = gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB");
+ tab_target = g_intern_static_string ("GTK_NOTEBOOK_TAB");
if (target == tab_target)
{
@@ -3274,7 +3274,7 @@ gtk_notebook_drag_data_get (GtkWidget *widget,
GdkAtom target;
target = gtk_selection_data_get_target (data);
- if (target == gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB"))
+ if (target == g_intern_static_string ("GTK_NOTEBOOK_TAB"))
{
gtk_selection_data_set (data,
target,
@@ -3283,7 +3283,7 @@ gtk_notebook_drag_data_get (GtkWidget *widget,
sizeof (gpointer));
priv->rootwindow_drop = FALSE;
}
- else if (target == gdk_atom_intern_static_string ("application/x-rootwindow-drop"))
+ else if (target == g_intern_static_string ("application/x-rootwindow-drop"))
{
gtk_selection_data_set (data, target, 8, NULL, 0);
priv->rootwindow_drop = TRUE;
@@ -3304,7 +3304,7 @@ gtk_notebook_drag_data_received (GtkWidget *widget,
source_widget = gtk_drag_get_source_widget (context);
if (source_widget &&
- gtk_selection_data_get_target (data) == gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB"))
+ gtk_selection_data_get_target (data) == g_intern_static_string ("GTK_NOTEBOOK_TAB"))
{
child = (void*) gtk_selection_data_get_data (data);