Commit Graph
95 Commits
Author SHA1 Message Date
RichardHitt 9664b1b7e3 Fix select regression.
Fix selection when part of the selected text is above/below a border.
Also, fix problems uncovered by static analysis.

Fixes #1261.
2015-08-20 00:23:17 +02:00
RichardHitt f7bea16e37 xtext: Fix poor performance with nick indent enabled
This fixes xtext re-rendering multiple times when the
indent width is not sufficient

Fixes #1364
Closes #1367
2015-05-18 06:31:00 -04:00
RichardHitt 8ca96d7ea3 xtext: Unselect old selection on button press
Fixes #943
Closes #1293
2015-02-15 13:17:55 -05:00
RichardHitt 6653582f0a Fix textbox not scrolling to to bottom on resize
Set buf->scrollbar_down conditionally when vertically resizing text window
If resize to enlarge appears to go to last line, set buf->scrollbar_down to be sure.

Fixes #1151
Closes #1171
2014-10-10 13:35:00 -04:00
RichardHitt 7a7b9c682d Fix apostrophe related spell check issues 2014-07-21 15:10:21 -04:00
RichardHitt 0d3706e2ee Fix possible crash in spell check
Closes #1048
2014-07-19 15:51:06 -04:00
RichardHitt 7374637d34 Some problems in banlist.c are fixed 2014-06-17 17:16:45 -07:00
RichardHitt 5706550cc1 Rework gtk_xtext_selection_draw(), simplify calls to _selection_render()
Fixes #992.
2014-05-31 02:40:28 -07:00
RichardHitt 6fb8cf40e1 Fixes #959. In xtext.c:find_x() return offset to hidden text if appropriate. 2014-05-22 07:06:51 -07:00
RichardHitt ccf49aa48d Fix #928. Fix memory leak, mea culpa. 2014-04-17 15:07:50 -07:00
RichardHitt b66edd372e Fixes #928 again. In scrollback replay, skip every line that starts 0x0d. 2014-04-17 09:53:09 -07:00
RichardHitt 0f828dd74f Add marker-line functionality for scrollback, instant seek.
Fixes #662.
2014-04-02 16:14:45 -07:00
Richard Hitt 5e8bc980e1 Merge pull request #929 from hexchat/928
Fix scrollback_load to deal with e.g. the output of /HELP
2014-03-30 20:09:37 -07:00
RichardHitt 4ca9672a92 Fix scrollback_load to deal with e.g. the output of /HELP
Fixes #928.
2014-03-29 14:31:19 -07:00
RichardHitt 1a3bfdce75 Improve handling scrollback when gui_tab_server==FALSE
Fixes #925.
2014-03-24 21:22:04 -04:00
RichardHitt 46e449f110 Correctly scroll down autojoined channels
Fixes #58
2014-03-19 10:31:52 -04:00
RichardHitt 0487daf865 Fix three miscellaneous bugs in gtk_xtext_get_word()
* Use utf8 functions for moving within string
	* Fix memory leak
	* Fix non-indent select problem
2014-03-19 10:31:26 -04: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
RichardHitt 007f49c39f Fixes #881 Fix two bugs --
gtk_xtext_find_char() adjust negative y for int typecast
	gtk_xtext_find_x() return out_of_bounds TRUE if line outside windodw
	gtk_xtext_selection_draw() recognize TRUE out_of_bounds
