Commit 5cb043d5 authored by Hiroyuki Ikezoe's avatar Hiroyuki Ikezoe Committed by Tristan Van Berkom

Use g_value_dup_string instead.

g_value_get_string and g_strdup should be replaced by
g_value_dup_string.
parent f289f667
......@@ -1029,7 +1029,7 @@ gtk_cell_renderer_text_set_property (GObject *object,
priv->markup_set = FALSE;
}
celltext->text = g_strdup (g_value_get_string (value));
celltext->text = g_value_dup_string (value);
g_object_notify (object, "text");
break;
......
......@@ -1985,7 +1985,7 @@ gtk_entry_set_property (GObject *object,
case PROP_IM_MODULE:
g_free (priv->im_module);
priv->im_module = g_strdup (g_value_get_string (value));
priv->im_module = g_value_dup_string (value);
if (GTK_IS_IM_MULTICONTEXT (entry->im_context))
gtk_im_multicontext_set_context_id (GTK_IM_MULTICONTEXT (entry->im_context), priv->im_module);
break;
......
......@@ -995,7 +995,7 @@ gtk_text_tag_set_property (GObject *object,
{
case PROP_NAME:
g_return_if_fail (text_tag->name == NULL);
text_tag->name = g_strdup (g_value_get_string (value));
text_tag->name = g_value_dup_string (value);
break;
case PROP_BACKGROUND:
......
......@@ -3000,7 +3000,7 @@ gtk_text_view_set_property (GObject *object,
case PROP_IM_MODULE:
g_free (priv->im_module);
priv->im_module = g_strdup (g_value_get_string (value));
priv->im_module = g_value_dup_string (value);
if (GTK_IS_IM_MULTICONTEXT (text_view->im_context))
gtk_im_multicontext_set_context_id (GTK_IM_MULTICONTEXT (text_view->im_context), priv->im_module);
break;
......
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