Skip to content

Commit

Permalink
fix: compatible with vala >= 0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
sonald committed Sep 29, 2019
1 parent ce6b375 commit 7fbd26f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/notify/Notification.vala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace Gala.Plugins.Notify
}
}

public Notification (uint32 id, Gdk.Pixbuf? icon, NotificationUrgency urgency,
Notification (uint32 id, Gdk.Pixbuf? icon, NotificationUrgency urgency,
int32 expire_timeout)
{
Object (
Expand Down
2 changes: 1 addition & 1 deletion src/Deepin/DeepinWindowBaseContainer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace Gala
public abstract void do_select_clone (DeepinWindowClone window_clone, bool select,
bool animate = true);

public DeepinWindowBaseContainer (Workspace workspace)
DeepinWindowBaseContainer (Workspace workspace)
{
Object (workspace: workspace);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Deepin/DeepinWindowClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ namespace Gala
position.x = outer_rect.x - offset_x;
position.y = outer_rect.y - offset_y;
var position_value = GLib.Value (typeof (Point));
position_value.set_boxed (position);
position_value.set_boxed ((void*)position);

var size = Size.alloc ();
size.width = outer_rect.width;
size.height = outer_rect.height;
var size_value = GLib.Value (typeof (Size));
size_value.set_boxed (size);
size_value.set_boxed ((void*)size);

unowned AnimationSettings animation_settings = AnimationSettings.get_default ();
DeepinUtils.start_animation_group (this, "window-slot",
Expand Down Expand Up @@ -433,13 +433,13 @@ namespace Gala
position.x = rect.x;
position.y = rect.y;
var position_value = GLib.Value (typeof (Point));
position_value.set_boxed (position);
position_value.set_boxed ((void*)position);

var size = Size.alloc ();
size.width = rect.width;
size.height = rect.height;
var size_value = GLib.Value (typeof (Size));
size_value.set_boxed (size);
size_value.set_boxed ((void*)size);

unowned AnimationSettings animation_settings = AnimationSettings.get_default ();
if (!selecting) {
Expand Down
2 changes: 1 addition & 1 deletion src/Deepin/DeepinWorkspaceThumbContainer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ namespace Gala
position.x = child_box.get_x ();
position.y = child_box.get_y ();
var position_value = GLib.Value (typeof (Point));
position_value.set_boxed (position);
position_value.set_boxed ((void*)position);
DeepinUtils.start_animation_group (child, "thumb-workspace-slot", LAYOUT_DURATION,
(tl) => { tl.progress_mode = (AnimationMode.LINEAR); },
"position", &position_value);
Expand Down

0 comments on commit 7fbd26f

Please sign in to comment.