Compare commits

...
2 changed files with 16 additions and 6 deletions
+12 -5
View File
@@ -31,12 +31,19 @@
<br /> <br />
ZoiteChat is an HexChat based IRC client for Windows and UNIX-like operating systems. ZoiteChat is a GTK3 IRC client based on HexChat, available for Windows and UNIX-like operating systems.
See [IRCHelp.org](http://irchelp.org) for information about IRC in general.
For more information on ZoiteChat please read our [documentation](https://docs.zoitechat.org/):
- [Downloads](https://zoitechat.org/download)
- [Troubleshooting](troubleshooting.md) Features include HexChat-compatible Python, Perl and Lua scripting support, a plugin API,
multiple server/channel windows, spell checking, multiple authentication methods including SASL,
and customizable notifications.
See [IRCHelp.org](http://irchelp.org) for information about IRC in general.
For more information on ZoiteChat:
- [Main Documentation](https://docs.zoitechat.org/) and [FAQ](https://docs.zoitechat.org/en/latest/faq.html)
- [Downloads](https://zoitechat.org/download.php)
--- ---
+4 -1
View File
@@ -2705,7 +2705,6 @@ mg_changui_destroy (session *sess)
/* it fixes: Gdk-CRITICAL **: gdk_colormap_get_screen: */ /* it fixes: Gdk-CRITICAL **: gdk_colormap_get_screen: */
/* assertion `GDK_IS_COLORMAP (cmap)' failed */ /* assertion `GDK_IS_COLORMAP (cmap)' failed */
ret = sess->gui->window; ret = sess->gui->window;
g_free (sess->gui);
sess->gui = NULL; sess->gui = NULL;
} }
return ret; return ret;
@@ -2727,13 +2726,17 @@ mg_link_irctab (session *sess, int focus)
return; return;
} }
session_gui *old_gui;
mg_unpopulate (sess); mg_unpopulate (sess);
old_gui = sess->gui;
win = mg_changui_destroy (sess); win = mg_changui_destroy (sess);
mg_changui_new (sess, sess->res, 1, focus); mg_changui_new (sess, sess->res, 1, focus);
/* the buffer is now attached to a different widget */ /* the buffer is now attached to a different widget */
((xtext_buffer *)sess->res->buffer)->xtext = (GtkXText *)sess->gui->xtext; ((xtext_buffer *)sess->res->buffer)->xtext = (GtkXText *)sess->gui->xtext;
if (win) if (win)
gtk_widget_destroy (win); gtk_widget_destroy (win);
g_free (old_gui);
} }
void void