Use g_value_dup_string instead.

g_value_get_string and g_strdup should be replaced by
g_value_dup_string.
This commit is contained in:
Hiroyuki Ikezoe 2009-12-17 19:35:34 +09:00 committed by Javier Jardón
parent ba651d4022
commit d3fab727ae
4 changed files with 4 additions and 4 deletions

View File

@ -1023,7 +1023,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;

View File

@ -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;

View File

@ -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:

View File

@ -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;