mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-05 07:16:48 +00:00
Fix two type cast problems
The g_array_free() return value is 'char *' rather than 'void *' so must be explicitly cast to 'uint8 *'. The accelerator menu callback data is a GtkMenu rather GtkWidget Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
536c78c18b
commit
a542483b56
@ -656,13 +656,13 @@ accel_key_to_keys(const GtkAccelKey *key)
|
||||
val = GDK_VoidSymbol;
|
||||
g_array_append_val(a, val);
|
||||
|
||||
return g_array_free(a, FALSE);
|
||||
return (guint*)g_array_free(a, FALSE);
|
||||
}
|
||||
|
||||
struct accelCbData
|
||||
{
|
||||
VirtViewerWindow *self;
|
||||
GtkWidget *menu;
|
||||
GtkMenu *menu;
|
||||
};
|
||||
|
||||
static void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user