git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@15
8a3a26a2-13c4-0310-b231-
cf6edde360e5
This is the changelog for developers, != changelog for the end user
that we distribute with the binaries. (see changelog)
This is the changelog for developers, != changelog for the end user
that we distribute with the binaries. (see changelog)
+20/02/2006
+SPoG
+- Fixed crash when disabling lighting for a second time.
+
19/02/2006
SPoG
- Fixed crash when loading invalid ASE models.
19/02/2006
SPoG
- Fixed crash when loading invalid ASE models.
-void command_connect_accelerator(const Accelerator& accelerator, const Callback& callback)
+void global_accel_group_connect(const Accelerator& accelerator, const Callback& callback)
{
if(accelerator.key != 0)
{
{
if(accelerator.key != 0)
{
-void command_disconnect_accelerator(const Accelerator& accelerator, const Callback& callback)
+void global_accel_group_disconnect(const Accelerator& accelerator, const Callback& callback)
{
if(accelerator.key != 0)
{
{
if(accelerator.key != 0)
{
GClosure* global_accel_group_find(Accelerator accelerator);
GClosure* global_accel_group_find(Accelerator accelerator);
-void command_connect_accelerator(const Accelerator& accelerator, const Callback& callback);
-void command_disconnect_accelerator(const Accelerator& accelerator, const Callback& callback);
+void global_accel_group_connect(const Accelerator& accelerator, const Callback& callback);
+void global_accel_group_disconnect(const Accelerator& accelerator, const Callback& callback);
{
GlobalTexturesCache().release((*i).texture());
}
{
GlobalTexturesCache().release((*i).texture());
}
typedef FreeCaller1<bool, CamWnd_Move_Discrete_Import> CamWndMoveDiscreteImportCaller;
typedef FreeCaller1<bool, CamWnd_Move_Discrete_Import> CamWndMoveDiscreteImportCaller;
+/// \brief Initialisation for things that have the same lifespan as this module.
void CamWnd_Construct()
{
GlobalCommands_insert("CenterView", FreeCaller<GlobalCamera_ResetAngles>(), Accelerator(GDK_End));
void CamWnd_Construct()
{
GlobalCommands_insert("CenterView", FreeCaller<GlobalCamera_ResetAngles>(), Accelerator(GDK_End));
{
const Command& command = GlobalCommands_find(name);
GlobalShortcuts_register(name);
{
const Command& command = GlobalCommands_find(name);
GlobalShortcuts_register(name);
- command_connect_accelerator(command.m_accelerator, command.m_callback);
+ global_accel_group_connect(command.m_accelerator, command.m_callback);
}
void command_disconnect_accelerator(const char* name)
{
const Command& command = GlobalCommands_find(name);
}
void command_disconnect_accelerator(const char* name)
{
const Command& command = GlobalCommands_find(name);
- command_disconnect_accelerator(command.m_accelerator, command.m_callback);
+ global_accel_group_disconnect(command.m_accelerator, command.m_callback);
}
void toggle_add_accelerator(const char* name)
{
const Toggle& toggle = GlobalToggles_find(name);
GlobalShortcuts_register(name);
}
void toggle_add_accelerator(const char* name)
{
const Toggle& toggle = GlobalToggles_find(name);
GlobalShortcuts_register(name);
- command_connect_accelerator(toggle.m_command.m_accelerator, toggle.m_command.m_callback);
+ global_accel_group_connect(toggle.m_command.m_accelerator, toggle.m_command.m_callback);
}
GtkCheckMenuItem* create_check_menu_item_with_mnemonic(GtkMenu* menu, const char* mnemonic, const char* commandName)
{
GlobalShortcuts_register(commandName);
const Toggle& toggle = GlobalToggles_find(commandName);
}
GtkCheckMenuItem* create_check_menu_item_with_mnemonic(GtkMenu* menu, const char* mnemonic, const char* commandName)
{
GlobalShortcuts_register(commandName);
const Toggle& toggle = GlobalToggles_find(commandName);
- command_connect_accelerator(toggle.m_command.m_accelerator, toggle.m_command.m_callback);
+ global_accel_group_connect(toggle.m_command.m_accelerator, toggle.m_command.m_callback);
return create_check_menu_item_with_mnemonic(menu, mnemonic, toggle);
}
return create_check_menu_item_with_mnemonic(menu, mnemonic, toggle);
}
{
GlobalShortcuts_register(commandName);
const Command& command = GlobalCommands_find(commandName);
{
GlobalShortcuts_register(commandName);
const Command& command = GlobalCommands_find(commandName);
- command_connect_accelerator(command.m_accelerator, command.m_callback);
+ global_accel_group_connect(command.m_accelerator, command.m_callback);
return create_menu_item_with_mnemonic(menu, mnemonic, command);
}
return create_menu_item_with_mnemonic(menu, mnemonic, command);
}