[sysprof] lib: add some padding to classes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] lib: add some padding to classes
- Date: Thu, 14 Apr 2016 06:05:15 +0000 (UTC)
commit f4df6616c6e8e1345f6cab339eb3e471a4f8f519
Author: Christian Hergert <christian hergert me>
Date: Wed Apr 13 23:05:02 2016 -0700
lib: add some padding to classes
We might want to extend these going forward, so give us a chance to avoid
breaking ABI.
lib/sp-cell-renderer-percent.h | 2 ++
lib/sp-empty-state-view.h | 2 ++
lib/sp-failed-state-view.h | 2 ++
lib/sp-model-filter.h | 2 ++
lib/sp-process-model-row.h | 2 ++
lib/sp-profiler-menu-button.h | 2 ++
lib/sp-profiler.h | 2 ++
lib/sp-recording-state-view.h | 2 ++
8 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-cell-renderer-percent.h b/lib/sp-cell-renderer-percent.h
index 1c747b2..5a21fdc 100644
--- a/lib/sp-cell-renderer-percent.h
+++ b/lib/sp-cell-renderer-percent.h
@@ -42,6 +42,8 @@ struct _SpCellRendererPercent
struct _SpCellRendererPercentClass
{
GtkCellRendererTextClass parent_class;
+
+ gpointer padding[4];
};
GType sp_cell_renderer_percent_get_type (void);
diff --git a/lib/sp-empty-state-view.h b/lib/sp-empty-state-view.h
index d9f79bb..4e16e3e 100644
--- a/lib/sp-empty-state-view.h
+++ b/lib/sp-empty-state-view.h
@@ -30,6 +30,8 @@ G_DECLARE_DERIVABLE_TYPE (SpEmptyStateView, sp_empty_state_view, SP, EMPTY_STATE
struct _SpEmptyStateViewClass
{
GtkBinClass parent;
+
+ gpointer padding[4];
};
GtkWidget *sp_empty_state_view_new (void);
diff --git a/lib/sp-failed-state-view.h b/lib/sp-failed-state-view.h
index af4605b..43a4c98 100644
--- a/lib/sp-failed-state-view.h
+++ b/lib/sp-failed-state-view.h
@@ -32,6 +32,8 @@ G_DECLARE_DERIVABLE_TYPE (SpFailedStateView, sp_failed_state_view, SP, FAILED_ST
struct _SpFailedStateViewClass
{
GtkBinClass parent;
+
+ gpointer padding[4];
};
GtkWidget *sp_failed_state_view_new (void);
diff --git a/lib/sp-model-filter.h b/lib/sp-model-filter.h
index 1a6038b..a74a04c 100644
--- a/lib/sp-model-filter.h
+++ b/lib/sp-model-filter.h
@@ -33,6 +33,8 @@ G_DECLARE_DERIVABLE_TYPE (SpModelFilter, sp_model_filter, SP, MODEL_FILTER, GObj
struct _SpModelFilterClass
{
GObjectClass parent_class;
+
+ gpointer padding[8];
};
SpModelFilter *sp_model_filter_new (GListModel *child_model);
diff --git a/lib/sp-process-model-row.h b/lib/sp-process-model-row.h
index 2d9f1df..fe290f5 100644
--- a/lib/sp-process-model-row.h
+++ b/lib/sp-process-model-row.h
@@ -32,6 +32,8 @@ G_DECLARE_DERIVABLE_TYPE (SpProcessModelRow, sp_process_model_row, SP, PROCESS_M
struct _SpProcessModelRowClass
{
GtkListBoxRowClass parent;
+
+ gpointer padding[4];
};
GtkWidget *sp_process_model_row_new (SpProcessModelItem *item);
diff --git a/lib/sp-profiler-menu-button.h b/lib/sp-profiler-menu-button.h
index fcce9d9..64443a5 100644
--- a/lib/sp-profiler-menu-button.h
+++ b/lib/sp-profiler-menu-button.h
@@ -32,6 +32,8 @@ G_DECLARE_DERIVABLE_TYPE (SpProfilerMenuButton, sp_profiler_menu_button, SP, PRO
struct _SpProfilerMenuButtonClass
{
GtkMenuButtonClass parent_class;
+
+ gpointer padding[8];
};
GtkWidget *sp_profiler_menu_button_new (void);
diff --git a/lib/sp-profiler.h b/lib/sp-profiler.h
index 34663ea..530b6b9 100644
--- a/lib/sp-profiler.h
+++ b/lib/sp-profiler.h
@@ -54,6 +54,8 @@ struct _SpProfilerClass
* completion of stopping.
*/
void (*stopped) (SpProfiler *self);
+
+ gpointer padding[8];
};
SpProfiler *sp_profiler_new (void);
diff --git a/lib/sp-recording-state-view.h b/lib/sp-recording-state-view.h
index 37b3b82..ea7baf0 100644
--- a/lib/sp-recording-state-view.h
+++ b/lib/sp-recording-state-view.h
@@ -32,6 +32,8 @@ G_DECLARE_DERIVABLE_TYPE (SpRecordingStateView, sp_recording_state_view, SP, REC
struct _SpRecordingStateViewClass
{
GtkBinClass parent;
+
+ gpointer padding[4];
};
GtkWidget *sp_recording_state_view_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]