[cheese/three-point-oh] Made the identity effect come first
- From: Yuvaraj Pandian <yuvipanda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/three-point-oh] Made the identity effect come first
- Date: Fri, 16 Jul 2010 20:40:56 +0000 (UTC)
commit 18ad2855fabaed2f8175bc5f7e1af677ac36f2fa
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date: Sat Jul 17 02:09:02 2010 +0530
Made the identity effect come first
GROSS HACK.
src/cheese-effects-manager.vala | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-effects-manager.vala b/src/cheese-effects-manager.vala
index 64c65e3..6eda63d 100644
--- a/src/cheese-effects-manager.vala
+++ b/src/cheese-effects-manager.vala
@@ -100,6 +100,17 @@ internal class Cheese.EffectsManager : GLib.Object
string user_effects = GLib.Path.build_filename (Environment.get_user_data_dir (), ".cheese", "effects");
effects.add_all (load_effects_from_directory (user_effects));
+
+ /* GROSS HACK: to make identity element appear first */
+ foreach (Effect e in effects)
+ {
+ if (e.pipeline_desc == "identity")
+ {
+ effects.remove (e);
+ effects.insert (0, e);
+ break;
+ }
+ }
}
public Effect ? get_effect (string name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]