Skip to content

Commit fe3bdff

Browse files
committed
antheon-desktop-shell: Manually bind the free function
The compiler warning shows that we should be using the proper destroy function.
1 parent 2a6c3de commit fe3bdff

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

protocol/pantheon-desktop-shell.vapi

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
*/
66

77
namespace Pantheon.Desktop {
8-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_shell_v1", cprefix = "io_elementary_pantheon_shell_v1_")]
8+
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_shell_v1", cprefix = "io_elementary_pantheon_shell_v1_", free_function = "io_elementary_pantheon_shell_v1_destroy")]
99
public class Shell : Wl.Proxy {
1010
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_shell_v1_interface")]
1111
public static Wl.Interface iface;
1212
public void set_user_data (void* user_data);
1313
public void* get_user_data ();
1414
public uint32 get_version ();
15-
public void destroy ();
1615
public Pantheon.Desktop.Panel get_panel (Wl.Surface surface);
1716
public Pantheon.Desktop.Widget get_widget (Wl.Surface surface);
1817
public Pantheon.Desktop.ExtendedBehavior get_extended_behavior (Wl.Surface surface);
@@ -35,14 +34,13 @@ namespace Pantheon.Desktop {
3534
ALWAYS
3635
}
3736

38-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_panel_v1", cprefix = "io_elementary_pantheon_panel_v1_")]
37+
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_panel_v1", cprefix = "io_elementary_pantheon_panel_v1_", free_function = "io_elementary_pantheon_panel_v1_destroy")]
3938
public class Panel : Wl.Proxy {
4039
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_panel_v1_interface")]
4140
public static Wl.Interface iface;
4241
public void set_user_data (void* user_data);
4342
public void* get_user_data ();
4443
public uint32 get_version ();
45-
public void destroy ();
4644
public void set_anchor (Pantheon.Desktop.Anchor anchor);
4745
public void focus ();
4846
public void set_size (int width, int height);
@@ -52,24 +50,22 @@ namespace Pantheon.Desktop {
5250
public void remove_blur ();
5351
}
5452

55-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_widget_v1", cprefix = "io_elementary_pantheon_widget_v1_")]
53+
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_widget_v1", cprefix = "io_elementary_pantheon_widget_v1_", free_function = "io_elementary_pantheon_widget_v1_destroy")]
5654
public class Widget : Wl.Proxy {
5755
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_widget_v1_interface")]
5856
public static Wl.Interface iface;
5957
public void set_user_data (void* user_data);
6058
public void* get_user_data ();
6159
public uint32 get_version ();
62-
public void destroy ();
6360
}
6461

65-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_extended_behavior_v1", cprefix = "io_elementary_pantheon_extended_behavior_v1_")]
62+
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_extended_behavior_v1", cprefix = "io_elementary_pantheon_extended_behavior_v1_", free_function = "io_elementary_pantheon_extended_behavior_v1_destroy")]
6663
public class ExtendedBehavior : Wl.Proxy {
6764
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_extended_behavior_v1_interface")]
6865
public static Wl.Interface iface;
6966
public void set_user_data (void* user_data);
7067
public void* get_user_data ();
7168
public uint32 get_version ();
72-
public void destroy ();
7369
public void set_keep_above ();
7470
}
7571
}

0 commit comments

Comments
 (0)