emblemedicon: make GEmblemedIcon subclassable
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 9 Dec 2010 17:31:19 +0000 (18:31 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Dec 2010 14:39:00 +0000 (15:39 +0100)
commit01ba7bd8e8984609d411b70a8ac9db4e8b64fb06
tree6c72da5f46c244a8cfaf499d28cd2c5e425e0707
parentbc4e1fc622d0bc61f8978a6c3df98d6c0ab12226
emblemedicon: make GEmblemedIcon subclassable

Hiding the object/class structs in the source file makes this class not
subclassable.

Move them to the public header, and add a property for the icon, so that
subclasses can just use

  g_object_new (DERIVED_TYPE,
                "gicon", icon,
                NULL);

to create an emblemed icon.

https://bugzilla.gnome.org/show_bug.cgi?id=636892
gio/gemblemedicon.c
gio/gemblemedicon.h