[cheese] Replace deprecated use of ClutterTableLayout
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Replace deprecated use of ClutterTableLayout
- Date: Thu, 30 Jan 2014 14:01:40 +0000 (UTC)
commit d8d0b6be9a0e730af510de6e71e32d30cce42488
Author: David King <amigadave amigadave com>
Date: Thu Jan 30 13:58:24 2014 +0000
Replace deprecated use of ClutterTableLayout
Use ClutterGridLayout instead.
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 313c33c..dcee6c7 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++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]