X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgmountoperation.c;h=d0ede5d7e3af19cd7b145a31d3a2073b615931f1;hb=ffe286e647ce9ba9bb8e1631ba3cf0194038f438;hp=ec7f5ff9ddbdd0e7f5d5ea480a69ddee614b1659;hpb=0d8a81b722e18092062f83b7fd8c0b3a5f4d613a;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gmountoperation.c b/gio/gmountoperation.c index ec7f5ff..d0ede5d 100644 --- a/gio/gmountoperation.c +++ b/gio/gmountoperation.c @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: Alexander Larsson */ @@ -51,8 +49,6 @@ * passed, see each method taking a #GMountOperation for details. */ -G_DEFINE_TYPE (GMountOperation, g_mount_operation, G_TYPE_OBJECT); - enum { ASK_PASSWORD, ASK_QUESTION, @@ -84,6 +80,8 @@ enum { PROP_CHOICE }; +G_DEFINE_TYPE_WITH_PRIVATE (GMountOperation, g_mount_operation, G_TYPE_OBJECT) + static void g_mount_operation_set_property (GObject *object, guint prop_id, @@ -253,8 +251,6 @@ static void g_mount_operation_class_init (GMountOperationClass *klass) { GObjectClass *object_class; - - g_type_class_add_private (klass, sizeof (GMountOperationPrivate)); object_class = G_OBJECT_CLASS (klass); object_class->finalize = g_mount_operation_finalize; @@ -513,9 +509,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) static void g_mount_operation_init (GMountOperation *operation) { - operation->priv = G_TYPE_INSTANCE_GET_PRIVATE (operation, - G_TYPE_MOUNT_OPERATION, - GMountOperationPrivate); + operation->priv = g_mount_operation_get_instance_private (operation); } /**