From 2d7d2bb4d1430ee3f94daa53a55ed6ee5b4c2ba0 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Mon, 06 Jun 2005 20:42:49 +0000 Subject: Fix gcc 4.0 warnings --- (limited to 'cut-n-paste/toolbar-editor/egg-editable-toolbar.c') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index a74f4fd..934eb1b 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -253,7 +253,7 @@ drag_data_get_cb (GtkWidget *widget, } gtk_selection_data_set (selection_data, - selection_data->target, 8, target, strlen (target)); + selection_data->target, 8, (unsigned char *)target, strlen (target)); g_free (target); } @@ -448,7 +448,7 @@ drag_data_received_cb (GtkWidget *widget, target = gtk_drag_dest_find_target (widget, context, NULL); type = egg_toolbars_model_get_item_type (etoolbar->priv->model, target); - id = egg_toolbars_model_get_item_id (etoolbar->priv->model, type, selection_data->data); + id = egg_toolbars_model_get_item_id (etoolbar->priv->model, type, (char *)selection_data->data); /* This function can be called for two reasons * @@ -484,7 +484,7 @@ drag_data_received_cb (GtkWidget *widget, pos = gtk_toolbar_get_drop_index (GTK_TOOLBAR (widget), x, y); toolbar_pos = get_toolbar_position (etoolbar, widget); - if (data_is_separator (selection_data->data)) + if (data_is_separator ((char *)selection_data->data)) { egg_toolbars_model_add_separator (etoolbar->priv->model, toolbar_pos, pos); -- cgit v0.9.1