mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
Fix the icon property implementation
Turns out both the setter and the getter were broken... Fixes bug 585676.
This commit is contained in:
@@ -82,6 +82,7 @@ g_emblem_get_property (GObject *object,
|
|||||||
{
|
{
|
||||||
case PROP_ICON:
|
case PROP_ICON:
|
||||||
g_value_set_object (value, emblem->icon);
|
g_value_set_object (value, emblem->icon);
|
||||||
|
break;
|
||||||
|
|
||||||
case PROP_ORIGIN:
|
case PROP_ORIGIN:
|
||||||
g_value_set_enum (value, emblem->origin);
|
g_value_set_enum (value, emblem->origin);
|
||||||
@@ -104,7 +105,7 @@ g_emblem_set_property (GObject *object,
|
|||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
case PROP_ICON:
|
case PROP_ICON:
|
||||||
emblem->icon = g_value_get_object (value);
|
emblem->icon = g_value_dup_object (value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_ORIGIN:
|
case PROP_ORIGIN:
|
||||||
|
Reference in New Issue
Block a user