aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/ethclist.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-12-02 03:12:24 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-12-02 03:12:24 +0000
commite2e3b87c73b049fe55540c5c3729840fbf5064d2 (patch)
tree14c33d0ecd4033a9fd02c29d82f2f8500f6a32ee /gtk/ethclist.h
parent2e61f4d4c70cc721bf324484554f70b6a0cf3840 (diff)
downloadwireshark-e2e3b87c73b049fe55540c5c3729840fbf5064d2.tar.gz
wireshark-e2e3b87c73b049fe55540c5c3729840fbf5064d2.tar.bz2
wireshark-e2e3b87c73b049fe55540c5c3729840fbf5064d2.zip
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
Diffstat (limited to 'gtk/ethclist.h')
-rw-r--r--gtk/ethclist.h7
1 files changed, 4 insertions, 3 deletions
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,