Skip to content

Commit 5510466

Browse files
ryonakanotintou
authored andcommitted
pantheon-desktop-shell: Manually bind the free function
1 parent 4e24058 commit 5510466

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

protocol/pantheon-desktop-shell.vapi

Lines changed: 5 additions & 10 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.Greeter get_greeter (Wl.Surface surface);
@@ -36,14 +35,13 @@ namespace Pantheon.Desktop {
3635
ALWAYS
3736
}
3837

39-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_panel_v1", cprefix = "io_elementary_pantheon_panel_v1_")]
38+
[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")]
4039
public class Panel : Wl.Proxy {
4140
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_panel_v1_interface")]
4241
public static Wl.Interface iface;
4342
public void set_user_data (void* user_data);
4443
public void* get_user_data ();
4544
public uint32 get_version ();
46-
public void destroy ();
4745
public void set_anchor (Pantheon.Desktop.Anchor anchor);
4846
public void focus ();
4947
public void set_size (int width, int height);
@@ -53,35 +51,32 @@ namespace Pantheon.Desktop {
5351
public void remove_blur ();
5452
}
5553

56-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_widget_v1", cprefix = "io_elementary_pantheon_widget_v1_")]
54+
[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")]
5755
public class Widget : Wl.Proxy {
5856
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_widget_v1_interface")]
5957
public static Wl.Interface iface;
6058
public void set_user_data (void* user_data);
6159
public void* get_user_data ();
6260
public uint32 get_version ();
63-
public void destroy ();
6461
}
6562

66-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_greeter_v1", cprefix = "io_elementary_pantheon_greeter_v1_")]
63+
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_greeter_v1", cprefix = "io_elementary_pantheon_greeter_v1_", free_function = "io_elementary_pantheon_greeter_v1_destroy")]
6764
public class Greeter : Wl.Proxy {
6865
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_greeter_v1_interface")]
6966
public static Wl.Interface iface;
7067
public void set_user_data (void* user_data);
7168
public void* get_user_data ();
7269
public uint32 get_version ();
73-
public void destroy ();
7470
public void init ();
7571
}
7672

77-
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_extended_behavior_v1", cprefix = "io_elementary_pantheon_extended_behavior_v1_")]
73+
[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")]
7874
public class ExtendedBehavior : Wl.Proxy {
7975
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "io_elementary_pantheon_extended_behavior_v1_interface")]
8076
public static Wl.Interface iface;
8177
public void set_user_data (void* user_data);
8278
public void* get_user_data ();
8379
public uint32 get_version ();
84-
public void destroy ();
8580
public void set_keep_above ();
8681
}
8782
}

0 commit comments

Comments
 (0)