Replace GSEAL in widget headers by a different symbol
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 26 May 2013 10:53:01 +0000 (12:53 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 May 2013 14:03:40 +0000 (16:03 +0200)
We don't want our own data members to be sealed by Gtk

src/ui/gui/include/gtk/gtk.in.h
src/ui/gui/pspp-sheet-selection.h
src/ui/gui/pspp-sheet-view-column.h
src/ui/gui/pspp-sheet-view.h

index fcf9fc9ed84fed19c29718b8aca9026acfcf9018..a52b1953fa92f2f7c8719320b5266f3529e12d98 100644 (file)
@@ -239,4 +239,8 @@ gtk_button_get_event_window (GtkButton *button)
 #define G_CONST_RETURN const
 #endif
 
+
+/* Like GSEAL but only used in PSPP */
+#define PSEAL(X) X
+
 #endif /* PSPP_GTK_GTK_H */
index 4d8c50bcf190538f98afa08296a6a82f58676c9a..ded218c8c5ff1c856149d8790afc9444e0a9c3e0 100644 (file)
@@ -77,8 +77,8 @@ struct _PsppSheetSelection
 
   /*< private >*/
 
-  PsppSheetView *GSEAL (tree_view);
-  PsppSheetSelectionMode GSEAL (type);
+  PsppSheetView *PSEAL (tree_view);
+  PsppSheetSelectionMode PSEAL (type);
 };
 
 struct _PsppSheetSelectionClass
index 2ce05bf5d8c47ea37f3fe8a87cb078acf7e153d7..e7facafdc8e438a7bef821f78ceff77e6fbb06ba 100644 (file)
@@ -61,57 +61,57 @@ struct _PsppSheetViewColumn
 {
   GtkObject parent;
 
-  GtkWidget *GSEAL (tree_view);
-  GtkWidget *GSEAL (button);
-  GtkWidget *GSEAL (child);
-  GtkWidget *GSEAL (arrow);
-  GtkWidget *GSEAL (alignment);
-  GdkWindow *GSEAL (window);
-  GtkCellEditable *GSEAL (editable_widget);
-  gfloat GSEAL (xalign);
-  guint GSEAL (property_changed_signal);
-  gint GSEAL (spacing);
-  GtkAllocation GSEAL (allocation);
+  GtkWidget *PSEAL (tree_view);
+  GtkWidget *PSEAL (button);
+  GtkWidget *PSEAL (child);
+  GtkWidget *PSEAL (arrow);
+  GtkWidget *PSEAL (alignment);
+  GdkWindow *PSEAL (window);
+  GtkCellEditable *PSEAL (editable_widget);
+  gfloat PSEAL (xalign);
+  guint PSEAL (property_changed_signal);
+  gint PSEAL (spacing);
+  GtkAllocation PSEAL (allocation);
 
   /* Sizing fields */
   /* see gtk+/doc/tree-column-sizing.txt for more information on them */
-  gint GSEAL (requested_width);
-  gint GSEAL (button_request);
-  gint GSEAL (resized_width);
-  gint GSEAL (width);
-  gint GSEAL (fixed_width);
-  gint GSEAL (min_width);
-  gint GSEAL (max_width);
+  gint PSEAL (requested_width);
+  gint PSEAL (button_request);
+  gint PSEAL (resized_width);
+  gint PSEAL (width);
+  gint PSEAL (fixed_width);
+  gint PSEAL (min_width);
+  gint PSEAL (max_width);
 
   /* dragging columns */
-  gint GSEAL (drag_x);
-  gint GSEAL (drag_y);
+  gint PSEAL (drag_x);
+  gint PSEAL (drag_y);
 
-  gchar *GSEAL (title);
-  GList *GSEAL (cell_list);
+  gchar *PSEAL (title);
+  GList *PSEAL (cell_list);
 
   /* Sorting */
-  guint GSEAL (sort_clicked_signal);
-  guint GSEAL (sort_column_changed_signal);
-  gint GSEAL (sort_column_id);
-  GtkSortType GSEAL (sort_order);
+  guint PSEAL (sort_clicked_signal);
+  guint PSEAL (sort_column_changed_signal);
+  gint PSEAL (sort_column_id);
+  GtkSortType PSEAL (sort_order);
 
   /* Flags */
-  guint GSEAL (visible)             : 1;
-  guint GSEAL (resizable)           : 1;
-  guint GSEAL (clickable)           : 1;
-  guint GSEAL (dirty)               : 1;
-  guint GSEAL (show_sort_indicator) : 1;
-  guint GSEAL (maybe_reordered)     : 1;
-  guint GSEAL (reorderable)         : 1;
-  guint GSEAL (use_resized_width)   : 1;
-  guint GSEAL (expand)              : 1;
-  guint GSEAL (quick_edit)          : 1;
-  guint GSEAL (selected)            : 1;
-  guint GSEAL (selectable)          : 1;
-  guint GSEAL (row_head)            : 1;
-  guint GSEAL (tabbable)            : 1;
-  guint GSEAL (need_button)         : 1;
+  guint PSEAL (visible)             : 1;
+  guint PSEAL (resizable)           : 1;
+  guint PSEAL (clickable)           : 1;
+  guint PSEAL (dirty)               : 1;
+  guint PSEAL (show_sort_indicator) : 1;
+  guint PSEAL (maybe_reordered)     : 1;
+  guint PSEAL (reorderable)         : 1;
+  guint PSEAL (use_resized_width)   : 1;
+  guint PSEAL (expand)              : 1;
+  guint PSEAL (quick_edit)          : 1;
+  guint PSEAL (selected)            : 1;
+  guint PSEAL (selectable)          : 1;
+  guint PSEAL (row_head)            : 1;
+  guint PSEAL (tabbable)            : 1;
+  guint PSEAL (need_button)         : 1;
 };
 
 struct _PsppSheetViewColumnClass
index c0a90106fa74680ac165423b05c42486faee7102..8ecfef171db5398632c9eaac6308bf475f029a5a 100644 (file)
@@ -108,7 +108,7 @@ struct _PsppSheetView
 {
   GtkContainer parent;
 
-  PsppSheetViewPrivate *GSEAL (priv);
+  PsppSheetViewPrivate *PSEAL (priv);
 
   gboolean dispose_has_run ;
 };