[snappy] ui: rotated boolean set but not used anymore
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] ui: rotated boolean set but not used anymore
- Date: Tue, 1 May 2012 18:24:20 +0000 (UTC)
commit 181d089e3181e8b8e2b401eccbebbd4536fc0f4d
Author: Luis de Bethencourt <luis debethencourt com>
Date: Tue May 1 19:24:43 2012 +0100
ui: rotated boolean set but not used anymore
src/user_interface.c | 8 --------
src/user_interface.h | 1 -
2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index d78db1f..dc54b82 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -755,12 +755,6 @@ rotate_video (UserInterface * ui)
clutter_actor_set_z_rotation_from_gravity (ui->texture, angle,
CLUTTER_GRAVITY_CENTER);
- if (angle == 90 || angle == 270) {
- ui->rotated = TRUE;
- } else {
- ui->rotated = FALSE;
- }
-
size_change (CLUTTER_STAGE (ui->stage), NULL, 0, ui);
}
@@ -1053,8 +1047,6 @@ interface_start (UserInterface * ui, gchar * uri)
ui->title_length = TITLE_LENGTH;
ui->duration_str = position_ns_to_str (ui->engine->media_duration);
- ui->rotated = FALSE;
-
clutter_stage_set_color (CLUTTER_STAGE (ui->stage), &stage_color);
clutter_stage_set_minimum_size (CLUTTER_STAGE (ui->stage),
ui->stage_width, ui->stage_height);
diff --git a/src/user_interface.h b/src/user_interface.h
index 3a19df0..398109a 100644
--- a/src/user_interface.h
+++ b/src/user_interface.h
@@ -80,7 +80,6 @@ struct _UserInterface
{
gboolean controls_showing, keep_showing_controls;
gboolean blind, fullscreen, hide, penalty_box_active, tags;
- gboolean rotated;
gint title_length, controls_timeout, progress_id;
guint media_width, media_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]