From e2e3b87c73b049fe55540c5c3729840fbf5064d2 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 2 Dec 2004 03:12:24 +0000 Subject: performance enhancement: in some profiling runs eth_clist_get_type() took ~6% change this to just a variable and initialize it explicitely from main.c svn path=/trunk/; revision=12653 --- gtk/ethclist.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk/ethclist.h') diff --git a/gtk/ethclist.h b/gtk/ethclist.h index 9d45f28703..27e990fb1b 100644 --- a/gtk/ethclist.h +++ b/gtk/ethclist.h @@ -89,7 +89,10 @@ typedef enum ETH_BUTTON_EXPANDS = 1 << 2 } EthButtonAction; -#define ETH_TYPE_CLIST (eth_clist_get_type ()) +extern GtkType eth_clist_type; +void init_eth_clist_type (void); + +#define ETH_TYPE_CLIST (eth_clist_type) #define ETH_CLIST(obj) (GTK_CHECK_CAST ((obj), ETH_TYPE_CLIST, EthCList)) #define ETH_CLIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), ETH_TYPE_CLIST, EthCListClass)) #define ETH_IS_CLIST(obj) (GTK_CHECK_TYPE ((obj), ETH_TYPE_CLIST)) @@ -442,8 +445,6 @@ struct _EthCell } u; }; -GtkType eth_clist_get_type (void); - /* constructors useful for gtk-- wrappers */ void eth_clist_construct (EthCList *clist, gint columns, -- cgit v1.2.3