2014-01-29 11:56:23 -08:00
RichardHitt 26268d3188 Ignore realname if it's a null string 2013-12-22 11:19:30 -08:00
RichardHitt 3821e7a750 Fixes #836. Move to line boundary in _scroll{down,up}_timeout() not _scroll(). 2013-11-14 19:18:07 -08:00
RichardHitt 1aca24f3de Fixes #837. Rewrite gtk_xtext_scroll{down,up}_timeout(). 2013-11-12 15:02:38 -08:00
RichardHitt 811caaaa3d Fixes #836. In gtk_xtext_scroll() always force line integral line boundary. 2013-11-11 12:55:38 -08:00
RichardHitt c9418ffca3 Translate -ize to -ise, favor[ite] to favour[ite], Behavior to Behaviour 2013-09-15 01:28:10 -07:00
RichardHitt bca0ad8e1e Fix description line for Scroll Page in fkeys.c. 2013-08-01 11:55:22 -07:00
RichardHitt b4496216db Fix urlgrabber right click selection. 2013-06-18 14:53:18 -07:00
RichardHitt b690098941 Merge pull request #622 from orium/null-ptr-favchan-fix
Fixed null pointer deref when we try to autojoin a channel
2013-05-24 14:07:14 -07:00
RichardHitt e3fd501057 Do save_config() on Channel List window min, max changes
#570
2013-05-01 12:47:53 -07:00
RichardHitt 7403dfa9aa Do save_config() on Search-window checkbox change
#570
2013-05-01 12:25:29 -07:00
RichardHitt b08d9cfb56 Fix warning about g_type_init() in dbus/example.c 2013-05-01 12:12:05 -07:00
RichardHitt 4ad9a69aeb Early on, call g_type_init() unless deprecated 2013-04-24 14:33:05 -07:00
RichardHitt ee200b97aa Fix left-click of URL/HOST by tidying what we pass to fe_open_url() 2013-04-24 13:18:34 -07:00
RichardHitt fc659a67f0 Merge pull request #561 from RichardHitt/no-depr-decl
Add '#define GLIB_DISABLE_DEPRECATION_WARNINGS' to fix fkeys.c warnings
2013-04-24 12:27:53 -07:00
RichardHitt eef74ed263 Add '#define GLIB_DISABLE_DEPRECATION_WARNINGS' to fix fkeys.c warnings 2013-04-23 12:46:32 -07:00
RichardHitt facf0ab9c4 Add '(void)' to fix perl.c unused-value warning message 2013-04-23 12:09:05 -07:00
RichardHitt ba1dfabf11 Fix Ubuntu build warnings by using gcc flag -Wno-unused-result 2013-04-22 11:22:04 -07:00
RichardHitt e17a9c6503 In do_an_re() put WORD_CHANNEL before WORD_HOST. fixes #440 2013-04-19 12:41:49 -07:00
RichardHitt a5eb7784c6 Fix broken logic in mg_word_clicked(). fixes #522 2013-04-15 12:05:53 -07:00
RichardHitt 6b86940b7b Allow nick starting with digit despite rfc 2812 violation 2013-04-06 11:51:22 -07:00
RichardHitt 20ecd106d2 Merge pull request #485 from RichardHitt/urlgrab
Don't clobber data, just adjust url endpoint
2013-03-31 12:22:08 -07:00
RichardHitt 3fee94473b Don't clobber data, just adjust url endpoint 2013-03-31 12:14:52 -07:00
RichardHitt f317076cb2 Merge pull request #479 from RichardHitt/urlgrab
Strip all \r and \n, not just a single \r.
2013-03-29 13:16:32 -07:00
RichardHitt 503968c1fd Strip all \r and \n, not just a single \r. 2013-03-29 13:11:17 -07:00
RichardHitt a41924d79e Switch struct defns, to fix a seeming compiler bug 2013-03-25 16:16:51 -07:00
RichardHitt a6042f38b4 Merge pull request #472 from RichardHitt/master
Delete two banlist_info members, unused
2013-03-24 21:09:33 -07:00
RichardHitt 835f662349 Fix datesort problem after new column in banlist 2013-03-24 12:07:42 -07:00
RichardHitt b693c58e9f Merge pull request #467 from TingPing/bancol
Add type column to banlist
2013-03-24 01:31:04 -07:00
RichardHitt f7923f2a02 Truncate text if too long. Closes Issue #463 2013-03-23 13:08:49 -07:00
RichardHitt f5631b2e22 Redesign the Ban List window. Closes Issues #303, #342, #427
This is a combination of 18 commits.
 The first commit's message is:
Here is the initial banlist branch of RichardHitt/hexchat.
Changed files are only src/fe-gtk/{banlist.c,fe-gtk.h}.
This version works and contains my first efforts at selective
sensitization of radio buttons and control buttons.

From this point I intend to undertake a stepwise redesign.

Step 1 will be to make the existing banlist code work for
multiple simultaneous banlist windows (for different channels,
obviously).  It will be a hackathon with the only goal of getting
it working.

Step 2 will be the objectization and alpha-stage tidying-up of
all the terrible looking stuff I will have done in Step 1.

 This is the 2nd commit message:

Here's the post-Step-1 commit.  It works for multiple banlist windows.

Note particularly what I've done to banlist.h.
Note that for many functions in banlist.c the argument is now
a banlist_info *, rather than a session *.
Note in banlist.c the initialization of array modes[] which
contains driving information for the checkboxes.

Of course those checkboxes aren't yet implemented.  Maybe in Step 2
I will change to checkboxes from radio buttons; but definitely I will
change to letting modes[] drive processing.

 This is the 3rd commit message:

Converted to checkboxes.  Much additional work.
Note that the infrastructure for Auto-invite is not yet
present in the hexchat tree.  I'm nearly done with banlist,
I think!

 This is the 4th commit message:

