use a hash table instead of object data to maintain context ids. Saves

2006-09-01  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c: use a hash table instead of object
	data to maintain context ids. Saves lots of pointless string copies.
This commit is contained in:
Sven Neumann
2006-09-01 12:15:14 +00:00
committed by Sven Neumann
parent 14f3860b96
commit 297f871514
3 changed files with 27 additions and 37 deletions

View File

@ -40,12 +40,12 @@ struct _GimpStatusbar
{
GtkHBox parent_instance;
GSList *messages;
GSList *keys;
guint seq_context_id;
GimpDisplayShell *shell;
GSList *messages;
GHashTable *context_ids;
guint seq_context_id;
gchar cursor_format_str[CURSOR_FORMAT_LENGTH];
gchar length_format_str[CURSOR_FORMAT_LENGTH];