[cheese/wip/deprecation-fixes: 6/7] Avoid deprecated clutter_table_layout_set_expand



commit eebe7c4de44ff9a31a781b6e74017442315e120a
Author: David King <amigadave amigadave com>
Date:   Fri Apr 19 18:50:38 2013 +0100

    Avoid deprecated clutter_table_layout_set_expand
    
    Use the "expand-x" and "expand-y" properties on ClutterActor instead
    (which are both set to false by default).

 src/cheese-window.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index d852514..67d8eed 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -1246,10 +1246,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
         box.add_child (text);
 
         Clutter.TableLayout table_layout = (Clutter.TableLayout) effects_grids.nth_data (i / 
EFFECTS_PER_PAGE).layout_manager;
-        table_layout.pack ((Clutter.Actor) box,
-                           ((int)(i % EFFECTS_PER_PAGE)) % 3,
+        table_layout.pack (box, ((int)(i % EFFECTS_PER_PAGE)) % 3,
                            ((int)(i % EFFECTS_PER_PAGE)) / 3);
-        table_layout.set_expand (box, false, false);
 
         i++;
       }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]