Commit Graph

39 Commits (master)

Author SHA1 Message Date
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 a38892ff3b Use GFile API in gtkutil_check_file instead of stat/access.
The latter functions expect codepage-encoded filenames on Windows but GLib's API returns filesystem-encoded paths, which on Windows are UTF-8. GLib API should be used to deal with GLib API results.

Also fixed leaks in two of the callers of gtkutil_check_file()

Fixes #968
2014-08-20 12:50:08 -07:00
TingPing f35ae03a66 Build with GTK_DISABLE_DEPRECATED 2014-02-14 16:31:08 -05:00
TingPing 725aed43ff Redesign keyboard shortcuts window
- Convert GtkCLists to GtkTreeViews
- Save keybindings in GtkAccelerator format
- Store keybindings in a GSList
2014-02-14 16:29:44 -05:00
TingPing 10d3c15143 Add /getbool command 2014-02-04 20:46:43 -05: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
TingPing ce09cb4a91 Update most deprecated gtk functions 2014-01-18 14:47:17 -05:00
TingPing 61b58fd5be Remove remnants of native file dialogs 2013-09-26 22:07:22 -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 ddb3bf05d8 use GDK_KEY 2013-09-15 03:22:04 -04:00
TingPing 755932c3bc Use mimetypes for audio and images 2013-08-31 15:31:22 -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 5224c275e8 Destroy utility windows with their parents. 2013-08-05 04:03:26 -04:00
Diogo Sousa 4cc03aba75 Now fe_get_{int,str}() sets transient for the main window.
This allows window managers to handle the window in a better way, for instance
xmonad used to open the dialogs in a new tile and now opens a simple float.
2013-07-03 19:48:45 +01:00
TingPing c2a5b4fb7d Disable esc keybinding on tabbed utils 2013-04-05 17:33:35 -03:00
TingPing cca8ab4640 Fix esc closing detached util tabs 2013-04-05 16:56:57 -03:00
Berke Viktor 9c49254abd Only include top level includes from GTK+, GLib and GDK-PixBuf 2013-04-02 20:39:37 -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 4e0daf047e Correct almost all compiler warning issues 2013-01-19 12:33:16 -08:00
Dan Mashal b04377825f fix incorrect FSF address 2012-12-23 11:36:54 -08:00
Berke Viktor 348c6ba919 Rebranding 2012-11-11 13:51:50 +01:00
Arnavion 5d9264aff6 Initial commit for utf8 everywhere. 2012-11-03 19:04:02 -07:00
Berke Viktor 7c1d2366b1 Fix icon rendering in HexChat (sub)windows 2012-11-03 09:10:38 +01:00
Berke Viktor c65e16fd00 Relocate hexchat.png and hexchat.ico and some more varname cleanup 2012-11-03 02:33:44 +01:00
Berke Viktor ea0d3059f4 Eliminate even more warnings and bump warning level to 3
Shouldn't need to go any higher, level 4+ gives insane warnings
2012-10-30 22:13:40 +01:00
Berke Viktor cb0f6c8c91 Eliminate some more warnings 2012-10-30 21:25:58 +01:00
Berke Viktor a51a69134b Nah, even more rebranding 2012-10-30 11:35:39 +01:00
Berke Viktor 1a75c8e1be A lot more rebranding 2012-10-24 21:33:02 +02:00
Berke Viktor a9fe82a1b8 Fix nick change dialog being barely visible in most cases 2012-10-22 22:27:30 +02:00
Berke Viktor 302a06e2e1 Fix previous, failed attempt at fixing the default folder for DCC transfers 2012-10-22 17:00:48 +02:00
Berke Viktor 6e5c314e61 Don't make a numeric equation between chars (openSUSE) 2012-09-02 18:08:25 +02:00
Berke Viktor 56afb16608 GtkFileFilter shouldn't be g_freed 2012-07-21 21:56:19 +02:00
Berke Viktor bc651b0222 Add extension filter for file dialogs, specify filters and starting folder for loading plugins 2012-07-21 21:42:48 +02:00
Berke Viktor e7f723539d Some aid for compiler warnings 2012-07-21 14:26:19 +02:00
Berke Viktor cb2f9f3e7b Use GTK+ file dialogs on Windows too, the Win32 dialogs are too buggy 2012-07-18 20:16:35 +02:00
Berke Viktor c80cb47e5c Update XChat to r1516 2012-07-14 20:46:42 +02:00
Berke Viktor 132ef6cb50 initial patches for linux compatibility 2011-12-11 17:34:02 +01:00 d03d6e606b add wdk changes to named branch 2011-02-28 18:59:32 +01:00 4a6ceffb98 add xchat r1489 2011-02-24 04:14:30 +01:00