diff -Naur ogmrip-0.13.6.orig/configure.in ogmrip-0.13.6/configure.in --- ogmrip-0.13.6.orig/configure.in 2011-10-27 19:25:31.250150594 +0200 +++ ogmrip-0.13.6/configure.in 2011-10-27 19:27:24.856469948 +0200 @@ -38,7 +38,6 @@ AM_MAINTAINER_MODE CFLAGS="$CFLAGS -g -I/usr/local/include -I.. -Wall -D_FORTIFY_SOURCE=2" -CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" CFLAGS="$CFLAGS -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" CPPFLAGS="$CPPFLAGS -I/usr/local/include -I.. -Wall -D_FORTIFY_SOURCE=2" diff -Naur ogmrip-0.13.6.orig/libogmdvd/ogmdvd-disc.c ogmrip-0.13.6/libogmdvd/ogmdvd-disc.c --- ogmrip-0.13.6.orig/libogmdvd/ogmdvd-disc.c 2011-10-27 19:25:31.190150884 +0200 +++ ogmrip-0.13.6/libogmdvd/ogmdvd-disc.c 2011-10-27 19:27:52.353267810 +0200 @@ -134,7 +134,7 @@ return reader; } -static G_CONST_RETURN gchar * +static const gchar * dvd_reader_get_id (dvd_reader_t *reader) { static gchar str[33]; @@ -788,7 +788,7 @@ * * Returns: The label of the DVD, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_disc_get_label (OGMDvdDisc *disc) { g_return_val_if_fail (disc != NULL, NULL); @@ -804,7 +804,7 @@ * * Returns: The identifier, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_disc_get_id (OGMDvdDisc *disc) { g_return_val_if_fail (disc != NULL, NULL); @@ -820,7 +820,7 @@ * * Returns: The device of the DVD. */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_disc_get_device (OGMDvdDisc *disc) { g_return_val_if_fail (disc != NULL, NULL); diff -Naur ogmrip-0.13.6.orig/libogmdvd/ogmdvd-disc.h ogmrip-0.13.6/libogmdvd/ogmdvd-disc.h --- ogmrip-0.13.6.orig/libogmdvd/ogmdvd-disc.h 2011-10-27 19:25:31.190150884 +0200 +++ ogmrip-0.13.6/libogmdvd/ogmdvd-disc.h 2011-10-27 19:28:52.586780398 +0200 @@ -67,11 +67,11 @@ void ogmdvd_disc_ref (OGMDvdDisc *disc); void ogmdvd_disc_unref (OGMDvdDisc *disc); -G_CONST_RETURN +const gchar * ogmdvd_disc_get_label (OGMDvdDisc *disc); -G_CONST_RETURN +const gchar * ogmdvd_disc_get_id (OGMDvdDisc *disc); -G_CONST_RETURN +const gchar * ogmdvd_disc_get_device (OGMDvdDisc *disc); gint64 ogmdvd_disc_get_vmg_size (OGMDvdDisc *disc); gint ogmdvd_disc_get_n_titles (OGMDvdDisc *disc); diff -Naur ogmrip-0.13.6.orig/libogmdvd/ogmdvd-labels.c ogmrip-0.13.6/libogmdvd/ogmdvd-labels.c --- ogmrip-0.13.6.orig/libogmdvd/ogmdvd-labels.c 2011-10-27 19:25:31.190150884 +0200 +++ ogmrip-0.13.6/libogmdvd/ogmdvd-labels.c 2011-10-27 19:28:00.787203165 +0200 @@ -248,7 +248,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_video_format_label (gint format) { static const gchar *video_format[] = @@ -272,7 +272,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_display_aspect_label (gint aspect) { static gchar *display_aspect[] = @@ -296,7 +296,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_audio_format_label (gint format) { static gchar *audio_format[] = @@ -324,7 +324,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_audio_channels_label (gint channels) { static gchar *audio_channels[] = @@ -352,7 +352,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_audio_quantization_label (gint quantization) { static gchar *audio_quantization[] = @@ -376,7 +376,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_audio_content_label (gint content) { static gchar *audio_content[] = @@ -401,7 +401,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_subp_content_label (gint content) { static gchar *subp_content[] = @@ -437,7 +437,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_language_label (gint code) { const gchar *lang; @@ -460,7 +460,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_language_iso639_1 (gint code) { static gchar lang[3]; @@ -489,7 +489,7 @@ * * Returns: A constant string, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmdvd_get_language_iso639_2 (gint code) { const gchar *lang; diff -Naur ogmrip-0.13.6.orig/libogmdvd/ogmdvd-labels.h ogmrip-0.13.6/libogmdvd/ogmdvd-labels.h --- ogmrip-0.13.6.orig/libogmdvd/ogmdvd-labels.h 2011-10-27 19:25:31.190150884 +0200 +++ ogmrip-0.13.6/libogmdvd/ogmdvd-labels.h 2011-10-27 19:28:58.048733351 +0200 @@ -23,16 +23,16 @@ G_BEGIN_DECLS -G_CONST_RETURN gchar * ogmdvd_get_video_format_label (gint format); -G_CONST_RETURN gchar * ogmdvd_get_display_aspect_label (gint aspect); -G_CONST_RETURN gchar * ogmdvd_get_audio_format_label (gint format); -G_CONST_RETURN gchar * ogmdvd_get_audio_channels_label (gint channels); -G_CONST_RETURN gchar * ogmdvd_get_audio_quantization_label (gint quantization); -G_CONST_RETURN gchar * ogmdvd_get_audio_content_label (gint content); -G_CONST_RETURN gchar * ogmdvd_get_subp_content_label (gint content); -G_CONST_RETURN gchar * ogmdvd_get_language_label (gint code); -G_CONST_RETURN gchar * ogmdvd_get_language_iso639_1 (gint code); -G_CONST_RETURN gchar * ogmdvd_get_language_iso639_2 (gint code); +const gchar * ogmdvd_get_video_format_label (gint format); +const gchar * ogmdvd_get_display_aspect_label (gint aspect); +const gchar * ogmdvd_get_audio_format_label (gint format); +const gchar * ogmdvd_get_audio_channels_label (gint channels); +const gchar * ogmdvd_get_audio_quantization_label (gint quantization); +const gchar * ogmdvd_get_audio_content_label (gint content); +const gchar * ogmdvd_get_subp_content_label (gint content); +const gchar * ogmdvd_get_language_label (gint code); +const gchar * ogmdvd_get_language_iso639_1 (gint code); +const gchar * ogmdvd_get_language_iso639_2 (gint code); G_END_DECLS diff -Naur ogmrip-0.13.6.orig/libogmdvd/ogmdvd-title.c ogmrip-0.13.6/libogmdvd/ogmdvd-title.c --- ogmrip-0.13.6.orig/libogmdvd/ogmdvd-title.c 2011-10-27 19:25:31.190150884 +0200 +++ ogmrip-0.13.6/libogmdvd/ogmdvd-title.c 2011-10-27 19:28:02.936186499 +0200 @@ -437,7 +437,7 @@ * * Returns: a constant array of 16 integers, or NULL */ -G_CONST_RETURN guint * +const guint * ogmdvd_title_get_palette (OGMDvdTitle *title) { g_return_val_if_fail (title != NULL, NULL); diff -Naur ogmrip-0.13.6.orig/libogmdvd/ogmdvd-title.h ogmrip-0.13.6/libogmdvd/ogmdvd-title.h --- ogmrip-0.13.6.orig/libogmdvd/ogmdvd-title.h 2011-10-27 19:25:31.190150884 +0200 +++ ogmrip-0.13.6/libogmdvd/ogmdvd-title.h 2011-10-27 19:29:00.538711751 +0200 @@ -54,7 +54,7 @@ void ogmdvd_title_get_aspect_ratio (OGMDvdTitle *title, guint *numerator, guint *denominator); -G_CONST_RETURN +const guint * ogmdvd_title_get_palette (OGMDvdTitle *title); gint ogmdvd_title_get_n_angles (OGMDvdTitle *title); gint ogmdvd_title_get_n_chapters (OGMDvdTitle *title); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-audio-codec.c ogmrip-0.13.6/libogmrip/ogmrip-audio-codec.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-audio-codec.c 2011-10-27 19:25:31.188150892 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-audio-codec.c 2011-10-27 19:28:05.118169500 +0200 @@ -465,7 +465,7 @@ * * Returns: the track name */ -G_CONST_RETURN gchar * +const gchar * ogmrip_audio_codec_get_label (OGMRipAudioCodec *audio) { g_return_val_if_fail (OGMRIP_IS_AUDIO_CODEC (audio), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-audio-codec.h ogmrip-0.13.6/libogmrip/ogmrip-audio-codec.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-audio-codec.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-audio-codec.h 2011-10-27 19:29:02.653693332 +0200 @@ -71,7 +71,7 @@ gint ogmrip_audio_codec_get_sample_rate (OGMRipAudioCodec *audio); void ogmrip_audio_codec_set_label (OGMRipAudioCodec *audio, const gchar *label); -G_CONST_RETURN +const gchar * ogmrip_audio_codec_get_label (OGMRipAudioCodec *audio); gint ogmrip_audio_codec_get_samples_per_frame (OGMRipAudioCodec *audio); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-chapters.c ogmrip-0.13.6/libogmrip/ogmrip-chapters.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-chapters.c 2011-10-27 19:25:31.187150896 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-chapters.c 2011-10-27 19:28:06.842156010 +0200 @@ -205,7 +205,7 @@ * * Returns: The label */ -G_CONST_RETURN gchar * +const gchar * ogmrip_chapters_get_label (OGMRipChapters *chapters, guint n) { g_return_val_if_fail (OGMRIP_IS_CHAPTERS (chapters), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-chapters.h ogmrip-0.13.6/libogmrip/ogmrip-chapters.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-chapters.h 2011-10-27 19:25:31.187150896 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-chapters.h 2011-10-27 19:29:04.960673164 +0200 @@ -48,7 +48,7 @@ GType ogmrip_chapters_get_type (void); OGMJobSpawn * ogmrip_chapters_new (OGMDvdTitle *title, const gchar *output); -G_CONST_RETURN +const gchar * ogmrip_chapters_get_label (OGMRipChapters *chapters, guint n); void ogmrip_chapters_set_label (OGMRipChapters *chapters, diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-codec.c ogmrip-0.13.6/libogmrip/ogmrip-codec.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-codec.c 2011-10-27 19:25:31.187150896 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-codec.c 2011-10-27 19:28:08.793140683 +0200 @@ -294,7 +294,7 @@ * * Returns: the filename, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_codec_get_output (OGMRipCodec *codec) { g_return_val_if_fail (OGMRIP_IS_CODEC (codec), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-codec.h ogmrip-0.13.6/libogmrip/ogmrip-codec.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-codec.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-codec.h 2011-10-27 19:29:07.625649767 +0200 @@ -53,7 +53,7 @@ }; GType ogmrip_codec_get_type (void); -G_CONST_RETURN +const gchar * ogmrip_codec_get_output (OGMRipCodec *codec); void ogmrip_codec_set_output (OGMRipCodec *codec, const gchar *output); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-container.c ogmrip-0.13.6/libogmrip/ogmrip-container.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-container.c 2011-10-27 19:25:31.188150892 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-container.c 2011-10-27 19:28:12.523111206 +0200 @@ -325,7 +325,7 @@ * * Returns: The filename, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_container_get_output (OGMRipContainer *container) { g_return_val_if_fail (OGMRIP_IS_CONTAINER (container), NULL); @@ -358,7 +358,7 @@ * * Returns: The label, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_container_get_label (OGMRipContainer *container) { g_return_val_if_fail (OGMRIP_IS_CONTAINER (container), NULL); @@ -390,7 +390,7 @@ * * Returns: The FourCC, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_container_get_fourcc (OGMRipContainer *container) { g_return_val_if_fail (OGMRIP_IS_CONTAINER (container), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-container.h ogmrip-0.13.6/libogmrip/ogmrip-container.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-container.h 2011-10-27 19:25:31.187150896 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-container.h 2011-10-27 19:29:11.039619641 +0200 @@ -91,16 +91,16 @@ void ogmrip_container_set_options (OGMRipContainer *container, const gchar *section); -G_CONST_RETURN +const gchar * ogmrip_container_get_output (OGMRipContainer *container); void ogmrip_container_set_output (OGMRipContainer *container, const gchar *output); -G_CONST_RETURN +const gchar * ogmrip_container_get_label (OGMRipContainer *container); void ogmrip_container_set_label (OGMRipContainer *container, const gchar *label); -G_CONST_RETURN +const gchar * ogmrip_container_get_fourcc (OGMRipContainer *container); void ogmrip_container_set_fourcc (OGMRipContainer *container, const gchar *fourcc); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-edl.c ogmrip-0.13.6/libogmrip/ogmrip-edl.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-edl.c 2011-10-27 19:25:31.188150892 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-edl.c 2011-10-27 19:28:14.605094652 +0200 @@ -217,7 +217,7 @@ * * Returns: The filename */ -G_CONST_RETURN gchar * +const gchar * ogmrip_edl_get_filename (OGMRipEdl *edl) { g_return_val_if_fail (edl != NULL, NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-edl.h ogmrip-0.13.6/libogmrip/ogmrip-edl.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-edl.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-edl.h 2011-10-27 19:29:15.393598366 +0200 @@ -56,7 +56,7 @@ void ogmrip_edl_ref (OGMRipEdl *edl); void ogmrip_edl_unref (OGMRipEdl *edl); -G_CONST_RETURN +const gchar * ogmrip_edl_get_filename (OGMRipEdl *edl); void ogmrip_edl_add (OGMRipEdl *edl, diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-encoding.c ogmrip-0.13.6/libogmrip/ogmrip-encoding.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-encoding.c 2011-10-27 19:25:31.187150896 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-encoding.c 2011-10-27 19:28:21.783037038 +0200 @@ -359,7 +359,7 @@ return data1->nr - data2->nr; } -static G_CONST_RETURN gchar * +static const gchar * ogmrip_encoding_get_device (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); @@ -3558,7 +3558,7 @@ * * Returns: The id, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_id (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); @@ -3590,7 +3590,7 @@ * * Returns: The profile' section, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_profile (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); @@ -3630,7 +3630,7 @@ * * Returns: The name of the encoding, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_label (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); @@ -3677,7 +3677,7 @@ * * Returns: The name of the chapter, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_chapter_label (OGMRipEncoding *encoding, guint nr) { OGMRipChapterData *data; @@ -3837,7 +3837,7 @@ * * Returns: The output filename, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_filename (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); @@ -3876,7 +3876,7 @@ * * Returns: The log filename, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_logfile (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); @@ -4018,7 +4018,7 @@ * * Returns: The FourCC, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_encoding_get_fourcc (OGMRipEncoding *encoding) { g_return_val_if_fail (OGMRIP_IS_ENCODING (encoding), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-encoding.h ogmrip-0.13.6/libogmrip/ogmrip-encoding.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-encoding.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-encoding.h 2011-10-27 19:29:22.073571392 +0200 @@ -362,16 +362,16 @@ guint32 ogmrip_encoding_get_flags (OGMRipEncoding *encoding); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_id (OGMRipEncoding *encoding); OGMDvdTitle * ogmrip_encoding_get_title (OGMRipEncoding *encoding); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_profile (OGMRipEncoding *encoding); void ogmrip_encoding_set_profile (OGMRipEncoding *encoding, const gchar *profile); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_label (OGMRipEncoding *encoding); void ogmrip_encoding_set_label (OGMRipEncoding *encoding, const gchar *label); @@ -386,7 +386,7 @@ gint ogmrip_encoding_get_chapters_language (OGMRipEncoding *encoding); void ogmrip_encoding_set_chapters_language (OGMRipEncoding *encoding, guint language); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_chapter_label (OGMRipEncoding *encoding, guint nr); void ogmrip_encoding_set_chapter_label (OGMRipEncoding *encoding, @@ -404,11 +404,11 @@ gboolean ogmrip_encoding_get_keep_tmp_files (OGMRipEncoding *encoding); void ogmrip_encoding_set_keep_tmp_files (OGMRipEncoding *encoding, gboolean keep_tmp_files); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_filename (OGMRipEncoding *encoding); void ogmrip_encoding_set_filename (OGMRipEncoding *encoding, const gchar *filename); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_logfile (OGMRipEncoding *encoding); gint ogmrip_encoding_get_threads (OGMRipEncoding *encoding); @@ -423,7 +423,7 @@ gboolean ogmrip_encoding_set_container_type (OGMRipEncoding *encoding, GType type, GError **error); -G_CONST_RETURN +const gchar * ogmrip_encoding_get_fourcc (OGMRipEncoding *encoding); void ogmrip_encoding_set_fourcc (OGMRipEncoding *encoding, const gchar *fourcc); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-fs.c ogmrip-0.13.6/libogmrip/ogmrip-fs.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-fs.c 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-fs.c 2011-10-27 19:28:24.755012936 +0200 @@ -51,7 +51,7 @@ * * Returns: The temporaty directory */ -G_CONST_RETURN gchar * +const gchar * ogmrip_fs_get_tmp_dir (void) { if (!ogmrip_tmp_dir) @@ -618,7 +618,7 @@ * * Returns: The extension, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_fs_get_extension (const gchar *filename) { gchar *dot; diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-fs.h ogmrip-0.13.6/libogmrip/ogmrip-fs.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-fs.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-fs.h 2011-10-27 19:29:24.804560068 +0200 @@ -30,7 +30,7 @@ #define g_chdir chdir #endif -G_CONST_RETURN +const gchar * ogmrip_fs_get_tmp_dir (void); void ogmrip_fs_set_tmp_dir (const gchar *dir); @@ -71,7 +71,7 @@ gchar * ogmrip_fs_get_full_path (const gchar *filename); -G_CONST_RETURN +const gchar * ogmrip_fs_get_extension (const gchar *filename); gchar * ogmrip_fs_set_extension (const gchar *filename, const gchar *extension); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-lavc.c ogmrip-0.13.6/libogmrip/ogmrip-lavc.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-lavc.c 2011-10-27 19:25:31.188150892 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-lavc.c 2011-10-27 19:28:28.434982893 +0200 @@ -135,7 +135,7 @@ return CLAMP (quantizer, 2, 31); } -static G_CONST_RETURN gchar * +static const gchar * ogmrip_lavc_get_codec (OGMRipLavc *lavc) { OGMRipLavcClass *klass; diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-lavc.h ogmrip-0.13.6/libogmrip/ogmrip-lavc.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-lavc.h 2011-10-27 19:25:31.188150892 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-lavc.h 2011-10-27 19:29:27.169550124 +0200 @@ -69,7 +69,7 @@ OGMRipVideoCodecClass parent_class; /* vtable */ - G_CONST_RETURN gchar * (* get_codec) (void); + const gchar * (* get_codec) (void); }; /** diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-plugin.c ogmrip-0.13.6/libogmrip/ogmrip-plugin.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-plugin.c 2011-10-27 19:25:31.188150892 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-plugin.c 2011-10-27 19:28:33.155944036 +0200 @@ -367,7 +367,7 @@ return NULL; } -static G_CONST_RETURN gchar * +static const gchar * ogmrip_plugin_get_codec_name (GSList *list, GType type) { OGMRipPlugin *plugin; @@ -542,7 +542,7 @@ * * Returns: The name of the container, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_plugin_get_container_name (GType container) { OGMRipContainerPlugin *plugin; @@ -740,7 +740,7 @@ * * Returns: The name of the video codec, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_plugin_get_video_codec_name (GType codec) { g_return_val_if_fail (g_type_is_a (codec, OGMRIP_TYPE_VIDEO_CODEC), NULL); @@ -926,7 +926,7 @@ * * Returns: The name of the audio codec, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_plugin_get_audio_codec_name (GType codec) { g_return_val_if_fail (g_type_is_a (codec, OGMRIP_TYPE_AUDIO_CODEC), NULL); @@ -1070,7 +1070,7 @@ * * Returns: The name of the subtitle codec, or NULL */ -G_CONST_RETURN gchar * +const gchar * ogmrip_plugin_get_subp_codec_name (GType codec) { g_return_val_if_fail (g_type_is_a (codec, OGMRIP_TYPE_SUBP_CODEC), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-plugin.h ogmrip-0.13.6/libogmrip/ogmrip-plugin.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-plugin.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-plugin.h 2011-10-27 19:29:32.614526749 +0200 @@ -196,7 +196,7 @@ GType ogmrip_plugin_get_nth_container (guint n); GType ogmrip_plugin_get_container_by_name (const gchar *name); gint ogmrip_plugin_get_container_index (GType container); -G_CONST_RETURN +const gchar * ogmrip_plugin_get_container_name (GType container); gboolean ogmrip_plugin_get_container_bframes (GType container); gint ogmrip_plugin_get_container_max_audio (GType container); @@ -216,7 +216,7 @@ GType ogmrip_plugin_get_nth_video_codec (guint n); GType ogmrip_plugin_get_video_codec_by_name (const gchar *name); gint ogmrip_plugin_get_video_codec_index (GType codec); -G_CONST_RETURN +const gchar * ogmrip_plugin_get_video_codec_name (GType codec); gint ogmrip_plugin_get_video_codec_format (GType codec); gint ogmrip_plugin_get_video_codec_passes (GType codec); @@ -236,7 +236,7 @@ GType ogmrip_plugin_get_nth_audio_codec (guint n); GType ogmrip_plugin_get_audio_codec_by_name (const gchar *name); gint ogmrip_plugin_get_audio_codec_index (GType codec); -G_CONST_RETURN +const gchar * ogmrip_plugin_get_audio_codec_name (GType codec); gint ogmrip_plugin_get_audio_codec_format (GType codec); GModule * ogmrip_plugin_get_audio_codec_module (GType codec); @@ -254,7 +254,7 @@ GType ogmrip_plugin_get_nth_subp_codec (guint n); GType ogmrip_plugin_get_subp_codec_by_name (const gchar *name); gint ogmrip_plugin_get_subp_codec_index (GType codec); -G_CONST_RETURN +const gchar * ogmrip_plugin_get_subp_codec_name (GType codec); gint ogmrip_plugin_get_subp_codec_format (GType codec); gboolean ogmrip_plugin_get_subp_codec_text (GType codec); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-subp-codec.c ogmrip-0.13.6/libogmrip/ogmrip-subp-codec.c --- ogmrip-0.13.6.orig/libogmrip/ogmrip-subp-codec.c 2011-10-27 19:25:31.187150896 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-subp-codec.c 2011-10-27 19:28:36.725914415 +0200 @@ -347,7 +347,7 @@ * * Returns: the track name */ -G_CONST_RETURN gchar * +const gchar * ogmrip_subp_codec_get_label (OGMRipSubpCodec *subp) { g_return_val_if_fail (OGMRIP_IS_SUBP_CODEC (subp), NULL); diff -Naur ogmrip-0.13.6.orig/libogmrip/ogmrip-subp-codec.h ogmrip-0.13.6/libogmrip/ogmrip-subp-codec.h --- ogmrip-0.13.6.orig/libogmrip/ogmrip-subp-codec.h 2011-10-27 19:25:31.186150901 +0200 +++ ogmrip-0.13.6/libogmrip/ogmrip-subp-codec.h 2011-10-27 19:29:35.932512180 +0200 @@ -62,7 +62,7 @@ gint ogmrip_subp_codec_get_newline (OGMRipSubpCodec *subp); void ogmrip_subp_codec_set_label (OGMRipSubpCodec *subp, const gchar *label); -G_CONST_RETURN +const gchar * ogmrip_subp_codec_get_label (OGMRipSubpCodec *subp); G_END_DECLS diff -Naur ogmrip-0.13.6.orig/libogmrip-gtk/ogmrip-source-chooser-widget.c ogmrip-0.13.6/libogmrip-gtk/ogmrip-source-chooser-widget.c --- ogmrip-0.13.6.orig/libogmrip-gtk/ogmrip-source-chooser-widget.c 2011-10-27 19:25:31.181150926 +0200 +++ ogmrip-0.13.6/libogmrip-gtk/ogmrip-source-chooser-widget.c 2011-10-27 19:27:24.858469934 +0200 @@ -207,7 +207,12 @@ gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); +#if GTK_CHECK_VERSION(2,24,0) + combo = gtk_combo_box_text_new (); +#else combo = gtk_combo_box_new_text (); +#endif + gtk_box_pack_start (GTK_BOX (hbox), combo, TRUE, TRUE, 0); gtk_widget_show (combo); @@ -231,7 +236,11 @@ { str = g_strdup_printf ("%s (%s)", ogmdvd_languages[i][OGMDVD_LANGUAGE_NAME], ogmdvd_languages[i][OGMDVD_LANGUAGE_ISO639_1]); +#if GTK_CHECK_VERSION(2,24,0) + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), str); +#else gtk_combo_box_append_text (GTK_COMBO_BOX (combo), str); +#endif g_free (str); if (strncmp (ogmdvd_languages[i][OGMDVD_LANGUAGE_ISO639_1], lang, 2) == 0) diff -Naur ogmrip-0.13.6.orig/libogmrip-gtk/ogmrip-x264-options.c ogmrip-0.13.6/libogmrip-gtk/ogmrip-x264-options.c --- ogmrip-0.13.6.orig/libogmrip-gtk/ogmrip-x264-options.c 2011-10-27 19:25:31.181150926 +0200 +++ ogmrip-0.13.6/libogmrip-gtk/ogmrip-x264-options.c 2011-10-27 19:27:24.858469934 +0200 @@ -297,8 +297,15 @@ gtk_widget_set_sensitive (dialog->me_combo, x264_have_me); if (x264_have_me_tesa) - gtk_combo_box_append_text (GTK_COMBO_BOX (dialog->me_combo), - _("Transformed Exhaustive search (tesa - even slower)")); + { + GtkTreeModel *model; + GtkTreeIter iter; + + model = gtk_combo_box_get_model (GTK_COMBO_BOX (dialog->me_combo)); + gtk_list_store_append (GTK_LIST_STORE (model), &iter); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, + 0, _("Transformed Exhaustive search (tesa - even slower)"), -1); + } dialog->merange_spin = glade_xml_get_widget (xml, "merange-spin"); gtk_widget_set_sensitive (dialog->merange_spin, x264_have_me); diff -Naur ogmrip-0.13.6.orig/src/ogmrip-crop-dialog.c ogmrip-0.13.6/src/ogmrip-crop-dialog.c --- ogmrip-0.13.6.orig/src/ogmrip-crop-dialog.c 2011-10-27 19:25:31.183150916 +0200 +++ ogmrip-0.13.6/src/ogmrip-crop-dialog.c 2011-10-27 19:27:24.857469941 +0200 @@ -218,17 +218,20 @@ } static void -ogmrip_crop_dialog_scale_value_changed (OGMRipCropDialog *dialog, GtkWidget *scale) +ogmrip_crop_dialog_scale_button_released (OGMRipCropDialog *dialog, GdkEventButton *event, GtkWidget *scale) { - gulong frame; - gchar *text; + if (event->button == 1) + { + gulong frame; + gchar *text; - frame = (guint) gtk_range_get_value (GTK_RANGE (scale)); - text = g_strdup_printf (_("Frame %lu of %lu"), frame, dialog->priv->length); - gtk_label_set_text (GTK_LABEL (dialog->priv->label), text); - g_free (text); + frame = (guint) gtk_range_get_value (GTK_RANGE (scale)); + text = g_strdup_printf (_("Frame %lu of %lu"), frame, dialog->priv->length); + gtk_label_set_text (GTK_LABEL (dialog->priv->label), text); + g_free (text); - ogmrip_crop_dialog_grab_frame (dialog, frame); + ogmrip_crop_dialog_grab_frame (dialog, frame); + } } G_DEFINE_TYPE (OGMRipCropDialog, ogmrip_crop_dialog, GTK_TYPE_DIALOG) @@ -291,9 +294,8 @@ dialog->priv->label = glade_xml_get_widget (xml, "frame-label"); dialog->priv->scale = glade_xml_get_widget (xml, "frame-scale"); - gtk_range_set_update_policy (GTK_RANGE (dialog->priv->scale), GTK_UPDATE_DELAYED); - g_signal_connect_swapped (dialog->priv->scale, "value-changed", - G_CALLBACK (ogmrip_crop_dialog_scale_value_changed), dialog); + g_signal_connect_swapped (dialog->priv->scale, "button-release-event", + G_CALLBACK (ogmrip_crop_dialog_scale_button_released), dialog); g_object_unref (xml); } diff -Naur ogmrip-0.13.6.orig/src/ogmrip-profile-editor.c ogmrip-0.13.6/src/ogmrip-profile-editor.c --- ogmrip-0.13.6.orig/src/ogmrip-profile-editor.c 2011-10-27 19:25:31.182150921 +0200 +++ ogmrip-0.13.6/src/ogmrip-profile-editor.c 2011-10-27 19:27:24.856469948 +0200 @@ -631,6 +631,7 @@ { GType codec; GtkTreeModel *model; + GtkTreeIter iter; gboolean exists; gint active; gchar *name; @@ -641,11 +642,15 @@ codec = ogmrip_profile_editor_dialog_get_video_codec_type (dialog, name); g_free (name); - gtk_combo_box_remove_text (GTK_COMBO_BOX (dialog->priv->video_preset_combo), OGMRIP_VIDEO_PRESET_USER); + if (gtk_tree_model_iter_nth_child (model, &iter, NULL, OGMRIP_VIDEO_PRESET_USER)) + gtk_list_store_remove (GTK_LIST_STORE (model), &iter); exists = ogmrip_options_plugin_exists (codec); if (exists) - gtk_combo_box_append_text (GTK_COMBO_BOX (dialog->priv->video_preset_combo), _("User")); + { + gtk_list_store_append (GTK_LIST_STORE (model), &iter); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, _("User"), -1); + } active = gtk_combo_box_get_active (GTK_COMBO_BOX (dialog->priv->video_preset_combo));