mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 11:20:09 +00:00
GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'
This commit is contained in:
parent
8b1757b6e0
commit
1139b21997
@ -622,7 +622,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
P_("How to align the lines"),
|
||||
PANGO_TYPE_ALIGNMENT,
|
||||
PANGO_ALIGN_LEFT,
|
||||
GTK_PARAM_READWRITE));
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
/**
|
||||
* GtkCellRendererText:placeholder-text:
|
||||
@ -1469,7 +1469,11 @@ gtk_cell_renderer_text_set_property (GObject *object,
|
||||
break;
|
||||
|
||||
case PROP_ALIGN:
|
||||
priv->align = g_value_get_enum (value);
|
||||
if (priv->align != g_value_get_enum (value))
|
||||
{
|
||||
priv->align = g_value_get_enum (value);
|
||||
g_object_notify (object, "alignment");
|
||||
}
|
||||
priv->align_set = TRUE;
|
||||
g_object_notify (object, "align-set");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user