Fleshed out 'invite'.  Tagged masks uniformly, e.g. (b) (e) (I).
General cleanup, nearly at the point of beta quality.

 This is the 5th commit message:

Added fourth mode type: quiet.  Did lots and lots of cleanup.  Beta-ready?

 This is the 6th commit message:

Get the banlist timestamps properly sortable.

 This is the 7th commit message:

Redesign the supports_foo() routines.  Now they're responsible for setting
the flags in ->capable, ->readable, ->writeable.

 This is the 8th commit message:

Deleted a couple of RBH comments.

 This is the 9th commit message:

Now the ESC key will close the banlist window.

 This is the 10th commit message:

Fix the fe-text occurrence of fe_add_ban_list().

 This is the 11th commit message:

Fixed also fe_ban_list_end() and removed fe_is_banwindow().

 This is the 12th commit message:

Use old-style initialization for array of structures modes[]

 This is the 13th commit message:

Oops, incomplete regression of modes[] initialization.  This fixes.

 This is the 14th commit message:

Fixed strptime buy implementing a special version here.
Fixed column width concerns by setting resizable and autosize.

 This is the 15th commit message:

Get rid of testing line.

 This is the 16th commit message:

Changed to gtkutil_destroy_on_esc ()

 This is the 17th commit message:

Remove no-longer-used functnion

 This is the 18th commit message:

Minor cleanups to banlist.c, banlist.h

 Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 Author:    RichardHitt <[email protected]>
 Committer: Richard Hitt <[email protected]>

 Not currently on any branch.
 Changes to be committed:
   (use "git reset HEAD <file>..." to unstage)

	modified:   src/common/fe.h
	modified:   src/common/hexchat.h
	modified:   src/common/inbound.c
	modified:   src/common/modes.c
	modified:   src/common/proto-irc.c
	modified:   src/common/server.c
	modified:   src/fe-gtk/banlist.c
	modified:   src/fe-gtk/banlist.h
	modified:   src/fe-gtk/fe-gtk.c
	modified:   src/fe-gtk/fe-gtk.h
	modified:   src/fe-gtk/maingui.c
	modified:   src/fe-text/fe-text.c
