Ticket #34040: gio-typesdefs-change-some-enums-to-flags.patch

File gio-typesdefs-change-some-enums-to-flags.patch, 1.2 KB (added by afb@…, 13 years ago)
  • gio/gio-types.defs

    From 42d01f060c5d764baa881d13c103d68897163a49 Mon Sep 17 00:00:00 2001
    From: Ryan Lortie <desrt@desrt.ca>
    Date: Mon, 12 Mar 2012 16:44:14 -0400
    Subject: [PATCH] gio-types.defs: change some enums to flags
    
    These flags types were originally incorrectly handled in glib as being
    enums.  That bug was fixed, but they're still enums here, leading to
    warnings about the mismatch.
    
    Change them to flags.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668522
    ---
     gio/gio-types.defs |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/gio/gio-types.defs b/gio/gio-types.defs
    index 331e0bc..7eee5c8 100644
    a b  
    526526  )
    527527)
    528528
    529 (define-enum MountMountFlags
     529(define-flags MountMountFlags
    530530  (in-module "gio")
    531531  (c-name "GMountMountFlags")
    532532  (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS")
     
    545545  )
    546546)
    547547
    548 (define-enum DriveStartFlags
     548(define-flags DriveStartFlags
    549549  (in-module "gio")
    550550  (c-name "GDriveStartFlags")
    551551  (gtype-id "G_TYPE_DRIVE_START_FLAGS")
     
    770770  )
    771771)
    772772
    773 (define-enum SocketMsgFlags
     773(define-flags SocketMsgFlags
    774774  (in-module "gio")
    775775  (c-name "GSocketMsgFlags")
    776776  (gtype-id "G_TYPE_SOCKET_MSG_FLAGS")