[totem] main: Style fixes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Style fixes
- Date: Tue, 9 Jul 2013 08:29:05 +0000 (UTC)
commit 18157d41bb904027c42eba6185f5b047c5a42b85
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 9 10:05:08 2013 +0200
main: Style fixes
src/totem-object.c | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 7d18cf2..cd28a80 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -2428,22 +2428,21 @@ update_slider_visibility (TotemObject *totem,
{
if (totem->stream_length == stream_length)
return;
- if (totem->stream_length > 0 &&
- stream_length > 0)
+ if (totem->stream_length > 0 && stream_length > 0)
return;
- if (stream_length != 0) {
+ if (stream_length != 0)
gtk_range_set_range (GTK_RANGE (totem->seek), 0., 65535.);
- } else {
+ else
gtk_range_set_range (GTK_RANGE (totem->seek), 0., 0.);
- }
}
static void
update_current_time (BaconVideoWidget *bvw,
- gint64 current_time,
- gint64 stream_length,
- double current_position,
- gboolean seekable, TotemObject *totem)
+ gint64 current_time,
+ gint64 stream_length,
+ double current_position,
+ gboolean seekable,
+ TotemObject *totem)
{
update_slider_visibility (totem, stream_length);
@@ -2451,12 +2450,11 @@ update_current_time (BaconVideoWidget *bvw,
gtk_adjustment_set_value (totem->seekadj,
current_position * 65535);
- if (stream_length == 0 && totem->mrl != NULL)
- {
+ if (stream_length == 0 && totem->mrl != NULL) {
bacon_time_label_set_time (totem->time_label,
- (current_time), -1);
+ current_time, -1);
bacon_time_label_set_time (totem->time_rem_label,
- (current_time), -1);
+ current_time, -1);
} else {
bacon_time_label_set_time (totem->time_label,
current_time,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]