mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
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:
parent
ba651d4022
commit
d3fab727ae
@ -1023,7 +1023,7 @@ gtk_cell_renderer_text_set_property (GObject *object,
|
|||||||
priv->markup_set = FALSE;
|
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");
|
g_object_notify (object, "text");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1985,7 +1985,7 @@ gtk_entry_set_property (GObject *object,
|
|||||||
|
|
||||||
case PROP_IM_MODULE:
|
case PROP_IM_MODULE:
|
||||||
g_free (priv->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))
|
if (GTK_IS_IM_MULTICONTEXT (entry->im_context))
|
||||||
gtk_im_multicontext_set_context_id (GTK_IM_MULTICONTEXT (entry->im_context), priv->im_module);
|
gtk_im_multicontext_set_context_id (GTK_IM_MULTICONTEXT (entry->im_context), priv->im_module);
|
||||||
break;
|
break;
|
||||||
|
@ -995,7 +995,7 @@ gtk_text_tag_set_property (GObject *object,
|
|||||||
{
|
{
|
||||||
case PROP_NAME:
|
case PROP_NAME:
|
||||||
g_return_if_fail (text_tag->name == NULL);
|
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;
|
break;
|
||||||
|
|
||||||
case PROP_BACKGROUND:
|
case PROP_BACKGROUND:
|
||||||
|
@ -3000,7 +3000,7 @@ gtk_text_view_set_property (GObject *object,
|
|||||||
|
|
||||||
case PROP_IM_MODULE:
|
case PROP_IM_MODULE:
|
||||||
g_free (priv->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))
|
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);
|
gtk_im_multicontext_set_context_id (GTK_IM_MULTICONTEXT (text_view->im_context), priv->im_module);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user