diff -Nru selene-2.6.1~206~ubuntu12.04.1/debian/bzr-builder.manifest selene-16.2~213~ubuntu12.04.1/debian/bzr-builder.manifest --- selene-2.6.1~206~ubuntu12.04.1/debian/bzr-builder.manifest 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/debian/bzr-builder.manifest 2016-02-06 16:01:17.000000000 +0000 @@ -1,2 +1,2 @@ -# bzr-builder format 0.3 deb-version {debupstream}~206 -lp:selene revid:tony.george.kol@gmail.com-20151107141109-gg9eijwcz7blmr2t +# bzr-builder format 0.3 deb-version {debupstream}~213 +lp:selene revid:tony.george.kol@gmail.com-20160206155740-fvzrsweq01q19lva diff -Nru selene-2.6.1~206~ubuntu12.04.1/debian/changelog selene-16.2~213~ubuntu12.04.1/debian/changelog --- selene-2.6.1~206~ubuntu12.04.1/debian/changelog 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/debian/changelog 2016-02-06 16:01:17.000000000 +0000 @@ -1,19 +1,17 @@ -selene (2.6.1~206~ubuntu12.04.1) precise; urgency=low +selene (16.2~213~ubuntu12.04.1) precise; urgency=low * Auto build. - -- Tony George Sat, 07 Nov 2015 14:14:55 +0000 + -- Tony George Sat, 06 Feb 2016 16:01:17 +0000 -selene (2.6.1) trusty; urgency=medium +selene (16.2) trusty; urgency=medium - * Fixed: If framerate is fractional, then audio-video is out-of-sync for H264 video + * List of unsupported files will be displayed when files are added - * Fixed: Incorrect icon was displayed for 'About' button on toolbar + * Round-up the CPU percentage in progress window title bar - * Fixed: Input file properties were not parsed correctly for some files. These files would give a 'format not supported' error when added to the input list - - * Perf: Query only required properties when reading file info from disk - - * Added list of 3rd party tools to the About\Credits dialog + * Hide the crop column while encoding is in-progress - -- Tony George Wed, 07 Nov 2015 10:00:00 +0530 + * Various minor changes + + -- Tony George Sat, 06 Feb 2016 10:00:00 +0530 Binary files /tmp/tmpirxRhL/q2clRxdyxC/selene-2.6.1~206~ubuntu12.04.1/icons/selene-14.png and /tmp/tmpirxRhL/kFs2_z5EWF/selene-16.2~213~ubuntu12.04.1/icons/selene-14.png differ Binary files /tmp/tmpirxRhL/q2clRxdyxC/selene-2.6.1~206~ubuntu12.04.1/icons/selene-192.png and /tmp/tmpirxRhL/kFs2_z5EWF/selene-16.2~213~ubuntu12.04.1/icons/selene-192.png differ Binary files /tmp/tmpirxRhL/q2clRxdyxC/selene-2.6.1~206~ubuntu12.04.1/icons/selene-64.png and /tmp/tmpirxRhL/kFs2_z5EWF/selene-16.2~213~ubuntu12.04.1/icons/selene-64.png differ diff -Nru selene-2.6.1~206~ubuntu12.04.1/README selene-16.2~213~ubuntu12.04.1/README --- selene-2.6.1~206~ubuntu12.04.1/README 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,98 +0,0 @@ - -Selene Media Encoder -======================= - -What is Selene? ------------------- -Selene is an audio/video converter for linux. -The encoding is done using simple bash scripts that contain -commands for converting the input file. Selene acts as a GUI wrapper for these -bash scripts. You can use any command line tool for encoding your videos and -Selene will display the progress information along with options to pause/resume/shutdown, etc. - -How does it work? ------------------- -Simply drag audio/video files to the main window, select the encoding script -from the drop-down and click 'Start' to begin. The progress window will display -the completion percentage for each file along with options to pause/resume -encoding. - -Running the app in admin mode (using sudo or gksu) will enable additional GUI -options. The progress window will display two additional buttons; one for -shutting down the system after encoding, and another for running the conversion -process with a lower priority (background-mode). - -What kind of scripts are used for conversion? ------------------------------------------------ -The scripts are ordinary bash scripts. -The simplest script would be: - -x264 -o "${outDir}/${title}.mkv" "${inFile}" - -This script converts any given input file to an MKV file using the x264 encoder. - -${inFile}, ${outDir}, ${title} are variables which refer to the input file. -The value of these variables will be inserted into the script before execution. -It is mandatory to use these variables instead of hard-coding the input file -names. This is the only restriction. - -The script can use **any** command line tool for converting the files. There is no -restriction whatsoever. The progress percentage will be calculated automatically -from the console output of the encoding tool. - -If the encoding tool is a common tool (like ffmpeg or x264), -selene will provide some additional features: -* The console output displayed in the statusbar will be pretty-formatted -* The input files can be auto-cropped by replacing the cropping parameters -specified in the script - -How does auto-cropping work? ------------------------------------------------ -For auto-cropping the input files: -1) Select one or more files from the input list -2) Right-click and select the AutoCrop option. This will calculate the cropping -parameters for the file. -3) Select any script that uses avconv, x264 or ffmpeg2theora for encoding. The -script must use the cropping option for the encoder that is used. For example, -we can use: x264 --vf crop:0,0,0,0 -o "${outDir}/${title}.mkv" "${inFile}" -The cropping values specified in the script will be replaced with the calculated -values before the script is executed. - -After using the 'AutoCrop' option, the output can be previewed by right-clicking -the file and selecting the 'Preview Output' option. The calculated values can -be edited directly from the input file list. Clear the values to disable the -cropping option. - -Why can't I just run the bash script from a terminal window? --------------------------------------------------------------------- -You can. The scripts can be used independantly for encoding your videos. -But using Selene will give you the following additional options: - -* The scripts are easier to write since Selene automatically inserts commonly - required variables into the script -* A batch of files can be selected and encoded with the selected script -* Pause/Resume options -* Shutdown PC after encoding -* Run the processes with low priority -* Option to set the output location -* Option to move the input files to a backup location after encoding - -You can also use Selene as a normal command line application. -Run Selene with the '--help' argument to see the full list of options. - -What are the variables that are inserted into the scripts? --------------------------------------------------------------------- -The following variables will be inserted into the script before execution: -inFile, name, title, ext, subFile, subName, subExt, tempDir, inDir, outDir - -subFile, subName and subExt variables will be set if any SRT, SSA, ASS files -are found in the input folder. The subtitle files must begin with the same name -as the input file and must be present in the same directory. - -What additional features are available for creating scripts? -------------------------------------------------------------------- -See the README file in the scripts folder for the full list of options. - - - - diff -Nru selene-2.6.1~206~ubuntu12.04.1/README.md selene-16.2~213~ubuntu12.04.1/README.md --- selene-2.6.1~206~ubuntu12.04.1/README.md 1970-01-01 00:00:00.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/README.md 2016-02-06 16:01:16.000000000 +0000 @@ -0,0 +1,141 @@ +## Selene Media Encoder + +https://github.com/teejee2008/selene-media-converter + +Selene is an audio/video converter for converting files to OGG/OGV/ MKV/MP4/WEBM/OPUS/AAC/FLAC/MP3/WAV formats. It aims to provide a simple GUI for converting files to popular formats along with powerful command-line options for automated/unattended encoding. + +## Features + +* Encode videos to MKV/MP4/OGV/WEBM formats. +* Encode music to MP3/AAC/OGG/OPUS/FLAC/WAV formats. +* Option to pause/resume encoding +* Option to run in background and shutdown PC after encoding +* Bash scripts can be written to control the encoding process +* Commandline interface for unattended/automated encoding + +## Screenshots + +[![](http://4.bp.blogspot.com/-BWt4pvz8R8g/Vp-msmtA7AI/AAAAAAAADJA/U-_21n8zOWQ/s1600/Selene%2Bv2.6.1_048.png)](http://2.bp.blogspot.com/-UxD9mXgVBVQ/Vp-pl6D8JXI/AAAAAAAADJY/pCHkiNLuGIU/s1600/Preset_051.png) +Main Window + +[![](http://4.bp.blogspot.com/-NzQd2Lo-Pz8/Vp-oeWMNuHI/AAAAAAAADJU/pp9aEQRqq68/s1600/Selene%2Bv2.6.1_050.png)](http://4.bp.blogspot.com/-NzQd2Lo-Pz8/Vp-oeWMNuHI/AAAAAAAADJU/pp9aEQRqq68/s1600/Selene%2Bv2.6.1_050.png) +Edit Preset + +[![](http://2.bp.blogspot.com/-UxD9mXgVBVQ/Vp-pl6D8JXI/AAAAAAAADJY/pCHkiNLuGIU/s1600/Preset_051.png)](http://2.bp.blogspot.com/-UxD9mXgVBVQ/Vp-pl6D8JXI/AAAAAAAADJY/pCHkiNLuGIU/s1600/Preset_051.png) +File Format Options + +[![](http://3.bp.blogspot.com/-k-szDBOY2Q4/Vp-poa_vRKI/AAAAAAAADJg/c4eyonTPG0c/s1600/Preset_052.png)](http://3.bp.blogspot.com/-k-szDBOY2Q4/Vp-poa_vRKI/AAAAAAAADJg/c4eyonTPG0c/s1600/Preset_052.png) +Audio Codec Options + +[![](http://4.bp.blogspot.com/-QdLefZxWCu4/Vp-qrUxvM0I/AAAAAAAADJs/20A1TRqAYr4/s1600/Preset_054.png)](http://4.bp.blogspot.com/-QdLefZxWCu4/Vp-qrUxvM0I/AAAAAAAADJs/20A1TRqAYr4/s1600/Preset_054.png) +SOX Audio Processing Options + +[![](http://1.bp.blogspot.com/-qDYKAkW4mPo/Vp-qqq6hF4I/AAAAAAAADJo/ExmwI8E3bT0/s1600/Preset_053.png)](http://1.bp.blogspot.com/-qDYKAkW4mPo/Vp-qqq6hF4I/AAAAAAAADJo/ExmwI8E3bT0/s1600/Preset_053.png) +Video Codec Settings + +[![](http://3.bp.blogspot.com/-hJnbTOw5SoE/Vp-nrafetPI/AAAAAAAADJI/rHCIsNCY8C8/s1600/CPU%253A%2B95.00%2B-_049.png)](http://3.bp.blogspot.com/-hJnbTOw5SoE/Vp-nrafetPI/AAAAAAAADJI/rHCIsNCY8C8/s1600/CPU%253A%2B95.00%2B-_049.png) +Progress Window + +## Installation + +### Ubuntu-based Distributions (Ubuntu, Linux Mint, etc) +Packages are available in launchpad for supported Ubuntu releases. +Run the following commands in a terminal window: + + sudo apt-add-repository -y ppa:teejee2008/ppa + sudo apt-get update + sudo apt-get install selene + +For older Ubuntu releases which have reached end-of-life, you can install Selene using the DEB files linked below. +[selene-latest-i386.deb](http://dl.dropbox.com/u/67740416/linux/selene-latest-i386.deb?dl=1) (32-bit) +[selene-latest-amd64.deb](http://dl.dropbox.com/u/67740416/linux/selene-latest-amd64.deb?dl=1) (64-bit) + +### Debian +DEB files are available from following links: +[selene-latest-i386.deb](http://dl.dropbox.com/u/67740416/linux/selene-latest-i386.deb?dl=1) (32-bit) +[selene-latest-amd64.deb](http://dl.dropbox.com/u/67740416/linux/selene-latest-amd64.deb?dl=1) (64-bit) + +### Other Linux Distributions +An installer is available from following links: +[selene-latest-i386.run](http://dl.dropbox.com/u/67740416/linux/selene-latest-i386.run?dl=1) (32-bit) +[selene-latest-amd64.run](http://dl.dropbox.com/u/67740416/linux/selene-latest-amd64.run?dl=1) (64-bit) + +Run it from a terminal window with the following commands: + + sh ./selene-latest-i386.run #32-bit + sh ./selene-latest-amd64.run #64-bit + +Depending on the distribution that you are using, you may need to install packages for the following dependencies: + + Required: libgtk-3 libgee2 libjson-glib rsync realpath libav-tools mediainfo + Optional: vorbis-tools, opus-tools, vpx-tools, x264, lame, mkvtoolnix, ffmpeg2theora, gpac, sox + + +## Source +Selene is written using Vala and GTK. Source code is available from the project hosting page at Github: +https://github.com/teejee2008/selene-media-converter + +## AAC Encoding + +For encoding to AAC/MP4 format you need to install the _NeroAAC_ encoder. Run the following commands in a terminal window. It will download and install the binaries for Nero AAC. + + cd /tmp + wget http://ftp6.nero.com/tools/NeroAACCodec-1.5.1.zip + unzip -j NeroAACCodec-1.5.1.zip linux/neroAacEnc + sudo install -m 0755 neroAacEnc /usr/bin + sudo apt-get install gpac + +## Usage + +Drag audio/video files to the main window, select a script or preset from the drop-down and click 'Start' to begin. The progress window will display the progress for each file along with options to pause/resume encoding. Right-click on files in the main window for more options. +Running the app in admin mode (using sudo or gksu) will enable additional options for running the conversion process with lower priority (background mode) and for shutting down the system after encoding. + +## Command-line Options + +Selene can also be used as a normal command-line utility. Run Selene with the '--help' argument to see the full list of options. + +[![](http://1.bp.blogspot.com/-SR1Wk_3NGik/UfzUgy8NqTI/AAAAAAAABAk/XUxlyNdCPCU/s600/console_2.2.png)](http://1.bp.blogspot.com/-SR1Wk_3NGik/UfzUgy8NqTI/AAAAAAAABAk/XUxlyNdCPCU/s1600/console_2.2.png) + +## Using bash scripts for encoding + +Bash scripts can be written for controlling the encoding process. For example: + + x264 -o "${outDir}/${title}.mkv" "${inFile}" + +This script converts any given input file to an MKV file using the x264 encoder. +${inFile}, ${outDir}, ${title} are variables which refer to the input file. These variables will be inserted into the script before execution. It is mandatory to use these variables instead of hard-coding the input file names. This is the only restriction. + +The script can use _any_ command line utility (like ffmpeg, x264, etc) for converting the files. The progress percentage will be calculated automatically from the console output. + +If the encoding tool is a common tool (like ffmpeg or x264), selene will provide some additional features: + +* The console output displayed in the statusbar will be pretty-formatted +* The input files can be auto-cropped by replacing the cropping parameters specified in the script. + +## AutoCropping + +For auto-cropping the input files: + +1. Select one or more files from the input list +2. Right-click and select the AutoCrop option. This will automatically detect the black borders in the video and set the cropping parameters for the file. +3. Select any preset, OR +4. Select any script that uses avconv, x264 or ffmpeg2theora for encoding. The script must use the cropping option for the encoder that is used. For example, we can use: + + x264 --vf crop:0,0,0,0 -o "${outDir}/${title}.mkv" "${inFile}" + + The cropping values specified in the script will be replaced with the calculated values before the script is executed. + +After using the 'AutoCrop' option, the output can be previewed by right-clicking the file and selecting the 'Preview Output' option. The values can be edited directly from the input file list. Clear the values to disable the cropping option. + +## Support This Project + +This software is free for personal and commercial use and is licensed under the GNU General Public License. If you find this software useful and wish to support its development, please consider leaving a donation using the PayPal link below. + + +This application is completely free and will continue to remain that way. Your contributions will help in keeping this project alive and improving it further. Feel free to send me an email if you find any issues in this application or if you need any changes. Suggestions and feedback are always welcome. + +If you want to buy me a coffee or send some donations my way, you can use Google wallet or Paypal to send a donation to **teejeetech at gmail dot com**. + +[Donate with Paypal](https://www.paypal.com/cgi-bin/webscr?business=teejeetech@gmail.com&cmd=_xclick¤cy_code=USD&amount=10&item_name=Selene%20Donation) + +[Donate with Google Wallet](https://support.google.com/mail/answer/3141103?hl=en) diff -Nru selene-2.6.1~206~ubuntu12.04.1/selene.geany selene-16.2~213~ubuntu12.04.1/selene.geany --- selene-2.6.1~206~ubuntu12.04.1/selene.geany 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/selene.geany 2016-02-06 16:01:16.000000000 +0000 @@ -18,16 +18,25 @@ [files] current_page=2 -FILE_NAME_0=39370;Vala;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FUtility.vala;0;4 -FILE_NAME_1=51085;Vala;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FMain.vala;0;4 -FILE_NAME_2=47745;Vala;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FMainWindow.vala;0;4 -FILE_NAME_3=618;Make;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2Fmakefile;0;4 -FILE_NAME_4=133;None;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fdebian%2Fchangelog;0;4 +FILE_NAME_0=3747;Vala;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FUtility.vala;0;4 +FILE_NAME_1=13024;Vala;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FMain.vala;0;4 +FILE_NAME_2=46302;Vala;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FMainWindow.vala;0;4 +FILE_NAME_3=554;Make;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2Fmakefile;0;4 +FILE_NAME_4=330;None;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fdebian%2Fchangelog;0;4 FILE_NAME_5=186;Conf;0;EUTF-8;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fdebian%2Fcontrol;0;4 FILE_NAME_6=342;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FDonationWindow.vala;0;4 -FILE_NAME_7=477;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FEncoderConfigWindow.vala;0;4 +FILE_NAME_7=5928;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FEncoderConfigWindow.vala;0;4 FILE_NAME_8=1500;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FFileInfoWindow.vala;0;4 -FILE_NAME_9=8145;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FAboutWindow.vala;0;4 +FILE_NAME_9=8000;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FAboutWindow.vala;0;4 +FILE_NAME_10=4672;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FAppConfigWindow.vala;0;4 +FILE_NAME_11=1644;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FEncoderStatusWindow.vala;0;4 +FILE_NAME_12=0;Sh;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2Finstall-images.sh;0;4 +FILE_NAME_13=0;Sh;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2Finstall-nero-aac.sh;0;4 +FILE_NAME_14=0;Sh;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2Finstall-scripts.sh;0;4 +FILE_NAME_15=0;None;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FNOTES;0;4 +FILE_NAME_16=0;None;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FPPA;0;4 +FILE_NAME_17=0;Sh;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2Fselene-uninstall;0;4 +FILE_NAME_18=2606;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fselene%2Fsrc%2FCustomMessageDialog.vala;0;4 [VTE] last_dir=/home/teejee diff -Nru selene-2.6.1~206~ubuntu12.04.1/selene.pot selene-16.2~213~ubuntu12.04.1/selene.pot --- selene-2.6.1~206~ubuntu12.04.1/selene.pot 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/selene.pot 2016-02-06 16:01:16.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: selene 2.2\n" "Report-Msgid-Bugs-To: teejee2008@gmail.com\n" -"POT-Creation-Date: 2015-11-07 19:28+0530\n" +"POT-Creation-Date: 2016-02-06 21:25+0530\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,7 +37,7 @@ msgid "Adjustments:" msgstr "" -#: AppConfigWindow.vala:127 +#: AppConfigWindow.vala:128 msgid "Backup Folder" msgstr "" @@ -81,7 +81,7 @@ msgid "File Format:" msgstr "" -#: AppConfigWindow.vala:65 +#: AppConfigWindow.vala:66 msgid "General" msgstr "" @@ -89,7 +89,7 @@ msgid "Other Effects:" msgstr "" -#: AppConfigWindow.vala:102 +#: AppConfigWindow.vala:103 msgid "Output Folder" msgstr "" @@ -151,7 +151,7 @@ msgid "About" msgstr "" -#: MainWindow.vala:1474 +#: MainWindow.vala:1475 msgid "Add File(s)" msgstr "" @@ -159,11 +159,11 @@ msgid "Add Files" msgstr "" -#: MainWindow.vala:564 +#: MainWindow.vala:565 msgid "Add New Preset" msgstr "" -#: MainWindow.vala:562 +#: MainWindow.vala:563 msgid "Add Preset" msgstr "" @@ -179,7 +179,7 @@ msgid "All files removed" msgstr "" -#: MainWindow.vala:1561 +#: MainWindow.vala:1569 msgid "An audio-video converter for Linux" msgstr "" @@ -205,7 +205,7 @@ msgid "Authors" msgstr "" -#: MainWindow.vala:437 +#: MainWindow.vala:438 msgid "AutoCrop Video" msgstr "" @@ -229,7 +229,7 @@ msgid "Background" msgstr "" -#: AppConfigWindow.vala:135 +#: AppConfigWindow.vala:136 msgid "Backup Location" msgstr "" @@ -253,11 +253,11 @@ msgid "Boost or cut the treble (upper) frequencies of the audio." msgstr "" -#: MainWindow.vala:584 +#: MainWindow.vala:585 msgid "Browse" msgstr "" -#: MainWindow.vala:1836 +#: MainWindow.vala:1842 msgid "CPU: " msgstr "" @@ -301,7 +301,7 @@ msgid "Converting..." msgstr "" -#: MainWindow.vala:1113 +#: MainWindow.vala:1114 #, c-format msgid "Converting: '%s'" msgstr "" @@ -314,7 +314,7 @@ msgid "Credits" msgstr "" -#: MainWindow.vala:384 +#: MainWindow.vala:385 msgid "CropVideo (L:T:R:B)" msgstr "" @@ -322,7 +322,7 @@ msgid "Custom" msgstr "" -#: MainWindow.vala:571 +#: MainWindow.vala:572 msgid "Delete Preset" msgstr "" @@ -330,7 +330,7 @@ msgid "Denominator" msgstr "" -#: EncoderStatusWindow.vala:91 +#: EncoderStatusWindow.vala:90 msgid "Description" msgstr "" @@ -360,7 +360,7 @@ msgid "Disable Video" msgstr "" -#: AppConfigWindow.vala:145 +#: AppConfigWindow.vala:146 msgid "Do not move input files" msgstr "" @@ -394,15 +394,15 @@ msgid "Done" msgstr "" -#: MainWindow.vala:1101 +#: MainWindow.vala:1102 msgid "Drag files on this window or click the 'Add' button" msgstr "" -#: MainWindow.vala:376 +#: MainWindow.vala:377 msgid "Duration" msgstr "" -#: MainWindow.vala:657 +#: MainWindow.vala:658 msgid "Edit Preset" msgstr "" @@ -426,14 +426,10 @@ msgid "Encoding Mode" msgstr "" -#: MainWindow.vala:647 +#: MainWindow.vala:648 msgid "Encoding Script or Preset File" msgstr "" -#: EncoderStatusWindow.vala:83 -msgid "Encoding Tool" -msgstr "" - #: Main.vala:677 msgid "Enter any key to Cancel..." msgstr "" @@ -482,7 +478,7 @@ msgid "Failed" msgstr "" -#: Utility.vala:1397 +#: Utility.vala:1404 msgid "Failed to set ownership" msgstr "" @@ -494,15 +490,15 @@ msgid "File" msgstr "" -#: MainWindow.vala:499 +#: MainWindow.vala:500 msgid "File Info (Output)" msgstr "" -#: MainWindow.vala:493 +#: MainWindow.vala:494 msgid "File Info (Source)" msgstr "" -#: AppConfigWindow.vala:76 +#: AppConfigWindow.vala:77 msgid "File View" msgstr "" @@ -510,7 +506,7 @@ msgid "File added:" msgstr "" -#: MainWindow.vala:1129 +#: MainWindow.vala:1130 #, c-format msgid "File added: '%s'" msgstr "" @@ -544,7 +540,7 @@ msgid "Fixed Bitrate" msgstr "" -#: MainWindow.vala:622 MainWindow.vala:632 +#: MainWindow.vala:623 MainWindow.vala:633 msgid "Folder" msgstr "" @@ -552,7 +548,7 @@ msgid "Following encoders are not installed on your system:" msgstr "" -#: MainWindow.vala:1674 +#: MainWindow.vala:1680 msgid "Following encoders were not found on your system:" msgstr "" @@ -564,11 +560,7 @@ msgid "Format / Codec" msgstr "" -#: MainWindow.vala:1491 -msgid "Format not supported:" -msgstr "" - -#: EncoderStatusWindow.vala:143 +#: EncoderStatusWindow.vala:144 msgid "Found" msgstr "" @@ -596,11 +588,11 @@ msgid "Height" msgstr "" -#: MainWindow.vala:599 MainWindow.vala:601 MainWindow.vala:1057 +#: MainWindow.vala:600 MainWindow.vala:602 MainWindow.vala:1058 msgid "Info" msgstr "" -#: MainWindow.vala:1652 +#: MainWindow.vala:1658 msgid "" "Input queue is empty!\n" "Please add some files.\n" @@ -682,15 +674,15 @@ msgid "Medium" msgstr "" -#: EncoderStatusWindow.vala:143 +#: EncoderStatusWindow.vala:144 msgid "Missing" msgstr "" -#: Main.vala:309 MainWindow.vala:1674 +#: Main.vala:309 MainWindow.vala:1680 msgid "Missing Encoders" msgstr "" -#: Utility.vala:1025 +#: Utility.vala:1032 msgid "Missing Icon" msgstr "" @@ -698,7 +690,7 @@ msgid "Music" msgstr "" -#: Main.vala:2876 MainWindow.vala:1322 +#: Main.vala:2876 MainWindow.vala:1323 msgid "N/A" msgstr "" @@ -750,19 +742,19 @@ msgid "OK" msgstr "" -#: MainWindow.vala:586 +#: MainWindow.vala:587 msgid "Open Folder" msgstr "" -#: MainWindow.vala:470 +#: MainWindow.vala:471 msgid "Open Log File" msgstr "" -#: MainWindow.vala:464 +#: MainWindow.vala:465 msgid "Open Output Folder" msgstr "" -#: MainWindow.vala:458 +#: MainWindow.vala:459 msgid "Open Temp Folder" msgstr "" @@ -782,11 +774,11 @@ msgid "Output" msgstr "" -#: AppConfigWindow.vala:110 +#: AppConfigWindow.vala:111 msgid "Output Location" msgstr "" -#: MainWindow.vala:199 MainWindow.vala:1633 MainWindow.vala:1635 +#: MainWindow.vala:199 MainWindow.vala:1639 MainWindow.vala:1641 msgid "Pause" msgstr "" @@ -802,11 +794,11 @@ msgid "Pitch (shrillness)" msgstr "" -#: MainWindow.vala:487 +#: MainWindow.vala:488 msgid "Play File (Output)" msgstr "" -#: MainWindow.vala:481 +#: MainWindow.vala:482 msgid "Play File (Source)" msgstr "" @@ -814,7 +806,7 @@ msgid "Please enter a name for this preset" msgstr "" -#: MainWindow.vala:1674 +#: MainWindow.vala:1680 msgid "Please install required packages or select another preset" msgstr "" @@ -822,19 +814,19 @@ msgid "Please install the 'sox' package on your system to use this feature" msgstr "" -#: EncoderConfigWindow.vala:433 MainWindow.vala:637 +#: EncoderConfigWindow.vala:433 MainWindow.vala:638 msgid "Preset" msgstr "" -#: MainWindow.vala:995 +#: MainWindow.vala:996 msgid "Preset deleted" msgstr "" -#: MainWindow.vala:1768 +#: MainWindow.vala:1774 msgid "Press 'Cancel' to abort shutdown" msgstr "" -#: MainWindow.vala:442 +#: MainWindow.vala:443 msgid "Preview File" msgstr "" @@ -854,7 +846,7 @@ msgid "Quarter Sine" msgstr "" -#: MainWindow.vala:1654 +#: MainWindow.vala:1660 msgid "Queue is Empty" msgstr "" @@ -866,7 +858,7 @@ msgid "Realtime" msgstr "" -#: EncoderStatusWindow.vala:109 +#: EncoderStatusWindow.vala:108 msgid "Refresh" msgstr "" @@ -891,7 +883,7 @@ msgid "Resolution" msgstr "" -#: MainWindow.vala:1627 MainWindow.vala:1629 +#: MainWindow.vala:1633 MainWindow.vala:1635 msgid "Resume" msgstr "" @@ -911,11 +903,11 @@ msgid "Sampling Rate (Hz)" msgstr "" -#: AppConfigWindow.vala:120 +#: AppConfigWindow.vala:121 msgid "Save in input file location" msgstr "" -#: MainWindow.vala:1099 +#: MainWindow.vala:1100 msgid "Select a script from the dropdown and click 'Start' to begin" msgstr "" @@ -938,11 +930,11 @@ msgid "Shutdown" msgstr "" -#: MainWindow.vala:1606 +#: MainWindow.vala:1612 msgid "Shutdown Disabled" msgstr "" -#: MainWindow.vala:1603 +#: MainWindow.vala:1609 msgid "Shutdown Enabled" msgstr "" @@ -950,15 +942,15 @@ msgid "Shutdown system after completion" msgstr "" -#: AppConfigWindow.vala:89 +#: AppConfigWindow.vala:90 msgid "Simple" msgstr "" -#: MainWindow.vala:368 +#: MainWindow.vala:369 msgid "Size" msgstr "" -#: MainWindow.vala:432 +#: MainWindow.vala:433 msgid "Skip File" msgstr "" @@ -970,6 +962,10 @@ msgid "Slower" msgstr "" +#: MainWindow.vala:1506 +msgid "Some files could not be opened:" +msgstr "" + #: Main.vala:622 #, c-format msgid "Source files will be moved to '%s'" @@ -1000,11 +996,11 @@ msgid "Starting batch of %d file(s):" msgstr "" -#: EncoderStatusWindow.vala:99 MainWindow.vala:395 +#: EncoderStatusWindow.vala:98 MainWindow.vala:396 msgid "Status" msgstr "" -#: Utility.vala:753 +#: Utility.vala:757 msgid "Stopped" msgstr "" @@ -1037,11 +1033,11 @@ msgid "Supported Formats:" msgstr "" -#: MainWindow.vala:1770 +#: MainWindow.vala:1776 msgid "System shutdown" msgstr "" -#: MainWindow.vala:1777 +#: MainWindow.vala:1783 #, c-format msgid "System shutdown was cancelled by user!" msgstr "" @@ -1050,7 +1046,7 @@ msgid "System will be shutdown after completion" msgstr "" -#: Main.vala:676 MainWindow.vala:1767 +#: Main.vala:676 MainWindow.vala:1773 msgid "System will shutdown in one minute!" msgstr "" @@ -1076,10 +1072,14 @@ msgid "Third Party Tools & Software" msgstr "" -#: AppConfigWindow.vala:91 +#: AppConfigWindow.vala:92 msgid "Tiles" msgstr "" +#: EncoderStatusWindow.vala:76 +msgid "Tool" +msgstr "" + #: AboutWindow.vala:330 #, c-format msgid "Translators" @@ -1097,7 +1097,7 @@ msgid "Unknown format:" msgstr "" -#: MainWindow.vala:1126 +#: MainWindow.vala:1127 #, c-format msgid "Unknown format: '%s'" msgstr "" @@ -1170,19 +1170,19 @@ msgid "Width x Height" msgstr "" -#: MainWindow.vala:1105 +#: MainWindow.vala:1106 msgid "" "[Batch completed] Right-click for options or click 'Finish' to continue." msgstr "" -#: MainWindow.vala:1109 +#: MainWindow.vala:1110 msgid "[Paused] Click 'Resume' to continue or 'Stop' to abort." msgstr "" -#: MainWindow.vala:708 +#: MainWindow.vala:709 msgid "presets" msgstr "" -#: MainWindow.vala:704 +#: MainWindow.vala:705 msgid "scripts" msgstr "" diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/AppConfigWindow.vala selene-16.2~213~ubuntu12.04.1/src/AppConfigWindow.vala --- selene-2.6.1~206~ubuntu12.04.1/src/AppConfigWindow.vala 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/AppConfigWindow.vala 2016-02-06 16:01:16.000000000 +0000 @@ -48,25 +48,26 @@ public AppConfigWindow() { title = "Settings"; - set_default_size (350, 400); - + window_position = WindowPosition.CENTER_ON_PARENT; destroy_with_parent = true; skip_taskbar_hint = true; modal = true; deletable = false; + resizable = false; icon = get_app_icon(16); // get content area vboxMain = get_content_area(); vboxMain.margin = 6; + vboxMain.set_size_request(350, 400); // lblView lblView = new Label (_("General")); lblView.set_use_markup(true); lblView.halign = Align.START; lblView.margin_bottom = 12; - lblView.margin_top = 12; + //lblView.margin_top = 12; vboxMain.pack_start (lblView, false, true, 0); //hboxFileView diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/CustomMessageDialog.vala selene-16.2~213~ubuntu12.04.1/src/CustomMessageDialog.vala --- selene-2.6.1~206~ubuntu12.04.1/src/CustomMessageDialog.vala 1970-01-01 00:00:00.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/CustomMessageDialog.vala 2016-02-06 16:01:16.000000000 +0000 @@ -0,0 +1,136 @@ +/* + * CustomMessageDialog.vala + * + * Copyright 2015 Tony George + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + * + * + */ + + +using Gtk; +using Gee; + +using TeeJee.Logging; +using TeeJee.FileSystem; +using TeeJee.JSON; +using TeeJee.ProcessManagement; +using TeeJee.GtkHelper; +using TeeJee.Multimedia; +using TeeJee.System; +using TeeJee.Misc; + +public class CustomMessageDialog : Dialog { + private Gtk.Box vbox_main; + private Gtk.Label lbl_msg; + private Gtk.ScrolledWindow sw_msg; + private Gtk.Button btn_ok; + + private string msg_title; + private string msg_body; + private Gtk.MessageType msg_type; + + public CustomMessageDialog(string _msg_title, string _msg_body, Gtk.MessageType _msg_type, Window? parent) { + set_transient_for(parent); + set_modal(true); + + msg_title = _msg_title; + msg_body = _msg_body; + msg_type = _msg_type; + + init_window(); + + show_all(); + + if (lbl_msg.get_allocated_height() > 400){ + sw_msg.vscrollbar_policy = PolicyType.AUTOMATIC; + sw_msg.set_size_request(-1,400); + lbl_msg.margin_right = 25; + } + else{ + sw_msg.vscrollbar_policy = PolicyType.NEVER; + } + } + + public void init_window () { + title = msg_title; + window_position = WindowPosition.CENTER_ON_PARENT; + icon = get_app_icon(16); + resizable = false; + deletable = false; + skip_taskbar_hint = true; + skip_pager_hint = true; + + //vbox_main + vbox_main = get_content_area () as Gtk.Box; + vbox_main.margin = 6; + + //hbox_contents + var hbox_contents = new Box (Orientation.HORIZONTAL, 6); + hbox_contents.margin = 6; + vbox_main.add (hbox_contents); + + string icon_name = "gtk-dialog-info"; + + switch(msg_type){ + case Gtk.MessageType.INFO: + icon_name = "gtk-dialog-info"; + break; + case Gtk.MessageType.WARNING: + icon_name = "gtk-dialog-warning"; + break; + case Gtk.MessageType.QUESTION: + icon_name = "gtk-dialog-question"; + break; + case Gtk.MessageType.ERROR: + icon_name = "gtk-dialog-error"; + break; + } + + //img + var img = new Image.from_icon_name(icon_name, Gtk.IconSize.DIALOG); + img.margin_right = 12; + hbox_contents.add(img); + + //lbl_msg + lbl_msg = new Gtk.Label(msg_body); + lbl_msg.xalign = (float) 0.0; + lbl_msg.max_width_chars = 70; + lbl_msg.wrap = true; + lbl_msg.wrap_mode = Pango.WrapMode.WORD; + //hbox_contents.add(lbl_msg); + + //sw_msg + sw_msg = new ScrolledWindow(null, null); + //sw_msg.set_shadow_type (ShadowType.ETCHED_IN); + sw_msg.add (lbl_msg); + sw_msg.expand = true; + sw_msg.hscrollbar_policy = PolicyType.NEVER; + sw_msg.vscrollbar_policy = PolicyType.AUTOMATIC; + //sw_msg.set_size_request(); + hbox_contents.add(sw_msg); + + //actions + btn_ok = (Gtk.Button) add_button ("_Ok", Gtk.ResponseType.OK); + btn_ok.clicked.connect(()=>{ + this.close(); + }); + //btn_cancel = (Gtk.Button) add_button ("_Cancel", Gtk.ResponseType.CANCEL); + } +} + + diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/EncoderConfigWindow.vala selene-16.2~213~ubuntu12.04.1/src/EncoderConfigWindow.vala --- selene-2.6.1~206~ubuntu12.04.1/src/EncoderConfigWindow.vala 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/EncoderConfigWindow.vala 2016-02-06 16:01:16.000000000 +0000 @@ -231,13 +231,13 @@ //lblGeneral lblGeneral = new Label (_("General")); - //gridGeneral - gridGeneral = new Grid(); - gridGeneral.set_column_spacing (6); - gridGeneral.set_row_spacing (6); - gridGeneral.margin = 12; - gridGeneral.visible = false; - tabMain.append_page (gridGeneral, lblGeneral); + //gridGeneral + gridGeneral = new Grid(); + gridGeneral.set_column_spacing (6); + gridGeneral.set_row_spacing (6); + gridGeneral.margin = 12; + gridGeneral.visible = false; + tabMain.append_page (gridGeneral, lblGeneral); row = -1; diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/EncoderStatusWindow.vala selene-16.2~213~ubuntu12.04.1/src/EncoderStatusWindow.vala --- selene-2.6.1~206~ubuntu12.04.1/src/EncoderStatusWindow.vala 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/EncoderStatusWindow.vala 2016-02-06 16:01:16.000000000 +0000 @@ -34,35 +34,37 @@ public class EncoderStatusWindow : Dialog { - private Box vboxMain; - private Box vbox_actions; - private Button btnOk; - private Button btnRefesh; - private TreeView tv; - private ScrolledWindow sw; + private Gtk.Box vboxMain; + private Gtk.Box vbox_actions; + private Gtk.Button btnOk; + private Gtk.Button btnRefesh; + private Gtk.TreeView tv; + private Gtk.ScrolledWindow sw; - public EncoderStatusWindow () { + public EncoderStatusWindow (Gtk.Window parent) { title = _("Encoders"); - set_default_size (500, 450); + set_transient_for(parent); + set_modal(true); + window_position = WindowPosition.CENTER_ON_PARENT; destroy_with_parent = true; skip_taskbar_hint = true; - modal = true; deletable = true; + resizable = false; icon = get_app_icon(16); // get content area vboxMain = get_content_area(); - vboxMain.margin = 6; + vboxMain.set_size_request (500, 450); // get action area vbox_actions = (Box) get_action_area(); tv = new TreeView(); - tv.get_selection().mode = SelectionMode.NONE; + tv.get_selection().mode = SelectionMode.SINGLE; tv.headers_visible = true; - tv.set_rules_hint (true); + //tv.set_rules_hint (true); sw = new ScrolledWindow(null, null); sw.set_shadow_type (ShadowType.ETCHED_IN); @@ -70,23 +72,20 @@ sw.expand = true; vboxMain.add(sw); - TreeViewColumn col_icon = new TreeViewColumn(); - //col_icon.title = _(""); - col_icon.resizable = true; - tv.append_column(col_icon); - + TreeViewColumn col_name = new TreeViewColumn(); + col_name.title = " " + _("Tool") + " "; + col_name.resizable = true; + CellRendererPixbuf cell_icon = new CellRendererPixbuf (); - col_icon.pack_start (cell_icon, false); - col_icon.set_attributes(cell_icon, "pixbuf", 3); - - TreeViewColumn col_cmd = new TreeViewColumn(); - col_cmd.title = " " + _("Encoding Tool") + " "; - tv.append_column(col_cmd); - - CellRendererText cell_cmd = new CellRendererText (); - col_cmd.pack_start (cell_cmd, false); - col_cmd.set_attributes(cell_cmd, "text", 0); + col_name.pack_start (cell_icon, false); + col_name.set_attributes(cell_icon, "pixbuf", 3); + + CellRendererText cell_name = new CellRendererText (); + col_name.pack_start (cell_name, false); + col_name.set_attributes(cell_name, "text", 0); + tv.append_column(col_name); + TreeViewColumn col_desc = new TreeViewColumn(); col_desc.title = " " + _("Description") + " "; tv.append_column(col_desc); @@ -118,6 +117,8 @@ //btnOk btnOk = (Button) add_button ("gtk-ok", Gtk.ResponseType.ACCEPT); btnOk.clicked.connect (() => { destroy(); }); + + show_all(); } public void tv_refresh(){ diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/Main.vala selene-16.2~213~ubuntu12.04.1/src/Main.vala --- selene-2.6.1~206~ubuntu12.04.1/src/Main.vala 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/Main.vala 2016-02-06 16:01:16.000000000 +0000 @@ -38,7 +38,7 @@ public Main App; public const string AppName = "Selene"; public const string AppShortName = "selene"; -public const string AppVersion = "2.6.1"; +public const string AppVersion = "16.2"; public const string AppAuthor = "Tony George"; public const string AppAuthorEmail = "teejeetech@gmail.com"; diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/MainWindow.vala selene-16.2~213~ubuntu12.04.1/src/MainWindow.vala --- selene-2.6.1~206~ubuntu12.04.1/src/MainWindow.vala 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/MainWindow.vala 2016-02-06 16:01:16.000000000 +0000 @@ -306,6 +306,7 @@ colName = new TreeViewColumn(); colName.title = _("File"); colName.expand = true; + colName.resizable = true; CellRendererPixbuf cellThumb = new CellRendererPixbuf (); colName.pack_start (cellThumb, false); @@ -393,7 +394,7 @@ //colProgress colProgress = new TreeViewColumn(); colProgress.title = _("Status"); - colProgress.fixed_width = 120; + colProgress.fixed_width = 150; CellRendererProgress2 cellProgress = new CellRendererProgress2(); cellProgress.height = 15; cellProgress.width = 150; @@ -1481,14 +1482,16 @@ dlgAddFiles.set_current_folder(App.InputDirectory); } + string message = ""; + if (dlgAddFiles.run() == Gtk.ResponseType.ACCEPT){ set_busy(true,dlgAddFiles); - + foreach (string file in dlgAddFiles.get_filenames()){ bool added = App.add_file (file); if (added == false){ - statusbar_show_message (_("Format not supported:") + "'" + file + "'", true, true); + message += "%s\n".printf(file_basename(file)); } } @@ -1498,6 +1501,11 @@ refresh_list_view(); dlgAddFiles.destroy(); //resets cursor + + if (message.length > 0){ + message = _("Some files could not be opened:") + "\n\n" + message; + gtk_messagebox("Unknown Format",message,this,true); + } } private void btnRemoveFiles_clicked(){ @@ -1580,9 +1588,7 @@ } private void btnEncoders_clicked(){ - var dialog = new EncoderStatusWindow(); - dialog.set_transient_for(this); - dialog.show_all(); + var dialog = new EncoderStatusWindow(this); dialog.run(); dialog.destroy(); } @@ -1711,7 +1717,7 @@ paused = false; btnPause.stock_id = "gtk-media-pause"; - colCrop.visible = !App.TileView; + colCrop.visible = false; colProgress.visible = true; start_cpu_usage_timer(); @@ -1833,7 +1839,7 @@ } private bool update_cpu_usage(){ - this.title = _("CPU: ") + "%.2lf %%".printf(ProcStats.get_cpu_usage()); + this.title = _("CPU: ") + "%.0lf %%".printf(ProcStats.get_cpu_usage()); return true; } diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/makefile selene-16.2~213~ubuntu12.04.1/src/makefile --- selene-2.6.1~206~ubuntu12.04.1/src/makefile 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/makefile 2016-02-06 16:01:16.000000000 +0000 @@ -11,7 +11,7 @@ all: #build binaries - valac -X -D'GETTEXT_PACKAGE="${app_name}"' --Xcc="-lm" -X -Wl,-rpath,/usr/share/${app_name}/libs "Main.vala" "Utility.vala" "MainWindow.vala" "AppConfigWindow.vala" "EncoderConfigWindow.vala" "EncoderStatusWindow.vala" "FileInfoWindow.vala" "AboutWindow.vala" "DonationWindow.vala" -o ${app_name} --pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix --pkg gtk+-3.0 --pkg gee-0.8 --pkg json-glib-1.0 + valac -X -D'GETTEXT_PACKAGE="${app_name}"' --Xcc="-lm" -X -Wl,-rpath,/usr/share/${app_name}/libs "Main.vala" "Utility.vala" "MainWindow.vala" "AppConfigWindow.vala" "EncoderConfigWindow.vala" "EncoderStatusWindow.vala" "FileInfoWindow.vala" "AboutWindow.vala" "DonationWindow.vala" "CustomMessageDialog.vala" -o ${app_name} --pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix --pkg gtk+-3.0 --pkg gee-0.8 --pkg json-glib-1.0 #update translation template xgettext --language=C --keyword=_ --copyright-holder='Tony George (teejee2008@gmail.com)' --package-name='${app_name}' --package-version='2.2' --msgid-bugs-address='teejee2008@gmail.com' --escape --sort-output -o ../${app_name}.pot *.vala diff -Nru selene-2.6.1~206~ubuntu12.04.1/src/Utility.vala selene-16.2~213~ubuntu12.04.1/src/Utility.vala --- selene-2.6.1~206~ubuntu12.04.1/src/Utility.vala 2015-11-07 14:14:55.000000000 +0000 +++ selene-16.2~213~ubuntu12.04.1/src/Utility.vala 2016-02-06 16:01:16.000000000 +0000 @@ -169,6 +169,10 @@ } } + public string file_basename(string filePath){ + return File.new_for_path(filePath).get_basename(); + } + public bool file_exists (string filePath){ /* Check if file exists */ @@ -916,7 +920,7 @@ /* Shows a simple message box */ - Gtk.MessageType type = Gtk.MessageType.INFO; + var type = Gtk.MessageType.INFO; if (is_error){ type = Gtk.MessageType.ERROR; } @@ -924,7 +928,7 @@ type = Gtk.MessageType.INFO; } - var dlg = new Gtk.MessageDialog.with_markup(null, Gtk.DialogFlags.MODAL, type, Gtk.ButtonsType.OK, message); + /*var dlg = new Gtk.MessageDialog.with_markup(null, Gtk.DialogFlags.MODAL, type, Gtk.ButtonsType.OK, message); dlg.title = title; dlg.set_default_size (200, -1); if (parent_win != null){ @@ -932,9 +936,12 @@ dlg.set_modal(true); } dlg.run(); - dlg.destroy(); - } + dlg.destroy();*/ + var dlg = new CustomMessageDialog(title,message,type,parent_win); + dlg.run(); + } + public bool gtk_combobox_set_value (ComboBox combo, int index, string val){ /* Conveniance function to set combobox value */