]> Pileus Git - ~andy/gtk/commitdiff
Don't use guint8 for bitfields, since some compilers choke on that.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 26 Nov 2007 17:10:00 +0000 (17:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 26 Nov 2007 17:10:00 +0000 (17:10 +0000)
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserbutton.c:
        * gtk/gtktoolbar.c: Don't use guint8 for bitfields, since
        some compilers choke on that.  (#467722)

svn path=/trunk/; revision=19051

ChangeLog
gtk/gtkfilechooserbutton.c
gtk/gtktoolbar.c

index dabcc8e15e7e3ed61712c2f71285001fed2ea603..debadefc1973af7149af9271e6811f89b269b9b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfilechooserbutton.c:
+       * gtk/gtktoolbar.c: Don't use guint8 for bitfields, since
+       some compilers choke on that.  (#467722)
+
 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Add a note
index d8817625d72c6bb499ee77d115af55992378bfea..927eca6da819278c8ea010cf5b16e4ec3076d8cd 100644 (file)
@@ -162,18 +162,18 @@ struct _GtkFileChooserButtonPrivate
   guint8 n_volumes;
   guint8 n_shortcuts;
   guint8 n_bookmarks;
-  guint8 has_bookmark_separator       : 1;
-  guint8 has_current_folder_separator : 1;
-  guint8 has_current_folder           : 1;
-  guint8 has_other_separator          : 1;
+  guint  has_bookmark_separator       : 1;
+  guint  has_current_folder_separator : 1;
+  guint  has_current_folder           : 1;
+  guint  has_other_separator          : 1;
 
   /* Used for hiding/showing the dialog when the button is hidden */
-  guint8 active                       : 1;
+  guint  active                       : 1;
 
   /* Used to track whether we need to set a default current folder on ::map() */
-  guint8 folder_has_been_set          : 1;
+  guint  folder_has_been_set          : 1;
 
-  guint8 focus_on_click               : 1;
+  guint  focus_on_click               : 1;
 };
 
 
index 6ed46b9acac4d52c923d1c22ba4309e4a955a030..8b5141129b8d3e43807429bc40d192c32da8ce9c 100644 (file)
@@ -3877,7 +3877,7 @@ struct _ToolbarContent
       GtkAllocation    goal_allocation;
       guint            is_placeholder : 1;
       guint            disappearing : 1;
-      TriState         has_menu : 2;
+      guint            has_menu : 2;
     } tool_item;
     
     struct