[sysprof] footreestore: Eliminate some type checks that were showing up on profiles
- From: Søren Sandmann Pedersen <ssp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] footreestore: Eliminate some type checks that were showing up on profiles
- Date: Thu, 27 Jan 2011 22:05:57 +0000 (UTC)
commit 29496fd3b9c9522ee89964c4775b6f726d94c41e
Author: Søren Sandmann Pedersen <sandmann daimi au dk>
Date: Tue Nov 9 01:39:25 2010 -0500
footreestore: Eliminate some type checks that were showing up on profiles
footreestore.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/footreestore.c b/footreestore.c
index e2ab611..110f89c 100644
--- a/footreestore.c
+++ b/footreestore.c
@@ -28,6 +28,14 @@
#define FOO_TREE_STORE_IS_SORTED(tree) (((FooTreeStore*)(tree))->sort_column_id != GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID)
#define VALID_ITER(iter, tree_store) ((iter)!= NULL && (iter)->user_data != NULL && ((FooTreeStore*)(tree_store))->stamp == (iter)->stamp)
+/* Get rid of some macros that cause lots of g_atomic_get_pointer() */
+#undef g_return_if_fail
+#undef GTK_TREE_MODEL
+#undef FOO_TREE_STORE
+#define g_return_if_fail(x)
+#define GTK_TREE_MODEL(m) ((GtkTreeModel *)m)
+#define FOO_TREE_STORE(m) ((FooTreeStore *)m)
+
static void foo_tree_store_tree_model_init (GtkTreeModelIface *iface);
static void foo_tree_store_drag_source_init(GtkTreeDragSourceIface *iface);
static void foo_tree_store_drag_dest_init (GtkTreeDragDestIface *iface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]