Commit Graph

21 Commits

Author SHA1 Message Date
Pavel Djundik 971e5cf4fe Emit word_click even as long as user is not selecting any text when releasing button
This fixes the need to do pixel-perfect clicks to open links in chat
2016-01-10 12:37:30 -08:00
TingPing 05a6097dc6 Fix copying timestamp with server-time and indent nicks off 2014-11-30 22:33:30 -05:00
Farow fd95c729d5 xtext: Add word and line selection modes
Similar to a GtkTextView if you double click you enter word selection mode
and if you triple click you enter line selection mode.
Allowing you to drag and select more than a single character.

Closes #1108
2014-09-01 17:53:03 -04:00
RichardHitt 0f828dd74f Add marker-line functionality for scrollback, instant seek.
Fixes #662.
2014-04-02 16:14:45 -07:00
TingPing 5f7321280e Use a standard GtkScrolledWindow with xtext
Used in maingui, fkeys, text events, rawlog

This also implements the set_scroll_adjustments signal in xtext
2014-02-06 20:17:07 -05:00
RichardHitt 4c1fd3ee67 Fix many many problems in xtext.c related to character width.
* Rework multiline logic to use a GSList, not an array
* Remove all multibyte booleans; everything is potentially multibyte
  - Except for gtk_xtext_get_word(), which needs special attention
* Enhance pango work for bold and italics (attr_list -> attr_lists[4])
* Enhance gtk_xtext_strip_color () to save bold, italics info
* Involve emphasis information in all pixel-width calculations
* Rework find_x () to account for emphasis info in widths

Closes #891
Fixes #872
2014-02-04 21:26:58 -05:00
TingPing cbf275777c xtext: store palette as GdkColors 2013-10-10 21:02:24 -04:00
TingPing c537dae7f8 Use Pango Attributes for bold and italics 2013-09-28 23:02:38 -04:00
TingPing 958f4099f1 Remove overdraw 2013-09-27 17:40:53 -04:00
TingPing 449553ffb0 Replace xtext's transparency with full window transparency
Xtext's transparency barely worked on windows, didn't work on any modern
linux wm and used fake transparency.
This uses gtk's built in window opacity that works on more systems and
is real transparency.
Text area only transparency may return with a transition to cairo, if it
works on Windows.
2013-09-27 17:40:05 -04:00
TingPing ef73a89139 Remove XFT, SHM, and MMX 2013-09-26 22:31:14 -04:00
Richard Hitt cd825ac735 Improve text repositioning when searchbar string is modified. 2013-09-18 15:25:50 -07:00
H.Merijn Brand 7a242a8331 Allow the special colors 32..41 in %Cfg,bg
Text events allow %Cfg,bg as decribed in "Theming" on
https://hexchat.readthedocs.org/en/latest/appearance.html?#theming

That section describes mIRC colors 0-15 and local colors 16-31, but
when selecting background colors, the 9 special internal colors are
extremely useful, like %C20,33 will do bright red on the selected
text background color.

As the documentation is on-line, this patch has no doc-change.
Ideally, the color-codes should show in the colored squares in the
preferences color-dialog just as with colors 0-31

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
2013-05-13 15:26:33 +02:00
Berke Viktor 9c49254abd Only include top level includes from GTK+, GLib and GDK-PixBuf 2013-04-02 20:39:37 -07:00
Berke Viktor 0f20423455 Consistent header macros everywhere 2013-04-01 01:02:03 +02:00
Berke Viktor 3c1bd3cff0 Supposed fix for license issues
I have no clue what to put here so I'll just use what the About dialog
provides (unless specified otherwise in the file)
2013-03-31 21:45:05 +02:00
RichardHitt 4af624627e overhauling of URL detection, including channel, nick, etc 'words' 2013-01-02 14:50:26 -08:00
RichardHitt ed034bf80a Enhance LASTLOG to use gtk_xtext_search_textentry() 2012-08-28 19:10:03 -07:00
Berke Viktor a6cc734b38 Search window improvements (Richard Hitt) 2012-05-28 23:17:09 +02:00
berkeviktor@aol.com d03d6e606b add wdk changes to named branch 2011-02-28 18:59:32 +01:00
berkeviktor@aol.com 4a6ceffb98 add xchat r1489 2011-02-24 04:14:30 +01:00