- Update to 0.5.1

This commit is contained in:
Olivier Duchateau 2013-06-03 20:55:44 +00:00
parent 30a9c8500c
commit 0f34f4e640
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319807
5 changed files with 12 additions and 63 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= parole
PORTVERSION= 0.5.0
PORTREVISION= 2
PORTVERSION= 0.5.1
CATEGORIES= multimedia xfce
MASTER_SITES= XFCE/src/apps/${PORTNAME}/${PORTVERSION:R}/
DIST_SUBDIR= xfce4

View File

@ -1,2 +1,2 @@
SHA256 (xfce4/parole-0.5.0.tar.bz2) = ba23f06f59720f35af07d50bc43de444dd726df592129137b5550d951bd4a285
SIZE (xfce4/parole-0.5.0.tar.bz2) = 645848
SHA256 (xfce4/parole-0.5.1.tar.bz2) = dcd0f300d5c23c2c926a6b8becf8d86cffc255dc43addc94822120fc57cbc349
SIZE (xfce4/parole-0.5.1.tar.bz2) = 645499

View File

@ -1,18 +1,6 @@
--- ./src/gst/parole-gst.c.orig 2013-03-07 00:14:28.000000000 +0000
+++ ./src/gst/parole-gst.c 2013-04-28 16:06:10.000000000 +0000
@@ -33,9 +33,11 @@
#if GST_CHECK_VERSION(1, 0, 0)
#include <gst/video/videooverlay.h>
#include <gst/video/navigation.h>
+#include <gst/audio/streamvolume.h>
#else
#include <gst/interfaces/xoverlay.h>
#include <gst/interfaces/navigation.h>
+#include <gst/interfaces/streamvolume.h>
#endif
#include <gst/pbutils/missing-plugins.h>
@@ -1573,22 +1575,36 @@
--- ./src/gst/parole-gst.c.orig 2013-05-26 15:18:14.000000000 +0000
+++ ./src/gst/parole-gst.c 2013-06-03 20:41:34.000000000 +0000
@@ -1579,22 +1579,36 @@
dialog = GTK_MESSAGE_DIALOG(gtk_message_dialog_new_with_markup(
NULL,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
@ -36,7 +24,7 @@
+#elif defined(__FreeBSD__)
+ gtk_dialog_add_button( GTK_DIALOG(dialog),
+ GTK_STOCK_OK,
+ GTK_RESPONSE_OK);
+ GTK_RESPONSE_ACCEPT);
+#endif
gtk_message_dialog_format_secondary_markup(dialog,
@ -49,25 +37,12 @@
desc);
return GTK_DIALOG(dialog);
@@ -1712,7 +1728,7 @@
@@ -1718,7 +1732,7 @@
#endif
gst_install_plugins_context_free(ctx);
}
- else if ( response == GTK_RESPONSE_REJECT )
+ else if ( ( response == GTK_RESPONSE_REJECT ) || (response == GTK_RESPONSE_OK) )
+ else if ( (response == GTK_RESPONSE_REJECT) || (response == GTK_RESPONSE_OK) )
gtk_widget_destroy(GTK_WIDGET(dialog));
}
break;
@@ -2624,9 +2640,9 @@
void parole_gst_set_volume (ParoleGst *gst, gdouble value)
{
- g_object_set (G_OBJECT (gst->priv->playbin),
- "volume", value,
- NULL);
+ gst_stream_volume_set_volume (GST_STREAM_VOLUME (gst->priv->playbin),
+ GST_STREAM_VOLUME_FORMAT_CUBIC,
+ value);
}
gdouble parole_gst_get_volume (ParoleGst *gst)

View File

@ -1,28 +0,0 @@
--- ./src/parole-player.c.orig 2013-03-07 00:14:28.000000000 +0000
+++ ./src/parole-player.c 2013-04-28 16:08:15.000000000 +0000
@@ -1650,6 +1650,7 @@
seek = parole_gst_get_stream_position (PAROLE_GST (player->priv->gst) )
-
seek;
+ if ( seek < 0 ) { seek = 0; }
parole_gst_seek (PAROLE_GST (player->priv->gst), seek);
parole_player_change_range_value (player, seek);
}
@@ -2241,7 +2242,7 @@
{
gdouble value;
value = gtk_scale_button_get_value (GTK_SCALE_BUTTON (player->priv->volume));
- gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value + 0.1);
+ gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value + 0.05);
}
void
@@ -2249,7 +2250,7 @@
{
gdouble value;
value = gtk_scale_button_get_value (GTK_SCALE_BUTTON (player->priv->volume));
- gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value - 0.1);
+ gtk_scale_button_set_value (GTK_SCALE_BUTTON (player->priv->volume), value - 0.05);
}
void parole_player_volume_mute (GtkWidget *widget, ParolePlayer *player)

View File

@ -40,6 +40,7 @@ share/icons/hicolor/scalable/apps/parole.svg
%%NLS%%share/locale/it/LC_MESSAGES/parole.mo
%%NLS%%share/locale/ja/LC_MESSAGES/parole.mo
%%NLS%%share/locale/ko/LC_MESSAGES/parole.mo
%%NLS%%share/locale/kk/LC_MESSAGES/parole.mo
%%NLS%%share/locale/lt/LC_MESSAGES/parole.mo
%%NLS%%share/locale/lv/LC_MESSAGES/parole.mo
%%NLS%%share/locale/nl/LC_MESSAGES/parole.mo
@ -72,6 +73,8 @@ share/pixmaps/parole.png
%%NLS%%@dirrmtry share/locale/ug
%%NLS%%@dirrmtry share/locale/te/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/te
%%NLS%%@dirrmtry share/locale/kk/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/kk
%%NLS%%@dirrmtry share/locale/ast/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/ast
@dirrm lib/parole-0