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:
Daniel P. Berrange 2013-07-31 11:32:09 +01:00
parent 536c78c18b
commit a542483b56

View File

@ -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