Commit Graph

98 Commits

Author SHA1 Message Date
TingPing f4f27e438b Implement windows 8.1+ notifications
This splits notifications up into multiple backends
currently only libnotify on unix and win8 toasts.

The win8 backend was originally written by @leeter
though heavily modified.
2015-02-04 20:24:53 -05:00
TingPing 95febd978c Fix building as c89 2014-12-28 06:47:23 -05:00
TingPing 83032b1aa3 Use glib for all allocations
- Removes need to check for malloc failure
- Removes need for NULL checks on free
- Adds checks for integer overflows
- Removes some extra memset calls
- Removes chance of mixing libc and glib malloc/free
2014-12-28 06:44:44 -05:00
Arnavion 65c8494698 Removed some unnecessary casts. 2014-12-08 21:25:00 -08:00
Arnavion c1831cb19d Minor tidying up 2014-12-08 21:24:59 -08:00
Arnavion e209e55e59 Use PlaySoundW to play sounds on Windows.
Fixes #1133
2014-09-13 00:23:44 -07:00
Arnavion ad2300f236 Correctly open URLs with non-ASCII characters on Windows.
Fixes #1023
2014-09-13 00:22:48 -07:00
TingPing 5f99d34c3b Fix opening utf8 urls on OSX
- Escape hostnames with punycode
- Use proper encoding when launching open
2014-09-07 19:45:44 -04:00
TingPing 0f6434986f osx: Properly handle quitting 2014-05-27 03:07:03 -04:00
RichardHitt 0f828dd74f Add marker-line functionality for scrollback, instant seek.
Fixes #662.
2014-04-02 16:14:45 -07:00
TingPing 3a7fb4d8e1 osx: Set Menlo as default font
This moves the find_font function to the front ends since it depends on
pango and cairo
2014-02-04 20:45:29 -05:00
Diogo Sousa 9969282c72 Now make_ping_time() in common/util.c returns the time in milliseconds instead
of microseconds.
In fe_set_lag(serv, lag) the lag argument is now in milliseconds as well.

Fixes #758.
2014-01-30 19:23:35 +00:00
TingPing 4510e8e2a2 Enable --command on win32
and make existing depend on
2014-01-20 20:42:48 -05:00
TingPing ce09cb4a91 Update most deprecated gtk functions 2014-01-18 14:47:17 -05:00
TingPing 7b0acb2b44 Build with gtk-mac-integration
- Use HexChat logo for dock icon
- Use appmenu (not finished)
2014-01-14 22:14:27 -05:00
TingPing 0ff2ade078 fix warning 2013-10-22 14:44:30 -04:00
Farow bb5d589c79 Open channel list window on /list 2013-10-22 13:35:28 -04:00
Diogo Sousa 5ad9552365 Fix messages with server-time not showing as new activity
Added a parameter to fe_print_text() to say that the message does not represent
new activity. This is used when a log from an old session is loaded. This used
to be implicit whenever the timestamp was non-zero, but with server-time this no
longer makes sense.

Fixes issue #746.
2013-10-09 21:34:02 -04:00
TingPing eb93130cd3 Remove gtkspell support 2013-10-03 16:23:46 -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 ae04663aa9 First round of using GTK accessor functions
This is the first step to build with GSEAL_ENABLE
setup.c uses a deprecated fontchooser,
chanview-tabs.c didn't like the conversion, and
I am waiting to do some work on xtext.c before
converting it.
2013-09-20 17:24:39 -04:00
TingPing 4c406bce17 Improve file dialogs
- Fixes #314
- Adds file extensions to sound and image browsing
- Some options no longer default to our config dir
- Always add a shortcut to our config dir
- Remove broken 'last_dir' functionality, gtk already knows recent
2013-08-31 11:39:12 -04:00
TingPing 93cfa353e7 Tweak cli output and fix related warnings 2013-07-27 00:03:16 -04:00
TingPing 4cf61ccedb Fix warning 2013-07-08 16:30:54 -04:00
TingPing 932bfa3482 Don't use popup dialogs for help 2013-07-01 14:28:26 -04:00
TingPing 5de5d6d00b Improve help message 2013-07-01 14:11:24 -04:00
TingPing aab55d8cff Handle extraneous cli args as urls 2013-07-01 13:43:58 -04:00
TingPing 64ba92593e fix merge conflict 2013-06-18 20:40:07 -04:00
Diogo Sousa 02139fbb79 Handle IPv6 addresses correcly in fe_open_url_locale(). 2013-06-19 00:15:47 +01:00
TingPing 52ce55341b Fix Open Data Folder on unix
Mentioned in #646
2013-06-16 16:20:06 -03:00
TingPing 8be56d7003 Don't open libcanberra connection for every event
Closes #645
2013-06-12 10:41:52 -04:00
Berke Viktor 712eb5428e GtkComboBoxText requires GTK+ 2.24, dump code for older versions 2013-05-11 13:06:25 +02:00
TingPing bb878848f7 Use regular canberra not gtk 2013-04-27 20:28:39 -04:00
TingPing 24034b5b8b More cleanup 2013-04-27 20:35:04 -03:00
TingPing e714c7d53f Remove extra omitalerts check 2013-04-27 19:16:34 -03:00
TingPing 78e39bfb1c use libcanberra for beeps 2013-04-27 18:05:05 -04:00
Berke Viktor c6513ea7a2 Use "Instant Message Notification" system sound on Windows, use gdk_beep() on Unix
Note: gdk_beep() is expected to be replaced with libcanberra stuff.
2013-04-27 23:26:26 +02:00
Berke Viktor 6001ceff9f Get rid of bundled beep 2013-04-27 23:00:18 +02:00
TingPing 584dc6a626 typo 2013-04-27 15:52:18 -03:00
TingPing 756080831d fix url opening on osx
oops
2013-04-27 15:47:40 -03:00
TingPing ffce6c5788 Clean up old url handling on unix 2013-04-27 15:30:40 -03:00
TingPing 565a492724 Reverts commit d964af8142 2013-04-27 06:32:30 -04:00
TingPing 2550a94f05 fix omitting custom sounds 2013-04-23 00:45:37 -04:00
Berke Viktor ccc8601624 Move beep to proper place 2013-04-16 11:32:58 +02:00
TingPing f0d0f90e13 no error on beeps 2013-04-15 00:12:06 -03:00
Berke Viktor b7f0f6abc8 Fix tabulation 2013-04-14 12:11:38 +02:00
Berke Viktor ea0479998a Use bundled beep file for beep alerts 2013-04-14 11:56:50 +02:00
TingPing e67371d269 Add option for omitting alerts while focused 2013-04-13 23:03:54 -04:00
Diogo Sousa 36694afe0e Don't send ping's to the server if we are still waiting for a pong.
If the server don't respond in 30s just report the lag as +30s.

This fixes the bug where hexchat reset the lag meter every time a ping
was sent and no pong was received.
2013-04-09 19:14:46 -07:00
TingPing d964af8142 Fix root user warning running before g_type_init
closes #504
2013-04-05 10:12:33 -04:00