2013-03-20 15:10:30 -07:00
RichardHitt c9540df92d Get rid of testing line. 2013-03-17 15:33:50 -07:00
RichardHitt ecdcc99280 ESC key will destroy the windows mentioned at issue 211.
This change implements generic routine gtkutil_destroy_on_esc ()
and adds invocations of it in the requisite window-handling places.
2013-03-17 15:11:23 -07:00
RichardHitt 6dc437c364 Change the is_del() macro to not regard ATTR_BOLD nor ATTR_RESET as delimiters.
Remove old iffed-out version of is_del() as well, as a cleanup step; that change
was for not regarding left and right parens as delimiters.  With this change,
mousing over a nickname will underline it even if it contains embedded formatting
data; it used to work with all formatting data but bold and reset; now it
works for all.
2013-03-03 11:43:24 -08:00
RichardHitt 3b23642e2c Merge pull request #407 from RichardHitt/master
Fix bug in url.c at re_host().
2013-02-13 15:05:11 -08:00
RichardHitt 8e3d039199 Fix bug in url.c at re_host().
Unlike the other re_foo() functions it was not checking immediately
and returning if host_ret had already been filled in.  This would
causes a memory leak since the previous GRegex would be lost.
2013-02-13 12:52:49 -08:00
RichardHitt 4e0daf047e Correct almost all compiler warning issues 2013-01-19 12:33:16 -08:00
RichardHitt e43bc2ccc2 Remove #include <malloc.h>, causes a #error in freebsd build 2013-01-16 15:42:28 -08:00
RichardHitt 82026be00a Merge branch 'master' into pull350 2013-01-16 15:39:55 -08:00
RichardHitt 7bc0e017f6 Oops. didn't get the DOMAIN slight change last time. Here it is now. 2013-01-15 13:26:11 -08:00
RichardHitt bb617ccacd Prev called anything a URL! Reverted but slight DOMAIN change. 2013-01-15 13:19:29 -08:00
RichardHitt d5fbea3411 Fix DOMAIN and TLD per rfc 1738, thanks Arnavion 2013-01-15 01:23:37 -08:00
RichardHitt be2d100d2d Parse url according to rfc 1738: add separate define for TLD. 2013-01-14 12:33:08 -08:00
RichardHitt 07b69fd2f8 Oops, Windows doesn't offer strndup(). Use g_strndup(). 2013-01-11 16:12:52 -08:00
RichardHitt 6c7346cdbe Correct nick recognition in mainurl.c as well. Closes #372. 2013-01-11 02:38:11 -08:00
RichardHitt 487ac0a011 Correct nick recognition. Closes 372. 2013-01-11 01:39:21 -08:00
RichardHitt bf673072e8 Merge branch 'master' into pull350 2013-01-10 02:14:02 -08:00
RichardHitt 475eb9fcaa Fix crash by detecting NULL channel in url_join_only() and just returning. 2013-01-10 00:13:25 -08:00
RichardHitt 672dbf75d6 Oops, fixed error in util.c 2013-01-09 14:53:19 -08:00
RichardHitt 6beef589e3 Make source cleah with cppcheck, except for mpc and sasl 2013-01-09 14:37:57 -08:00
RichardHitt efdfa50f1e Fix Issue 350 in checksum.c by changing struct stat64 to struct stat 2013-01-09 00:15:08 -08:00
RichardHitt 0213f21a46 Merge pull request #341 from TingPing/lastact
Add last activity keybinding from fedora
2013-01-07 14:20:26 -08:00
RichardHitt 0ecbeb7152 Merge pull request #337 from TingPing/tray
add even more tray icon changes
2013-01-04 17:43:35 -08:00
RichardHitt 4bf2fbe092 Ywes, nicks can be as short as one character long! 2013-01-03 14:24:04 -08:00
RichardHitt 44d920592d For NICK0 use NICKSPE, not NICKDIG 2013-01-03 14:13:20 -08:00
RichardHitt 7099f43a12 Don't strip # from a WORD_CHANNEL 2013-01-03 11:32:45 -08:00
RichardHitt f4c2c08ccb Also allow URLs of of the form \.[a-z]+\/ 2013-01-02 23:47:58 -08:00
RichardHitt 270a31535c I forgot to add case WORD_PATH to do_an_url()'s switch statement 2013-01-02 15:03:16 -08:00
RichardHitt 0e6add7dd6 Fix FSF address to be Franklin Street 2013-01-02 14:58:26 -08:00
RichardHitt 4af624627e overhauling of URL detection, including channel, nick, etc 'words' 2013-01-02 14:50:26 -08:00
RichardHitt 3e85c2e820 Merge pull request #326 from TingPing/minimize
fix restoring previously maximized window from tray
2012-12-20 12:16:48 -08:00
RichardHitt df9a05cba5 Put hexchat png in icons/hicolor/48x48/apps 2012-12-16 18:05:37 -08:00
RichardHitt 925b45e8f0 Install hicolor svg; move the files Makefile.am to their subdirectories 2012-12-16 17:29:08 -08:00
RichardHitt c956b913b3 Merge pull request #296 from TingPing/tray
Tray improvements
2012-12-03 15:54:51 -08:00
RichardHitt 6e5a48daed Merge pull request #297 from TingPing/util
allow plugingui to open as tab
2012-12-03 13:29:35 -08:00
RichardHitt 813691f1ec Fix warning 2012-12-03 13:00:11 -08:00
RichardHitt 5fdcdedd9e Merge pull request #298 from TingPing/vertical
Save pane height and restore on start
2012-12-02 20:08:40 -08:00
RichardHitt 2eba723ee7 Merge pull request #286 from TingPing/tray2
Workarounds for plugin-tray menu on Windows
2012-11-20 18:29:10 -08:00
RichardHitt 9ada5c7974 Merge pull request #285 from TingPing/checksum
Fix checksum plugin when completed dir is set
2012-11-20 11:53:18 -08:00
RichardHitt 5f60820eba Fix "Fix URL detection". First-character test in linux should be for
equal, rather than not-equal.  If first character is a slash return
WORD_PATH.
2012-10-08 12:20:11 -07:00
RichardHitt 62903cd171 Fix memory leak related to url grabbing 2012-10-01 12:53:25 -07:00
RichardHitt ed034bf80a Enhance LASTLOG to use gtk_xtext_search_textentry() 2012-08-28 19:10:03 -07:00
Richard Hitt 8752861b7e Remember last search pattern during sessions 2012-07-27 11:37:14 +02:00
Richard Hitt 309f1d3562 Fix memory leak in lastlog 2012-07-26 08:58:00 +02:00
Richard Hitt ead7f234e5 Initial support for lastlog -r on win32 (Richard) 2012-07-25 22:14:27 +02:00
Richard Hitt 4f73128e9b Fix coloring the bottom of the chat area (Richard Hitt) 2012-06-03 11:58:37 +02:00
Richart Hitt e012c9e5a7 Eliminate multiple inclusions (Richard Hitt) 2012-06-02 02:25:30 +02:00