summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
Commit message (Collapse)AuthorAgeFilesLines
* merge assorted fixes provided by Rogerio Britojstebbins2012-05-011-2/+4
| | | | | | | | Pretty much all resource cleanup issues on error condition handling. Thanks Rogerio! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4620 b64f7644-9d1e-0410-96f1-a4d463321fa5
* PGS (bluray) subtitle support \o/jstebbins2012-04-261-0/+1
| | | | | | | | | | | | Thanks to patches supplied by David Mitchell and Rob McMullen we finally have PGS support. I added a fix for libav pgs timestamp processing and detection of forced subtitles to their work, then made foreign audio search work with PGS subs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4605 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add preference to enabled auto passthru optionsjstebbins2012-01-141-0/+11
| | | | | | | | The advanced auto passthru options are probably overkill for 90% of people. So simplify the UI by hiding them unless the user explicitly asks for them in preferences. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4410 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: replace references to "Rip" with encode or transcodejstebbins2011-11-141-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4349 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: experimental support for batch queuingjstebbins2011-10-161-35/+136
| | | | | | | | | This allows all titles in the title popup to be added to the queue in one go. It uses the current *preset* for the settings. I.e. settings changes in the UI are ignored. This deficiency will be rectified at a future time. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4294 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add flac + quality + compression level supportjstebbins2011-10-121-3/+9
| | | | | | | | | Adds flac audio to cli, lingui, and macgui Adds quality and compression level options to cli Adds quality option to lingui Quality option works for vorbis and lame git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4281 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remember filter setting in source selection dialogjstebbins2011-09-231-7/+0
| | | | | | | | | I was resetting it every time the dialog is opened which is annoying if you are trying to open a collection of a single file type (e.g. TS files). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4241 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: oops! forgot to use existing filterjstebbins2011-09-191-2/+1
| | | | | | | | I was creating a new filter with pattern "*" when opening the source file chooser. Don't need to do that since I have a pre-existing one now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4235 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Show video codec name in summary tabjstebbins2011-09-011-0/+5
| | | | | | | | | | I found myself wanting to know what the source video codec was when I discovered that several of my VC-1 trancodes were crap. So this adds the video codec name to the summary information I display on the summary tab. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4197 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add more audio passthru optionsjstebbins2011-08-011-3/+4
| | | | | | | | | | | | | | | | | adds aac and mp3 passthru for mp4 and mkv containers adds dts and dtshd for mp4 container (mkv already had it) Note: The only player known (to me) to support dts(hd) in mp4 is ff/avplay In LinGui there is a new option to limit which passthru codecs will be used by the "Auto Passthru" audio codec options. The CLI already has this ability with "--audio_copy-mask" which is use in conjunction with the "copy" audio codec option. Also corrects some A/V sync issues when video frames are dropped due to a gap detected in the audio. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4149 b64f7644-9d1e-0410-96f1-a4d463321fa5
* lingui: work around stupid GtkFileChooser bugjstebbins2011-07-241-0/+9
| | | | | | | | | If hidden files are being displayed AND there is no filter attached to the file chooser, the chooser will never highlight the file that get set using gtk_file_chooser_set_filename git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4136 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix initial enabled state of audio options after scanjstebbins2011-06-271-0/+1
| | | | | | | | audios that are disabled were not getting grayed out in the audio options list till the track or encoder selection changed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4079 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix appindicator warning message in log at startupjstebbins2011-06-221-8/+11
| | | | | | | | | A signal that causes an indicator update happens before the indicator has been created, triggering a warning. so check that the indicator exists first. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4075 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: when appindicator is found, disable gtkstatusiconjstebbins2011-06-211-13/+16
| | | | | | | | | libappindicator has a fallback mode that creates a gtkstatusicon automatically if the indicator service can not be contacted. so I should only enable one or the other, not both. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4073 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Add status tray icon support for Ubuntu 11.04jstebbins2011-06-201-0/+52
| | | | | | | | | Ubuntu disables GtkStatusIcon support in Unity and instead uses a new API called AppIndicator. So this adds support for appindicator when it is detected by configure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remember user window size changesjstebbins2011-04-191-0/+26
| | | | | | | | window size gets stored in prefs when changed and restored whenever ghb starts. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3939 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix build error on mingwjstebbins2011-04-051-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3904 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add audio gain adjustment and create advanced audio dialog.jstebbins2011-04-051-13/+0
| | | | | | | | | Gain, DRC, and Sample Rate are now in an advanced audio dialog. This makes the audio tab less crowded and makes room for future improvements. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3903 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix garbled previews from BD h.264 sourcesjstebbins2011-04-021-1/+1
| | | | | | | | | | | Forome reason, frames that are tagged as recovery points in many BD h.264 streams do not result in complete frames when decoded. Pushing 2 extra frames through the decoder seems to always fix this. This patch extends something I was already doing when generating previews from a BD structure. This just applies the same logic to ffmpeg streams that have h.264 video. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3895 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: a few more random deprecated functions and macros removedjstebbins2011-03-231-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3875 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix backward compatibility issuejstebbins2011-03-221-2/+2
| | | | | | | Versions of gdk on Ubuntu 9.10 and 10.04 do not have GDK_KEY_* macros git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3871 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Remove use of depricated GDK_DRAWABLE_XIDjstebbins2011-03-221-1/+1
| | | | | | | Replace with GDK_WINDOW_XID git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3865 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Remove use of private member "window" of GtkWidgetjstebbins2011-03-221-2/+2
| | | | | | | It doesn't exist in gtk+-3.0. Use gtk_widget_get_window() instead. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3864 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Remove deprecated use of GDK_* keysymsjstebbins2011-03-221-2/+2
| | | | | | | They have been changed to GDK_KEY_* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3862 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Remove use of deprecated GTK_WIDGET_SENSITIVE and GTK_WIDGET_HAS_FOCUSjstebbins2011-03-221-10/+10
| | | | | | | Replace with gtk_widget_is_sensitive and gtk_widget_has_focus git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3861 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remove use of deprecated GTK_WIDGET_TYPE and GTK_OBJECT_TYPE macrosjstebbins2011-03-221-1/+1
| | | | | | | replace with G_OBJECT_TYPE git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3860 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add mpeg-2 encoding support to libhb, cli, and linguijstebbins2011-03-191-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3853 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add dbus-glib to configure lib checksjstebbins2011-03-081-2/+10
| | | | | | | ifdef libnotify call for compatibility with new 0.7 version. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3832 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remove target file size optionjstebbins2011-02-261-23/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3808 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: do not uncheck chapter markers when single chapter selectedjstebbins2011-02-111-12/+12
| | | | | | | | | | Instead, grey out the chapter marker checkbox to indicate it is inactive (but leave it checked) and do not enable chapter markers in the job. This way, if the user modifies chapter selections, chapter markers will automatically be re-enabled when more than one chapter is selected again. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3792 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remove automatic m4v extension substitutionjstebbins2011-01-291-8/+1
| | | | | | | Preference option now forces either mp4 or m4v. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3773 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add CFR option for "Same as source" framerate.jstebbins2011-01-281-2/+24
| | | | | | | | | Since there seem to be a lot of players that do not properly support VFR, add a CFR option that can be used with "Same as source". The framerate to use comes from the title and the cfr flag is set in the job. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3770 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: update copyright datesjstebbins2011-01-031-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3731 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add more informative warning about x264 RF 0 usagejstebbins2011-01-021-1/+8
| | | | | | | | | | | | | When the user sets RF 0, the slider displays "RF: 0 (Warning: lossless)" and the user will get a dialog when adding to the queue that says Warning: lossless h.264 selected Lossless h.264 is not well supported by many players and editors. It will produce enormous output files. Are you sure you wish to use this setting? git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3723 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: allow specifying file to scan on command linejstebbins2010-11-011-0/+16
| | | | | | | | The gui will immediately scan this file at startup. Makes 'Open with' nautilus options behave as expected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3636 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add "Quit HandBrake" option to "When Done" optionsjstebbins2010-10-121-2/+37
| | | | | | | Thanks to mxttie for the patch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3600 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix some text alignment issues on the picture summary tabjstebbins2010-09-301-0/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3559 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add Bluray supportjstebbins2010-09-081-1/+2
| | | | | | | | | | | | | | | | | | Unencrypted BD directory trees only. Doesn't support iso images. Also, no PGS subtitle support yet. Chapters and angles are supported. Adds a new contrib libbluray. Adds new option to hb_scan() for duration of short titles to filter. This applies to BD and DVD multi-title scans only. Does not apply to any single title scans. Fixes memory leak during scan. hb_buffer_close() was not freeing all buffers in a chain of buffers passed to it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3510 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: simplify source selection dialogjstebbins2010-09-051-72/+10
| | | | | | | | I don't need the checkbox to toggle file/folder selection mode anymore (at least on ubutnu, fedora is just fubar anyway). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3507 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Add max width/height widgets to preset save dialogjstebbins2010-06-281-1/+1
| | | | | | | | | | | | | | These are only visible when autosize is disabled, meaning the user has chosen to set specific video dimensions. These values are used when a preset or title is loaded to set the default storage dimensions. This allows setting arbitrary PictureWidth/PictureHeight in the preset which was not previously possible. The values were previously limited to what the currently loaded source would allow you to enter into the picture settings width/height fields. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3417 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix some issues with loading custom anamorphic settings from preset.jstebbins2010-06-261-0/+2
| | | | | | | | | | | as the settings were incrementally loaded, each changing widget triggered updates that could conflict with the preset values being loaded. fix an issue with hight getting stuck at certain values. Incorrect rounding caused a recalculation that put height back to it's previous value. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3412 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: make Help->Guide work on windows/mingwjstebbins2010-06-041-0/+5
| | | | | | | Call win api ShellExecute to open url in default browser. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3350 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add option to completely disable update checkingjstebbins2010-05-241-0/+8
| | | | | | | | | configure --disable-gtk-update-checks removes the code that does update checks including the webkit library used for displaying the appcast. this is useful when packaging for a repository that has it's own update mechanism. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3323 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix crash when processing appcastjstebbins2010-05-241-1/+4
| | | | | | | If the network read request fails to return any data, I referenced a NULL pointer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3321 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: drop dependency on hal, use udev insteadjstebbins2010-04-271-79/+31
| | | | | | | | this means support for older linux versions is being dropped. ubuntu 9.10 and above and fedora 12 and above are known to work. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3270 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a bunch of brokenness on Ubuntu 10.04 (lucid)jstebbins2010-02-231-12/+12
| | | | | | | | | | | gtk 2.19 has changed how object id's are stored by gtkbuilder. The widget name is no longer assigned to the builder object id. Instead the id is stored in a special property. Getting incorrect object id's caused all settings values to be referenced incorrectly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3135 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remove % display from video quality slider. only show RF/QPjstebbins2010-02-061-10/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3099 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add point-to-pointjstebbins2009-12-231-55/+291
| | | | | | | | the user can now select between chapter, seconds, or frame start and end points for encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3041 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix m4v file extension selection when the source has only 1 chapterjstebbins2009-12-141-12/+29
| | | | | | | | | | the chapter markers settings wasn't actually disabled, even though it was being filtered out of the job settings. This caused the m4v file extension selection logic to use m4v. And there was no way to change it since the chapter markers widget was hidden. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3029 b64f7644-9d1e-0410-96f1-a4d463321fa5
* batch file scanning and scan canceljstebbins2009-11-251-24/+68
| | | | | | | | | | When a directory is specified as the source, first we attempt to open as a dvd, then if that fails, we attempt to open each file in the directory as a stream source. Since opening a large directory of files can take a really long time, you can also now cancel a scan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2980 b64f7644-9d1e-0410-96f1-a4d463321fa5