Commit 8e64f02c authored by Naba Kumar's avatar Naba Kumar

Added freeze() and thaw() for the message window class to speed up the

	* src/message-manager-private.h, message-manager-private.cc,
	  message-manger.cc:

	  Added freeze() and thaw() for the message window class to
	  speed up the message manager update.
parent 41032a74
2002-01-27 Naba Kumar <kh_naba@users.sourceforge.net>
* src/message-manager-private.h, message-manager-private.cc,
message-manger.cc:
Added freeze() and thaw() for the message window class to
speed up the message manager update.
2002-01-26 Stephane Demurget <demurgets@free.fr>
* po/fr.po: updated to the latest sources.
......
......@@ -251,6 +251,18 @@ AnjutaMessageWindow::clear()
gtk_clist_clear(GTK_CLIST(m_msg_list));
}
void
AnjutaMessageWindow::freeze()
{
gtk_clist_freeze(GTK_CLIST(m_msg_list));
}
void
AnjutaMessageWindow::thaw()
{
gtk_clist_thaw(GTK_CLIST(m_msg_list));
}
void
AnjutaMessageWindow::show()
{
......
......@@ -112,7 +112,8 @@ class AnjutaMessageWindow : public MessageSubwindow
unsigned int get_cur_line() const;
void clear();
void freeze();
void thaw();
void show();
void hide();
......
......@@ -634,6 +634,7 @@ anjuta_message_manager_update(AnjutaMessageManager* amm)
break;
vector<string> messages = win->get_messages();
win->freeze();
win->clear();
int type = win->get_type_id();
......@@ -643,6 +644,7 @@ anjuta_message_manager_update(AnjutaMessageManager* amm)
string msg = *cur_msg + "\n";
anjuta_message_manager_append(amm, msg.c_str(), type);
}
win->thaw();
}
}
......
......@@ -165,7 +165,7 @@ tags_manager_save (TagsManager * tm)
GList *list;
FILE *stream;
gchar *text;
if (tm == NULL)
return FALSE;
if (app->project_dbase->project_is_open == FALSE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment