[snappy] ui: hide the video texture if there is no video
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] ui: hide the video texture if there is no video
- Date: Mon, 11 Mar 2013 18:17:18 +0000 (UTC)
commit 7fc2d1e84d886c280299c2c8bfcb7ad865f73a62
Author: Luis de Bethencourt <luis debethencourt com>
Date: Mon Mar 11 14:17:10 2013 -0400
ui: hide the video texture if there is no video
If the empty video texture is displayed it shows up as un uncomfortable white,
instead of the background of the stage which is black.
src/user_interface.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index 00bbe53..3d3a619 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -1298,6 +1298,10 @@ interface_start (UserInterface * ui, gchar * uri)
/* Show the window */
gtk_widget_show_all (ui->window);
}
+
+ if (!ui->fileuri) {
+ clutter_actor_hide (ui->texture);
+ }
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]