summaryrefslogtreecommitdiffstats
path: root/chat-irc
diff options
context:
space:
mode:
authorVlad Glagolev2017-04-08 22:57:34 -0400
committerVlad Glagolev2017-04-08 22:57:34 -0400
commitbd692399ba71dca288376f1c5a7ca350c444dcb9 (patch)
tree4fd000894046cba7172dbe87e4bed8762f2a01c3 /chat-irc
parentcbf4b80ea854a75cc2ecfaefe43cebb0c99e17e7 (diff)
hexchat: added optional patch to drop monospace font forcing
Diffstat (limited to 'chat-irc')
-rwxr-xr-xchat-irc/hexchat/CONFIGURE4
-rw-r--r--chat-irc/hexchat/HISTORY6
-rwxr-xr-xchat-irc/hexchat/PRE_BUILD4
-rw-r--r--chat-irc/hexchat/no-mono.patch28
4 files changed, 41 insertions, 1 deletions
diff --git a/chat-irc/hexchat/CONFIGURE b/chat-irc/hexchat/CONFIGURE
index cd4bb39d69..31c0e9d4ae 100755
--- a/chat-irc/hexchat/CONFIGURE
+++ b/chat-irc/hexchat/CONFIGURE
@@ -39,4 +39,6 @@ else
list_add HEXCHAT_OPTS '--disable-doat' &&
list_add HEXCHAT_OPTS '--disable-fishlim' &&
list_add HEXCHAT_OPTS '--disable-sysinfo'
-fi
+fi &&
+
+config_query HEXCHAT_NO_MONO "Apply patch to prevent from forcing monospace fonts (useful for pixel font users)?" n
diff --git a/chat-irc/hexchat/HISTORY b/chat-irc/hexchat/HISTORY
index 5885deb333..43a61cab92 100644
--- a/chat-irc/hexchat/HISTORY
+++ b/chat-irc/hexchat/HISTORY
@@ -1,3 +1,9 @@
+2017-04-08 Vlad Glagolev <stealth@sourcemage.org>
+ * CONFIGURE: added no mono option
+ * PRE_BUILD: apply patch
+ * no-mono.patch: added, to drop optional forcing of monospace fonts
+ for channel mode buttons
+
2016-12-30 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: updated spell to 2.12.4
* DEPENDS: added autoconf-archive
diff --git a/chat-irc/hexchat/PRE_BUILD b/chat-irc/hexchat/PRE_BUILD
index 8209ed0b7b..69b6cee928 100755
--- a/chat-irc/hexchat/PRE_BUILD
+++ b/chat-irc/hexchat/PRE_BUILD
@@ -5,4 +5,8 @@ if is_depends_enabled $SPELL $(get_spell_provider $SPELL SSL) && [[ $(get_spell_
patch -p0 < "$SPELL_DIRECTORY/libressl.patch"
fi &&
+if [[ $HEXCHAT_NO_MONO == y ]]; then
+ patch -p0 < "$SPELL_DIRECTORY/no-mono.patch"
+fi &&
+
autoreconf -fi
diff --git a/chat-irc/hexchat/no-mono.patch b/chat-irc/hexchat/no-mono.patch
new file mode 100644
index 0000000000..9f134176ee
--- /dev/null
+++ b/chat-irc/hexchat/no-mono.patch
@@ -0,0 +1,28 @@
+Addresses: https://github.com/hexchat/hexchat/issues/1990
+--- src/fe-gtk/maingui.c.orig 2016-11-11 19:20:35.000000000 -0500
++++ src/fe-gtk/maingui.c 2017-04-08 22:52:19.421637506 -0400
+@@ -1965,17 +1965,16 @@
+ static GtkWidget *
+ mg_create_flagbutton (char *tip, GtkWidget *box, char *face)
+ {
+- GtkWidget *btn, *lbl;
+- char label_markup[16];
++ GtkWidget *btn, *lbl_tst;
++ GtkRequisition req;
+
+- g_snprintf (label_markup, sizeof(label_markup), "<tt>%s</tt>", face);
+- lbl = gtk_label_new (NULL);
+- gtk_label_set_markup (GTK_LABEL(lbl), label_markup);
++ lbl_tst = gtk_label_new("W");
++ gtk_widget_size_request(lbl_tst, &req);
++ gtk_widget_destroy (lbl_tst);
+
+- btn = gtk_toggle_button_new ();
+- gtk_widget_set_size_request (btn, -1, 0);
++ btn = gtk_toggle_button_new_with_label (face);
++ gtk_widget_set_size_request (btn, req.width + 10, 0);
+ gtk_widget_set_tooltip_text (btn, tip);
+- gtk_container_add (GTK_CONTAINER(btn), lbl);
+
+ gtk_box_pack_start (GTK_BOX (box), btn, 0, 0, 0);
+ g_signal_connect (G_OBJECT (btn), "toggled",