diff options
author | David King <amigadave@amigadave.com> | 2014-01-30 13:58:24 +0000 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2014-01-30 13:59:43 +0000 |
commit | d8d0b6be9a0e730af510de6e71e32d30cce42488 (patch) | |
tree | 3bdb4b0691fa1c04fbdad26827fc1129ca13a05b /src | |
parent | e7e2184d7466168543385c3efc6f4b1dd0fff2aa (diff) | |
download | cheese-d8d0b6be9a0e730af510de6e71e32d30cce42488.tar.gz |
Replace deprecated use of ClutterTableLayout
Use ClutterGridLayout instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/cheese-window.vala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cheese-window.vala b/src/cheese-window.vala index 313c33cc..dcee6c7f 100644 --- a/src/cheese-window.vala +++ b/src/cheese-window.vala @@ -1075,12 +1075,12 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow foreach (var effect in effects_manager.effects) { - Clutter.TableLayout table_layout = new TableLayout (); + Clutter.GridLayout grid_layout = new GridLayout (); var grid = new Clutter.Actor (); - grid.set_layout_manager (table_layout); + grid.set_layout_manager (grid_layout); effects_grids.append (grid); - table_layout.set_column_spacing (10); - table_layout.set_row_spacing (10); + grid_layout.set_column_spacing (10); + grid_layout.set_row_spacing (10); } uint i = 0; @@ -1122,9 +1122,9 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow text.y_expand = true; box.add_child (text); - Clutter.TableLayout table_layout = (Clutter.TableLayout) effects_grids.nth_data (i / EFFECTS_PER_PAGE).layout_manager; - table_layout.pack (box, ((int)(i % EFFECTS_PER_PAGE)) % 3, - ((int)(i % EFFECTS_PER_PAGE)) / 3); + var grid_layout = effects_grids.nth_data (i / EFFECTS_PER_PAGE).layout_manager as GridLayout; + grid_layout.attach (box, ((int)(i % EFFECTS_PER_PAGE)) % 3, + ((int)(i % EFFECTS_PER_PAGE)) / 3, 1, 1); i++; } |